Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "background": {
- "scripts": [ "jquery.min.js", "background.js"]
- },
- "browser_action": {
- "default_icon": "icon128.png",
- "default_title": "Test"
- },
- "description": "Make API's from regular websites",
- "icons": {
- "128": "icon128.png",
- "16": "icon16.png",
- "48": "icon48.png"
- },
- "manifest_version": 2,
- "name": "Test",
- "permissions": [ "tabs", "http://*/*", "https://*/*" ],
- "version": "0.2"
- }
- chrome.browserAction.onClicked.addListener(function(tab) {
- chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"})
- });
- (function() {
- console.log($('.stuff'))
- console.log(document.getElementById('yt-masthead'))
- //open('http://www.google.com/'+encodeURIComponent(document.location.href),'_self').focus();
- }
- )();
- chrome.browserAction.onClicked.addListener(function(tab) {
- chrome.tabs.executeScript(tab.id, {file: "jquery.min.js"}, function(){
- chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"});
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement