Last active
October 9, 2015 23:38
-
-
Save Ventero/3597309 to your computer and use it in GitHub Desktop.
GM crash test
This file contains hidden or 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
// example script resource | |
console.log("resource"); |
This file contains hidden or 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 GM crash test (#1623) | |
// @namespace test | |
// @version 1.1 | |
// @include * | |
// @grant GM_getResourceURL | |
// @require https://gist.github.com/Ventero/3597309/raw/667dee3c60a139eafbbe6b143805cf019879a890/scriptresource.user.js | |
// @resource script https://gist.github.com/Ventero/3597309/raw/667dee3c60a139eafbbe6b143805cf019879a890/scriptresource.user.js | |
// @resource text https://gist.github.com/Ventero/3597309/raw/f47ee80ae874bc47385348769f2e1fee1b861e20/textresource.txt | |
// ==/UserScript== | |
console.log(GM_getResourceURL("script")); | |
console.log(GM_getResourceURL("text")); | |
var img = document.createElement("img"); | |
img.src = GM_getResourceURL(""); | |
//img.src = "greasemonkey-script:17a6ee77-47e3-4e43-bba9-31943ae89105/"; |
This file contains hidden or 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
// Example text resource |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment