Skip to content

Instantly share code, notes, and snippets.

@nmggithub
Forked from JoelBesada/README.md
Last active August 29, 2015 14:02
Spoof Page and Icon
/* NOTE: Comments need to be in multiline format like this, instead of "// Comment" */
var url = prompt('Enter the url you want to spoof the icon of');var title = prompt('Enter the title you want to spoof');var link = document.createElement('link');link.type = 'image/x-icon';link.rel = 'shortcut icon';link.href = 'http://g.etfv.co/' + url;document.getElementsByTagName('head')[0].appendChild(link);document.title = title; return;
{
"name": "Spoof Page and Icon",
"description": "Change icon and title of page.",
"icon": "https://backtickio.s3.amazonaws.com/icons/backtick.png",
"link": "http://backtick.io"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment