Kawiesh

X [BM] Multiple Link Tools

Jun 8th, 2020 (edited)
1,233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function(n,g,q,c,f){var s=document,l=s.onclick,h="ws_cmbm-" f,b=s.getElementById(h),d="ws_cmbms-" f,p=s.getElementById(d),e=null,o,a={tl:{left:"10px",top:"10px"},tr:{right:"10px",top:"10px"},bl:{left:"10px",bottom:"10px"},br:{right:"10px",bottom:"10px"}},k,m=".ws_cmbmc{position:fixed;z-index:10123456;width:200px;display:block;visibility:hidden;border:1px solid #b0b0b0;background:#fff;padding:3px 0 3px 3px;text-align:left;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:2px 2px 3px #777;-moz-box-shadow:2px 2px 3px #777;-webkit-box-shadow:2px 2px 3px #777;}.ws_cmbmc a{display:block;float:left;margin:0;width:191px;border:none;padding:8px 0 8px 6px;background:#fff;color:black;text-decoration:none;font:normal normal normal 12px/100% Verdana,sans-serif;letter-spacing:normal;word-spacing:normal;}.ws_cmbmc a:hover{background:#a0a0a0;color:white;border:none;text-decoration:none;font:normal normal normal 12px/100% Verdana,sans-serif;letter-spacing:normal;word-spacing:normal;}";function r(){b.style.visibility="hidden"}function j(){b.style.visibility="visible"}if(b){if(b.style.visibility=="visible"){r()}else{j()}return}if(!p){m=m.replace(/.ws_cmbmc/g,"#" h);p=s.createElement("style");p.type="text/css";p.id=d;p.appendChild(s.createTextNode(m));s.getElementsByTagName("head")[0].appendChild(p)}b=s.createElement("div");b.setAttribute("id",h);b.className="ws_cmbmc";for(o=0;o<n.length;o  ){e=s.createElement("a");e.appendChild(s.createTextNode(n[o].title));e.setAttribute("href",n[o].url);e.onclick=(function(i){if(q){r()}});b.appendChild(e)}s.getElementsByTagName("body")[0].appendChild(b);if(a.hasOwnProperty(g)){for(k in a[g]){b.style[k]=a[g][k]}}else{if(g=="c"){b.style.left=Math.round((window.innerWidth-b.offsetWidth)/2) "px";b.style.top=Math.round((window.innerHeight-b.offsetHeight)/2) "px"}}if(c){s.onclick=(function(){r();if(typeof l=="function"){l()}});b.onclick=(function(i){i.stopPropagation()})}j()})([{title:"New tab",url:"javascript:(function(){var x,i,r=Math.random(); x=document.links; for(i=0;i<x.length;  i) { x[i].target=r; } })();"},{title:"Selected in new tab",url:"javascript:(function(){var n_to_open,dl,dll,i; function linkIsSafe(u) { if (u.substr(0,7)==\x27mailto:\x27) return false; if (u.substr(0,11)==\x27javascript:\x27) return false; return true; } n_to_open = 0; dl = document.links; dll = dl.length; if (window.getSelection && window.getSelection().containsNode) { /* mozilla */ for(i=0; i<dll;   i) { if (window.getSelection().containsNode(dl[i], true) && linkIsSafe(dl[i].href))   n_to_open; } if (n_to_open && confirm(\x27Open \x27   n_to_open   \x27 selected links in new windows?\x27)) { for(i=0; i<dll;   i) if (window.getSelection().containsNode(dl[i], true) && linkIsSafe(dl[i].href)) window.open(dl[i].href); } } /* /mozilla */ if (!n_to_open) { /*ie, or mozilla with no links selected: this section matches open_all_links, except for the alert text */ for(i = 0; i < dll;   i) { if (linkIsSafe(dl[i].href))   n_to_open; } if (!n_to_open) alert (\x27no links\x27); else { if (confirm(\x27No links selected.  Open \x27   n_to_open   \x27 links in new windows?\x27)) for (i = 0; i < dll;   i) if (linkIsSafe(dl[i].href)) window.open(dl[i].href); } } })();"},{title:"Open all in new tabs",url:"javascript:(function(){var n_to_open,dl,dll,i; function linkIsSafe(u) { if (u.substr(0,7)==\x27mailto:\x27) return false; if (u.substr(0,11)==\x27javascript:\x27) return false; return true; } n_to_open = 0; dl = document.links; dll = dl.length; for(i = 0; i < dll;   i) { if (linkIsSafe(dl[i].href))   n_to_open; } if (!n_to_open) alert (\x27no links\x27); else { if (confirm(\x27Open \x27   n_to_open   \x27 links in new windows?\x27)) for (i = 0; i < dll;   i) if (linkIsSafe(dl[i].href)) window.open(dl[i].href); } })();"}],"tl",false,false,1590941527371)
Add Comment
Please, Sign In to add comment