Advertisement
tabnation

js intro 1

Apr 15th, 2021
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. CODE: Manifest.json
  2. {
  3. "manifest_version": 2,
  4. "name": "Facebook Filler",
  5. "description": "Facebook Filler",
  6. "homepage_url": "http://www.facebook.com​",
  7. "version": "1.0",
  8. "browser_action": {
  9. "default_title": "Click me",
  10. "default_popup": "index.html",
  11. "default_icon": "icon.png"
  12. },
  13. "permissions": [
  14. "tabs",
  15. "http://*/*​",
  16. "https://*/*​"
  17. ]
  18. }
  19.  
  20. CODE: index.html
  21. {
  22. "manifest_version": 2,
  23. "name": "Facebook Filler",
  24. "description": "Facebook Filler",
  25. "homepage_url": "http://www.facebook.com​",
  26. "version": "1.0",
  27. "browser_action": {
  28. "default_title": "Click me",
  29. "default_popup": "index.html",
  30. "default_icon": "icon.png"
  31. },
  32. "permissions": [
  33. "tabs",
  34. "http://*/*​",
  35. "https://*/*​"
  36. ]
  37. }
  38.  
  39.  
  40. CODE: action.js
  41. document.getElementById('fillForm').addEventListener('click', function(){
  42. chrome.tabs.executeScript({
  43. file: "injector.js"
  44. });
  45. });
  46.  
  47. CODE: injector.js
  48. document.getElementById('email').value = "testman@thatplace.com";
  49. document.getElementById('pass').value = "mypassword";
  50. var chkboxes = document.getElementById("email").value;
  51. alert(chkboxes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement