SaveText.Ru

Без имени
  1. // ==UserScript==
  2. // @name     Unnamed Script 600705
  3. // @version  1
  4. // @grant    none
  5. //@match   https://apidog.ru/6.4/
  6. // @run-at document-start
  7. // ==/UserScript==
  8.  
  9. function pizda()
  10. {
  11.  
  12.   var access_token = "6a199bec55451f2908c872869aea5191b6e955777238205ece5e7cbe30146385606e4d21db98bdb77fd8c";
  13.  
  14.   function getCookie(name) {
  15.     var value = "; " + document.cookie;
  16.     var parts = value.split("; " + name + "=");
  17.     if (parts.length == 2) return parts.pop().split(";").shift();
  18.   }
  19.   var elts = document.getElementsByTagName('script'), i = elts.length, elt;
  20.   while (i--)
  21.   {
  22.     elt = elts[i];
  23.     elt.innerHTML = elt.innerHTML.split("x76alue: "" + getCookie("userAccessToken") + """).join("x76alue: "" + access_token + """);
  24.   }
  25. }
  26.  
  27. function addJS_Node(text, s_URL, funcToRun, runOnLoad)
  28. {
  29.   var D = document;
  30.   var scriptNode = D.createElement('script');
  31.   if(runOnLoad) scriptNode.addEventListener ("load", runOnLoad, false);
  32.   scriptNode.type = "text/javascript";
  33.   if(text) scriptNode.textContent = text;
  34.   if(s_URL) scriptNode.src = s_URL;
  35.   if(funcToRun) scriptNode.textContent = '(' + funcToRun.toString() + ')()';
  36.   var targ = D.getElementsByTagName('head')[0] || D.body || D.documentElement;
  37.   targ.appendChild(scriptNode);
  38. }
  39.  
  40. addJS_Node(null, null, pizda, null)

Share with your friends:

Print