/GM_getResourceURL.user.js Secret
Created
July 16, 2014 13:53
-
-
Save arantius/195e4226fd7a8500cf4e 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 GM_getResourceURL Tester | |
// @namespace testing | |
// @include http://www.greasespot.net/* | |
// @resource icon https://assets-cdn.github.com/favicon.ico | |
// @grant GM_getResourceURL | |
// ==/UserScript== | |
var img = document.createElement('img'); | |
img.src = GM_getResourceURL('icon'); | |
document.getElementsByTagName('body')[0].appendChild( img ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment