Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE: Manifest.json
- {
- "manifest_version": 2,
- "name": "Facebook Filler",
- "description": "Facebook Filler",
- "homepage_url": "http://www.facebook.com",
- "version": "1.0",
- "browser_action": {
- "default_title": "Click me",
- "default_popup": "index.html",
- "default_icon": "icon.png"
- },
- "permissions": [
- "tabs",
- "http://*/*",
- "https://*/*"
- ]
- }
- CODE: index.html
- {
- "manifest_version": 2,
- "name": "Facebook Filler",
- "description": "Facebook Filler",
- "homepage_url": "http://www.facebook.com",
- "version": "1.0",
- "browser_action": {
- "default_title": "Click me",
- "default_popup": "index.html",
- "default_icon": "icon.png"
- },
- "permissions": [
- "tabs",
- "http://*/*",
- "https://*/*"
- ]
- }
- CODE: action.js
- document.getElementById('fillForm').addEventListener('click', function(){
- chrome.tabs.executeScript({
- file: "injector.js"
- });
- });
- CODE: injector.js
- document.getElementById('email').value = "testman@thatplace.com";
- document.getElementById('pass').value = "mypassword";
- var chkboxes = document.getElementById("email").value;
- alert(chkboxes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement