Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chrome.browserAction.onClicked.addListener(function(tab) {
- chrome.tabs.executeScript({
- code: 'document.getElementById("test").innerHTML = "hello world"'
- });
- });
- chrome.browserAction.onClicked.addListener(function(tab) {
- chrome.tabs.executeScript({
- code: function(){
- document.getElementById("test").innerHTML = "hello world";
- /*
- * A lot more JS
- */
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement