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 November 13, 2024 03:00
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 July 23, 2024 13:54
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"
@alane019
alane019 / gist:5092a77ed24177349543b746f4764c25
Created January 2, 2020 00:56
VBA for Microsoft Word: Add a black, solid line border all pictures in a Word document
Sub borders()
'
' borders Macro
'
'There should be a way to make this the default styling for all images pasted into a Word document, in my opinion.
' Adds black solid line borders to all images in word document
' Source:
'
Dim pic As InlineShape
For Each pic In ActiveDocument.InlineShapes
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active November 16, 2024 12:34
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 September 30, 2024 03:32
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)
}