SHARE
TWEET

Untitled

a guest Jul 17th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "manifest_version": 2,
  3.   "name": "LinkOpener",
  4.   "version": "1.0",
  5.   "description": "Opens all available links",
  6.  
  7.   "icons": {
  8.     "48": "logo48.png"
  9.   },
  10.  
  11.   "background": {
  12.     "scripts": ["LinkOpener.js"]
  13.   },
  14.  
  15.   "browser_action": {
  16.     "default_icon": {
  17.       "16": "logo16.png",
  18.       "32": "logo32.png"
  19.     }
  20.   }
  21.  
  22. }
  23.      
  24. function openPage() {
  25.   var links = document.links;
  26.   console.log(links.length)
  27. }
  28.  
  29. browser.browserAction.onClicked.addListener(openPage);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top