Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "manifest_version": 2,
- "name": "Name",
- "description": "Description",
- "version": "1.0",
- "browser_action": {
- "name": "Manipulate DOM",
- "icons": ["icon.png"],
- "default_icon": "icon.png",
- "default_popup": "index.html"
- },
- "content_scripts": [ {
- "js": [ "jquery.min.js", "custom.js" ],
- "matches": [ "http://*/*", "https://*/*"]
- }],
- "permissions": [
- "activeTab", "tabs", "<all_urls>", "webRequest "
- ]}
- function hello() {
- chrome.tabs.executeScript({
- file: 'alert.js'
- });
- }
- document.getElementById('clickme').addEventListener('click', hello);
- $('input[name="firstname"]').val('Alex');
- $('input[name="lastname"]').val('Jefferson');
- $('button[name="submit"]').trigger('click');
Add Comment
Please, Sign In to add comment