Skip to content

Instantly share code, notes, and snippets.

@gmammolo
gmammolo / js
Created December 13, 2024 14:27
Custom Rule zhanghai/Untracker script: Instagram share reels untracker
/*
This script is a custom script for the Android app [Untracker](https://github.com/zhanghai/Untracker).
When sharing a reel from the Instagram app on Android, you get a link in the format `https://www.instagram.com/share/reel/...`.
This link contains a redirect to a direct link to the reel, but with a hidden tracker.
This script removes the tracker and returns the direct link to the reel.
*/
if ($.matches(url, 'www.instagram.com', '/share/reel/[^/]+/?')) {
let counter = 10;
@gmammolo
gmammolo / create_launcher.bash
Created April 8, 2024 17:17
This is a Bash script for generating a launcher in Linux. It takes command line arguments for the filename, command, description, and path of the launcher. The script is designed to create a launcher in the /usr/local/share/applications/ directory.
#!/bin/bash
# genera un launcher
#
# Folder
#
folder=/usr/local/share/applications/
# Parse command line arguments