-
-
Save Y0ba/a2b623d4f30bb814d192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Greasemonkey/Scriptish Bug | |
// @version 1 | |
// @author Y0ba | |
// @grant GM_openInTab | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
document.body.insertAdjacentHTML('afterbegin', '<h1 id="gmbug-h1" style="color: red; cursor: pointer;">Click me!</h1>'); | |
document.getElementById('gmbug-h1').onclick = function() { | |
GM_openInTab('https://github.com/greasemonkey/greasemonkey/'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment