// ==UserScript== // @name GostRu // @namespace http://protect.gost.ru/* // @description Delete pixel image under Gost // @include http://protect.gost.ru/* // ==/UserScript== var s_l=document.styleSheets.length; for (j=0;j<s_l;j++) { var st=document.styleSheets[j].cssRules, st_l=st.length; for (i=0;i<st_l;i++) { if (st[i].selectorText==='.face') { im=st[i].style.backgroundImage; break; } } } im=im.split('"')[1]; if (im!=='') { var img=document.getElementsByTagName('img'), img_l=img.length; for (i=0;i<img_l;i++) { if (img[i].className==='face') { img[i].src=im; } } }
javascript: (function () {var ids = []; for (var i = 0; i <document.links.length; i ++) {var a = document.links [i]; if (a.href.indexOf (' & pageK = ') <0 ||! a.firstChild) continue; ids.push (a.href.substr (a.href.indexOf (' pageK = ') + 6, 36));} document.open (); document.write ('<html> <body> </ body> </ html>'); document.close (); for (var i = 0; i <ids.length; i ++) {var img = document.createElement ('img'); img.src = "image.ashx? page =" + ids [i]; document.body.appendChild (img);}}) ();
javascript :( function () { var ids = []; for (var i = 0; i <document.links.length; i ++) { var a = document.links [i]; if (a.href.indexOf ('& pageK =') <0 ||! a.firstChild) continue; ids.push (a.href.substr (a.href.indexOf ('pageK =') + 6, 36)); } document.open (); document.write ('<html> <body> </ body> </ html>'); document.close (); for (var i = 0; i <ids.length; i ++) { var img = document.createElement ('img'); img.src = "image.ashx? page =" + ids [i]; document.body.appendChild (img); } } ) ();
Source: https://habr.com/ru/post/90615/