Skip to content
/ Onsnap Public

Very, VERY simple Snapchat wrapper (application) to never have the annoying "You are no longer present"

Notifications You must be signed in to change notification settings

fyiel/Onsnap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onsnap

what it is

Onsnap is a simple Electron-based application designed to load Snapchat's web interface (https://web.snapchat.com) in a custom browser window. The application ensures that the window never loses focus, even when you click on another window. Also injects custom CSS to hide scrollbars.

what it does

  • Loads Snapchat's web interface in a frameless Electron window.
  • Prevents the window from losing focus when clicking on other windows.
  • Injects custom CSS to hide scrollbars for a cleaner look.

what you need

  • Node.js (v16 or higher recommended)
  • npm (comes with Node.js)

installing

  1. Clone the repository:
git clone https://github.com/fyiel/Onsnap.git
cd Onsnap
  1. Install dependencies:
npm install

using it

To run a command in the terminal, then send it to the background, disown it, and close the terminal, follow these steps:

  1. Start the application:
npm start
  1. Pause the command with Ctrl+Z.

  2. Send the command to the background:

bg
  1. Disown the process so it won't be terminated when the terminal is closed:
disown
  1. Close the terminal.

use it like intended (linux)

  1. Create a desktop entry in ~/.local/share/applications/snapchat.desktop:
[Desktop Entry]
Type=Application
Name=Snapchat
Exec=/usr/bin/env bash -lc '~/.local/bin/onsnap'
Terminal=false
Categories=Utility;
Icon=utilities-terminal
DBusActivatable=false
  1. Create the launcher script in ~/.local/bin/onsnap and make it executable:
\#! /usr/bin/env bash
set -euo pipefail
cd <this folder location>
npm start </dev/null >/dev/null 2>\&1 \& disown

About

Very, VERY simple Snapchat wrapper (application) to never have the annoying "You are no longer present"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published