Created
December 3, 2014 12:43
-
-
Save stevenocchipinti/a68ccdfaa1d98d197884 to your computer and use it in GitHub Desktop.
Simple "Content Script" Google Chrome extension
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
(function(d, script) { | |
script = d.createElement('script'); | |
script.type = 'text/javascript'; | |
script.async = true; | |
script.onload = function(){ | |
// remote script has loaded | |
}; | |
script.src = '//hi.kickassapp.com/kickass.js'; | |
d.getElementsByTagName('head')[0].appendChild(script); | |
}(document)); |
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
{ | |
"name": "Kickass Searching", | |
"manifest_version": 2, | |
"version": "0.1.0", | |
"description": "Make Google kickass!", | |
"content_scripts": [ | |
{ | |
"matches": [ | |
"https://www.google.com.au/*" | |
], | |
"js": [ | |
"contentscript.js" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment