Skip to content

Instantly share code, notes, and snippets.

View SouzaRM's full-sized avatar

Rogerio M. Souza SouzaRM

  • Brazil - Porto Seguro-BA
View GitHub Profile
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active June 26, 2024 01:27
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

Inject addEventListener hook

With (Tamper|Violent|Grease)monkey, you can run any JavaScript code on any web pages. This allows you to rewrite the content and style of web pages and override their behaviors. However, manipulating the event listeners is a bit more difficult. In particular, to disable or delete a registered event listener, you must have a reference to the event listener function object, which is usually not available. Chrome DevTools (or similar browser developer functionalities) can do this, but in any case it is not available from Tampermonkey.

This code snippet will help you to remove event listeners by inserting a hook into EventTarget.proptotype.addEventListener, the standard method for registering event listeners, and logging all calls to it. For example, to remove all click events, you can use the following code:

//...
(function() {
    'use strict';
    window.addEventListene
@AFutureD
AFutureD / Hypothesis.user.js
Last active January 7, 2024 23:00
A Tempermonkey script for Hypothes.is
// ==UserScript==
// @name Hypothesis
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author AFuture
// @match *://*/*
// @grant none
// ==/UserScript==
@JoeGlines
JoeGlines / Window Hider2.ahk
Last active July 12, 2022 03:26
Hide windows from Taskbar
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
#Include <default_Settings>
;**************************************
#SingleInstance,Force ;only allow for 1 instance of this script to run
SetTitleMatchMode,2 ;2 is match anywhere in the title
^1::
/*
Map a hotkey (ctrl+win+i) to a dialog for sending stuff quickly to your dynalist inbox
write/paste -> Ctrl+Enter to submit
Two modes of operation:
One Bullet: All text will be sent to one bullet in the inbox (dafault)
Multi Bullet: Every row will get its own bullet
*/
; Get your secret API token here: https://dynalist.io/developer
global DynalistToken := "YOUR TOKEN HERE"
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 7, 2024 20:24
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@HerbCaudill
HerbCaudill / dynalist.css
Created June 3, 2019 11:01
Custom CSS for Dynalist
/* dynalist.css */
/* tags */
.node-tag {
background: rgba(255, 165, 0, 0.8);
font-size: 0.8em;
border-radius: 0.3em;
font-weight: bold;
padding: 2px 5px;
@lot224
lot224 / bookmarklet.js
Created January 18, 2019 18:37
Inject ng app into running website via bookmarklet. (If security allows for it.)
/**
* Bookmarklet code, this will inject a script into what ever page your currently visiting when you click this favorite/bookmark link.
* To install, just create a favorite/bookmark, then view the properties of is and change the name to something familiar.
* Update the url to the next line, also you will need to modify the src attribute so that it points to the payload script you want to inject.
*/
javascript: (function () { var d = document; var h = d.getElementsByTagName('head')[0]; var s = d.createElement("script"); s.setAttribute("type", "text/javascript"); s.setAttribute("src", "http://www.somedomain.com/somescript.js"); h.appendChild(s); })();
@gustavomdsantos
gustavomdsantos / AutoHotKey script - Always-on-top.ahk
Last active June 21, 2024 08:40
AutoHotKey script that make any window Always-on-Top on Windows.
; Press Ctrl+Shift+Space to set any currently active window to be always on top.
; Press Ctrl+Shift+Space again set the window to no longer be always on top.
; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows
^+SPACE::
WinGetTitle, activeWindow, A
if IsWindowAlwaysOnTop(activeWindow) {
notificationMessage := "The window """ . activeWindow . """ is now always on top."
notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1)
}
@cdevroe
cdevroe / readme.md
Last active June 14, 2024 22:02
YouTube pop-up Bookmarklet

YouTube Pop-up Bookmarklet

I forget where I found this originally (sorry). And I've modified it slightly over the years. But if you're on YouTube in a desktop browser and you'd like to have the video in a small pop-up window, tap this bookmarklet and it automatically creates the perfectly sized window for you.

How to install

  1. Create a new bookmark with any URL.
  2. Edit that bookmark in your browser, delete the URL that is there, and paste the code you see in the JS file into the Location field.

You're welcome / Colin