Skip to content

Instantly share code, notes, and snippets.

View rafawendel's full-sized avatar
🏠
Working from home

Rafael Wendel rafawendel

🏠
Working from home
View GitHub Profile
// ==UserScript==
// @name IDSSaude - The Event Blackhole
// @namespace http://tampermonkey.net/
// @version 8.0
// @description Swallows navigation events to prevent background session kills
// @author Gemini
// @match *://*/*IDSSaude.dll*
// @run-at document-start
// @grant none
// ==/UserScript==
@rafawendel
rafawendel / UblockOriginUserScripts.js
Last active August 21, 2023 16:32
UblockOriginUserScripts.js
/// FixWhatsApp.js
(function () {
function handlePaste(e) {
var data = (e.originalEvent || e).clipboardData.getData('text/plain');
if ((data || '') !== '') {
e.stopPropagation();
}
}
document.addEventListener('paste', handlePaste, true);