Created
February 2, 2011 16:36
-
-
Save superbrothers/807941 to your computer and use it in GitHub Desktop.
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 test | |
// @namespace http://example.com/test | |
// @include http://* | |
// ==/UserScript== | |
(function () { | |
var elIcon = document.createElement('link'); | |
elIcon.setAttribute('rel', 'shortcut icon'); | |
elIcon.setAttribute('href', 'http://example.jp/favicon.ico'); | |
document.getElementsByTagName('head')[0].appendChild(elIcon); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment