Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name script1
// @include *
// @grant unsafeWindow
// ==/UserScript==
unsafeWindow.MouseFunction = exportFunction(function (event) {
console.log(1);
}, unsafeWindow);
unsafeWindow.addEventListener("mousedown", unsafeWindow.MouseFunction, false);
// ==UserScript==
// @name Break GMail Test
// @namespace test
// @include https://mail.google.com/*
// @include http://mail.google.com/*
// @version 1
// @grant none
// ==/UserScript==
j = 0;