MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getParameterByName

Function getParameterByName

scripts/viewAllLinks.js:14–25  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

12 contentScript: {
13 onClick: function () {
14 function getParameterByName(e, t) {
15 e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
16 var n = new RegExp("[\\?&]" + e + "=([^&#]*)"),
17 r = n.exec(
18 t == true ? location.hash.replace("#", "?") : location.search
19 );
20 if (r == null && t == false) {
21 return getParameterByName(e, true);
22 } else {
23 return r == null ? "" : decodeURIComponent(r[1].replace(/\+/g, " "));
24 }
25 }
26 let str =
27 "<style type='text/css'>body{color:#000;background-color:#fff;margin:0;padding:0;font-family:arial,helvetica,sans-serif;font-size:82%}*{font-weight:400;color:#000}h3,h4,h5,h6{margin:0 0 15px;padding:0}#rt{font-size:12px;width:500px}table,td,th,tr{font-size:1em;overflow:hidden;text-overflow:ellipsis;word-wrap:break-word}textarea{width:100%}th{background-color:#eee;color:#000;font-weight:700}td a{width:446px;display:block}.id{background:#eee;color:#000;text-align:center}.g{font-family:arial,sans-serif;color:#000;margin:1em 0;font-size:122%}.g h2{font-family:arial,sans-serif;margin:0}.r{display:inline;font-weight:400;margin:10}.j{width:34em}.std{font-size:82%}.a{color:green}.fl{color:#77c}.bl{display:inline}a{color:#00c}a:visited{color:#551a8b}a:active{color:red}.twitter-share-button{margin-bottom:-5px}p.b{line-height:22px;text-align:center}</style>\n";
28 let anchors = document.getElementsByTagName("a");

Callers 1

viewAllLinks.jsFile · 0.85

Calls 2

replaceMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected