-
-
Save vBm/85a254006b6182bb59ba 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 favicon_link_html = document.createElement('link'); | |
favicon_link_html.rel = 'icon'; | |
favicon_link_html.href = GM_getResourceURL('icon'); | |
favicon_link_html.type = 'image/x-icon'; | |
document.getElementsByTagName('head')[0].appendChild( favicon_link_html ); |
I still can't get it to work in GM. like i've already said in the ticket itself, works like a charm in TM/Chrome
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is just how Firefox does
<link>
handling (don't want to lookup how I did it before).If you do:
(After requiring jQuery) It works. This suggests that
GM_getResourceURL()
is not at fault.