Harry.
Aktywny
Liczba postów: 190
Dołączył: Apr 2020
Reputacja:
171
Forum Gold: 210.00
Skryptozakładki
Witajcie,
Przedstawiam wam skryptozakładki, które sam używam lub są po prostu przydatne
Czym jest skryptozakładka? To niewielki skrypt napisany w języku JavaScript przechowywany jako adres URL w zakładkach. Szybki dostęp do skryptozakładek mam w pasku zakładek
Ograniczenia? Tylko takie jakie ma język JavaScript.
Korzystanie ze skryptozakładek:
Wejdź na pod konkretny adres URL
Naciśnij na skryptozakładkę
Tworzenie kodu QR jako adres URL
Kod:
javascript:(function(window, document, undefined) {try {var selectedText = document.getSelection().toString(); if (selectedText === ''){selectedText = window.location.href;} if(selectedText !== ''){var baseQRUrl = 'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=' + encodeURIComponent(selectedText); window.open(baseQRUrl, '_blank', 'width=400,height=400');}} catch (e) {}})(window, document);
DOM Extractor - Analizuje DOM i pokazuje ogólne oceny, ostrzeżenia, wskazówki dotyczące optymalizacji kodu.
Kod:
javascript:(function(){var%20script=document.createElement('script');script.src='//mir.aculo.us/dom-monster/dommonster.js?'+Math.floor((+new Date)/(864e5));document.body.appendChild(script);})()
Wappalyzer - wykrywa używane technologie na stronach, forach, np. CMSy, platformy e-commerce, oprogramowanie serwerowe, narzędzia analityczne etc.
Kod:
javascript: (function() { var d = document, e = d.getElementById('wappalyzer-container'); if (e !== null) { d.body.removeChild(e); } var u = 'https://www.wappalyzer.com/', t = new Date().getTime(), c = d.createElement('div'), p = d.createElement('div'), l = d.createElement('link'), s = d.createElement('script'); c.setAttribute('id', 'wappalyzer-container'); l.setAttribute('rel', 'stylesheet'); l.setAttribute('href', u + 'css/bookmarklet.css'); d.head.appendChild(l); p.setAttribute('id', 'wappalyzer-pending'); p.setAttribute('style', 'background-image: url(' + u + 'images/spinner.gif) !important'); c.appendChild(p); s.setAttribute('src', u + 'bookmarklet/wappalyzer.js'); s.onload = function() { window.wappalyzer = new Wappalyzer(); s = d.createElement('script'); s.setAttribute('src', u + 'bookmarklet/apps.js'); s.onload = function() { s = d.createElement('script'); s.setAttribute('src', u + 'bookmarklet/driver.js'); c.appendChild(s); }; c.appendChild(s); }; c.appendChild(s); d.body.appendChild(c); })();
Wyświetlanie danych META
Kod:
javascript:(function(){var url = document.location; var meta = document.getElementsByTagName('meta'); var found ='Not Found'; var title = document.title;var output ='';output ='\n\n#####%20Page%20Title%20#####\n\n'+title+'\n\n\n####META%20DATA####\n\n';if(meta.length>0){%20}for%20(i=0;%20i<meta%20.length;%20i++)%20{if(meta[i].getAttribute('name')!=null){output%20+='\''+meta[i].getAttribute('name')+'\''+'\n'+meta[i].getAttribute('content')+'\n\n';}else%20if(meta[i].getAttribute('property')!=null){output%20+='\''+meta[i].getAttribute('property')+'\''+'\n'+meta[i].getAttribute('content')+'\n\n';}}alert(output)})();
Szybkie skracanie linków przy użyciu strony TinyURL.com
Kod:
javascript:void(open('http://tinyurl.com/create.php?url='+encodeURIComponent(location.href)))
Test Rich Snippets
Kod:
javascript:window.open('https://search.google.com/test/rich-results?url='+encodeURIComponent(location.hostname + location.pathname + location.search) + '&user_agent=1');
Test Page Speed Insight
Kod:
javascript:(function(){window.location='https://developers.google.com/speed/pagespeed/insights/?url='+encodeURIComponent(window.location.href);})();
CrUX Dashboard - Otwiera domenę w panelu środowiska użytkownika Chrome (CruX) w wersji 2. Jeśli w CrUX nie ma wystarczającej ilości danych, aby podać te liczby, nadal będzie się otwierać, ale będzie wyświetlane jako puste w raporcie
Kod:
javascript:(function(){ window.open('https://datastudio.google.com/reporting/bbc5698d-57bb-4969-9e07-68810b9fa348/page/keDQB?params=%7B"origin":"'+window.location.origin+'"%7D')})();
Usuwanie przyklejonych elementów. Najlepszym przykładem by zobaczyć jak to działa jest strona:
https://neilpatel.com/blog/
Kod:
javascript:(function(){ let i, elements = document.querySelectorAll('body *'); for (i = 0; i < elements.length; i++) { if(getComputedStyle(elements[i]).position === 'fixed' || getComputedStyle(elements[i]).position === 'sticky'){ elements[i].parentNode.removeChild(elements[i]); } } })()
Test optymalizacji mobilnej
Kod:
javascript:void(window.open(%27https://search.google.com/test/mobile-friendly?url=%27+window.location.href,%27_blank%27));
Sprawdzanie referrer
Kod:
javascript:alert(document.referrer)
Podglądanie robots.txt
Kod:
javascript:void(location.href='http://' + location.host + '/robots.txt')
Raport Majestic
Kod:
javascript:void(window.open(%27https://majestic.com/reports/site-explorer/summary/%27+document.domain.replace(%27www.%27,%27%27),%27_blank%27));
Walidator W3C
Kod:
javascript:window.open('http://validator.w3.org/check?uri='+escape(window.location));void%200
Pobieranie zdjęć z instagrama w pełnej rozdzielczości
Kod:
javascript:(function(){;!function(e)%7Bvar%20t=%7B%7D;function%20n(a)%7Bif(t%5Ba%5D)return%20t%5Ba%5D.exports;var%20r=t%5Ba%5D=%7Bi:a,l:!1,exports:%7B%7D%7D;return%20e%5Ba%5D.call(r.exports,r,r.exports,n),r.l=!0,r.exports%7Dn.m=e,n.c=t,n.d=function(e,t,a)%7Bn.o(e,t)%7C%7CObject.defineProperty(e,t,%7Benumerable:!0,get:a%7D)%7D,n.r=function(e)%7B%22undefined%22!=typeof%20Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,%7Bvalue:%22Module%22%7D),Object.defineProperty(e,%22__esModule%22,%7Bvalue:!0%7D)%7D,n.t=function(e,t)%7Bif(1&t&&(e=n(e)),8&t)return%20e;if(4&t&&%22object%22==typeof%20e&&e&&e.__esModule)return%20e;var%20a=Object.create(null);if(n.r(a),Object.defineProperty(a,%22default%22,%7Benumerable:!0,value:e%7D),2&t&&%22string%22!=typeof%20e)for(var%20r%20in%20e)n.d(a,r,function(t)%7Breturn%20e%5Bt%5D%7D.bind(null,r));return%20a%7D,n.n=function(e)%7Bvar%20t=e&&e.__esModule?function()%7Breturn%20e.default%7D:function()%7Breturn%20e%7D;return%20n.d(t,%22a%22,t),t%7D,n.o=function(e,t)%7Breturn%20Object.prototype.hasOwnProperty.call(e,t)%7D,n.p=%22%22,n(n.s=0)%7D(%5Bfunction(e,t,n)%7B%22use%20strict%22;n.r(t);var%20a=%7Blangs:%7B%22de-DE%22:%7B%22helpers.localize_defaultlang%22:%22Ausgew%C3%A4hlte%20Sprache:%20$%7BLANG_DEFAULT%7D%20%5Cn%20Weitere%20Informationen%20zu%20den%20unterst%C3%BCtzten%20Sprachen%20findest%20du%20auf%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20ist%20veraltet.%20Bitte%20besuche%20die%20Seite%20http://theus.github.io/instantgram%20f%C3%BCr%20ein%20Update.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Installierte%20Version%20$%7Bdata.version%7D%20%7C%20Neue%20Version:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20sucht%20nach%20neuen%20verf%C3%BCgbaren%20Updates%E2%80%A6%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20wurde%20aktualisiert.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20hat%20ein%20neues%20Update%20gefunden.%5CnBitte%20besuche%20die%20Seite%20http://theus.github.io/instantgram,%20um%20das%20Update%20zu%20installieren.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20funktioniert%20nur%20mit%20instagram.com.%22,%22index#program#modal@alert_dontFound%22:%22%5Binstantgram%5D%20konnte%20kein%20Bild%20in%20diesem%20Post%20finden.%20Bitte%20%C3%B6ffne%20den%20Link%20in%20einem%20neuen%20Tab.%22,%22index#program#post@alert_dontFound%22:%22Ops,%20%5Binstantgram%5D%20konnte%20leider%20kein%20Bild%20finden%20%20:-(%22,%22index#program#screen@alert_dontFound%22:%22%5Binstantgram%5D%20hat%20mehr%20als%201%20Bild%20gefunden.%20Bist%20du%20in%20der%20Profilansicht?%20Falls%20ja,%20%C3%B6ffne%20bitte%20zuerst%20einen%20einzelnen%20Post%20und%20f%C3%BChre%20%5Binstantgram%5D%20erneut%20aus.%22,%22index#program@alert_dontFound%22:%22Ops,%20hast%20du%20einen%20Instagram%20Post%20ge%C3%B6ffnet?%20Zum%20Beispiel%20instagram.com/p/82jd828jd%22%7D,%22en-US%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20set%20language:%20$%7BLANG_DEFAULT%7D%20%5Cn%20For%20more%20information%20about%20available%20languages%20please%20check%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20is%20outdated.%20Please%20check%20http://theus.github.io/instantgram%20for%20available%20updates.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Installed%20version:%20$%7Bdata.version%7D%20%7C%20New%20update:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20is%20looking%20for%20available%20updates%E2%80%A6%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20updated%20your%20current%20version.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20found%20a%20new%20available%20update.%5CnPlease%20check%20http://theus.github.io/instantgram%20to%20install%20it.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20only%20works%20on%20instagram.com.%22,%22index#program#modal@alert_dontFound%22:%22%5Binstantgram%5D%20didn't%20find%20any%20image%20in%20this%20Instagram%20post.%20Please%20try%20to%20open%20the%20link%20in%20a%20new%20tab.%22,%22index#program#post@alert_dontFound%22:%22Ops,%20%5Binstantgram%5D%20couldn't%20find%20any%20image%20%20:-(%22,%22index#program#screen@alert_dontFound%22:%22%5Binstantgram%5D%20found%20more%20than%201%20image.%20Are%20you%20on%20a%20profile%20page?%20If%20yes,%20please%20open%20a%20single%20post%20first%20and%20open%20%5Binstantgram%5D%20again.%22,%22index#program@alert_dontFound%22:%22Ops,%20did%20you%20open%20any%20Instagram%20post?%20Like%20for%20example%20instagram.com/p/82jd828jd%22%7D,%22es-AR%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20elegir%20idioma:%20$%7BLANG_DEFAULT%7D%20%5Cn%20Para%20m%C3%A1s%20informaci%C3%B3n%20acerca%20de%20los%20idiomas%20disponibles,%20por%20favor%20visite%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20est%C3%A1%20desactualizado.%20Por%20favor%20visite%20http://theus.github.io/instantgram%20para%20ver%20actualizaciones.%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20Versi%C3%B3n%20instalada:%20$%7Bdata.version%7D%20%7C%20Nueva%20actualizaci%C3%B3n:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20est%C3%A1%20buscando%20nuevas%20actualizaciones%E2%80%A6%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20actualiz%C3%B3%20a%20la%20versi%C3%B3n%20actual.%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20encontr%C3%B3%20una%20nueva%20actualizaci%C3%B3n%20disponible.%5CnPor%20favor%20visite%20http://theus.github.io/instantgram%20para%20instalarla.%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20s%C3%B3lo%20funciona%20en%20instagram.com.%22,%22index#program#modal@alert_dontFound%22:%22%5Binstantgram%5D%20no%20encontr%C3%B3%20ninguna%20imagen%20en%20esta%20publicaci%C3%B3n%20de%20Instagram.%20Por%20favor%20intente%20abrir%20el%20link%20en%20una%20nueva%20pesta%C3%B1a.%22,%22index#program#post@alert_dontFound%22:%22Ups,%20%5Binstantgram%5D%20no%20pudo%20encontrar%20ninguna%20imagen%20:-(%22,%22index#program#screen@alert_dontFound%22:%22%5Binstantgram%5D%20encontr%C3%B3%20m%C3%A1s%20de%201%20imagen.%20%C2%BFEst%C3%A1s%20en%20una%20p%C3%A1gina%20de%20perfil?%20Si%20es%20as%C3%AD,%20por%20favor%20ingresa%20en%20una%20publicaci%C3%B3n%20y%20luego%20abre%20%5Binstantgram%5D%20nuevamente.%22,%22index#program@alert_dontFound%22:%22Ups,%20abriste%20alguna%20publicaci%C3%B3n%20de%20Instagram?%20Por%20ejemplo%20instagram.com/p/82jd828jd%22%7D,%22pt-BR%22:%7B%22helpers.localize_defaultlang%22:%22%5Binstantgram%5D%20idioma%20configurado:%20$%7BLANG_DEFAULT%7D%20%5Cnpara%20mais%20informa%C3%A7%C3%B5es%20sobre%20os%20idiomas%20suportados,%20acesse%20http://theus.github.io/instantgram%22,%22modules.update@oudated_outdated%22:%22%5Binstantgram%5D%20est%C3%A1%20desatualizado.%20Acesse%20http://theus.github.io/instantgram%20para%20atualizar%22,%22modules.update@oudated_localInfo%22:%22%5Binstantgram%5D%20vers%C3%A3o%20local:%20$%7Bdata.version%7D%20%7C%20nova%20vers%C3%A3o:%20$%7Bdata.gitVersion%7D%22,%22modules.update@determineIfGetUpdateIsNecessary_contacting%22:%22%5Binstantgram%5D%20est%C3%A1%20procurando%20atualiza%C3%A7%C3%B5es...%22,%22modules.update@determineIfGetUpdateIsNecessary_updated%22:%22%5Binstantgram%5D%20informa%C3%A7%C3%B5es%20locais%20atualizadas%22,%22modules.update@determineIfGetUpdateIsNecessary_@alert_found%22:%22%5Binstantgram%5D%20encontrou%20uma%20atualiza%C3%A7%C3%A3o.%5Cn%20acesse%20theus.github.io/instantgram%20para%20atualizar%22,%22index@alert_onlyWorks%22:%22%5Binstantgram%5D%20somente%20funciona%20no%20instagram.com%22,%22index#program#modal@alert_dontFound%22:%22%5Binstantgram%5D%20n%C3%A3o%20encontrou%20uma%20imagem%20em%20um%20post.%20Tente%20abrir%20o%20link%20em%20uma%20nova%20aba.%22,%22index#program#post@alert_dontFound%22:%22ops,%20%5Binstantgram%5D%20n%C3%A3o%20encontrou%20a%20imagem%20:(%22,%22index#program#screen@alert_dontFound%22:%22%5Binstantgram%5D%20a%20procura%20por%20imagem%20na%20tela%20encontrou%20mais%20de%201%20imagem.%20Voc%C3%AA%20est%C3%A1%20em%20um%20perfil?%20Se%20sim,%20abra%20alguma%20imagem%20antes%20de%20rodar%20o%20%5Binstantgram%5D%22,%22index#program@alert_dontFound%22:%22ops,%20voc%C3%AA%20est%C3%A1%20em%20algum%20post%20do%20instagram?%20ex:%20instagram.com/p/82jd828jd%22%7D%7D%7D,r=%7Bde:%22de-DE%22,pt:%22pt-BR%22,en:%22en-US%22,%22en-GB%22:%22en-US%22%7D%5Bnavigator.language%5D%7C%7C%22en-US%22;function%20o(e,t)%7Bvoid%200===t&&(t=r);try%7Breturn%20a.langs.hasOwnProperty(t)%7C%7C(t=%22en-US%22),a.langs%5Bt%5D%5Be%5D?a.langs%5Bt%5D%5Be%5D:%22%22%7Dcatch(n)%7Breturn%20console.error(%22%5Binstantgram%5DLOC%20error:%22,n),%22ops,%20an%20error%20ocurred%20in%20localization%20system.%20Enter%20in%20https://github.com/theus/instantgram/issues/new%20and%20open%20an%20issue%20with%20this%20code:%20'LOC_dont_found_str_neither_default:%5B%22+t+%22-%3E%22+e+%22%5D'%5Cn%20%20%20%20for%20more%20information%20open%20the%20console%22%7D%7Dconsole.info(o(%22helpers.localize_defaultlang%22).replace(%22$%7BLANG_DEFAULT%7D%22,r));var%20i=o;function%20s(e)%7Bvar%20t=window,n=e.getBoundingClientRect();return%20n.bottom%3E0&&n.right%3E0&&n.left%3Ct.innerWidth&&n.top%3Ct.innerHeight%7Dfunction%20l(e)%7Bvar%20t=e%5BObject.keys(e).find(function(e)%7Breturn%20e.includes(%22Instance%22)%7D)%5D.return.memoizedProps.fallbackSrc;return%20t%7C%7Cnull%7Dvar%20d=function()%7Bfunction%20e(e,t)%7Bthis._program=e,this._module=t%7Dreturn%20e.prototype.image=function(e)%7Bthis._program.setImageLink(e),this._program.foundImage=!0,this._program.foundByModule=this._module.getName(),window.open(this._program.imageLink)%7D,e.prototype.video=function(e)%7Bwindow.open(e),this._program.foundByModule=this._module.getName(),this._program.foundVideo=!0,this._program.alertNotInInstagramPost=!0%7D,e%7D(),u=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInPage%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(1!==document.querySelectorAll(%22main%20%3E%20section%22).length);else%7Bvar%20n=document.querySelector(%22main%20%3E%20section%22),a=void%200,r=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20article%22));a=r.length%3E1?3==r.length?r%5BMath.floor(r.length/2)%5D:2==r.length?1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?r.reverse().shift():r.reverse().pop():r%5BMath.floor(r.length/2)%5D:n.querySelector(%22video%22);var%20o=void%200,i=Array.from(a.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);i.length%3E1?(3==i.length?o=i%5BMath.floor(i.length/2)%5D:2==i.length&&(o=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?i.reverse().shift():i.reverse().pop()),o=o.querySelectorAll(%22video%22)):o=n.querySelectorAll(%22video%22);for(var%20u=0;u%3Co.length;u++)if(s(o%5Bu%5D))%7Bvar%20m=new%20d(e,this),g=o%5Bu%5D.src;if(g)%7Bif(-1!==g.indexOf(%22blob:%22))%7Bg=l(o%5Bu%5D),m.video(g);break%20e%7Dm.video(g),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInPage()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),m=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageVideoInStories%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(e.regexStoriesURI.test(e.path))%7Bvar%20n=document.getElementById(%22react-root%22),a=n.querySelectorAll(%22video%20%3E%20source%22),r=n.querySelector(e.mediaImageElExpression)%7C%7Cn.querySelector(e.mediaImageElExpressions.img),o=%22%22;o=a.length%3E0?a%5B0%5D.src:r.src;var%20i=new%20d(e,this);if(o&&(i.image(o),t=!0),!1===t&&e.videos.length%3E0)%7Bvar%20s=e.videos%5B0%5D.src;if(!s&&e.videos%5B0%5D.children)s=e.videos%5B0%5D.children%5B0%5D.src;s&&(i.video(s),t=!0)%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageVideoInStories()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),g=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(1!==document.getElementsByTagName(%22article%22).length);else%7Bvar%20n=document.querySelector(%22article%22),a=void%200,r=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);r.length%3E1?(3==r.length?a=r%5BMath.floor(r.length/2)%5D:2==r.length&&(a=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?r.reverse().shift():r.reverse().pop()),a=a.querySelectorAll(%22video%22)):a=n.querySelectorAll(%22video%22);for(var%20o=0;o%3Ca.length;o++)if(s(a%5Bo%5D))%7Bvar%20i=new%20d(e,this),u=a%5Bo%5D.src;if(u)%7Bif(-1!==u.indexOf(%22blob:%22))%7Bu=l(a%5Bo%5D),i.video(u);break%20e%7Di.video(u),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),c=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22VideoInModalPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Be:if(2!==document.getElementsByTagName(%22article%22).length);else%7Bvar%20n=document.getElementsByTagName(%22article%22)%5B1%5D,a=void%200,r=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);r.length%3E1?(3==r.length?a=r%5BMath.floor(r.length/2)%5D:2==r.length&&(a=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?r.reverse().shift():r.reverse().pop()),a=a.querySelectorAll(%22video%22)):a=n.querySelectorAll(%22video%22);for(var%20o=0;o%3Ca.length;o++)if(s(a%5Bo%5D))%7Bvar%20i=a%5Bo%5D.src,u=new%20d(e,this);if(i)%7Bif(-1!==i.indexOf(%22blob:%22))%7Bi=l(a%5Bo%5D),u.video(i);break%20e%7Du.video(i),t=!0%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchVideoInModalPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),p=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInPage%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(1!==document.querySelectorAll(%22#react-root%20%3E%20section%22).length);else%7Bfor(var%20n=document.querySelector(%22#react-root%20%3E%20section%22).querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20article%22),a=void%200,r=0;r%3Cn.length;r++)if(s(n%5Br%5D))%7Bvar%20o=n%5Br%5D.querySelector(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20img%22);o&&(a=o.src);break%7Dif(!a)%7Bvar%20i=Array.from(n%5B0%5D.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);if(i)%7Bvar%20l=void%200;if(i.length%3E1)3==i.length?l=i%5BMath.floor(i.length/2)%5D:2==i.length&&(l=1==n%5B0%5D.querySelector(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%22).getElementsByClassName(%22coreSpriteLeftChevron%22).length?i.reverse().shift():i.reverse().pop()),a=(l=l.querySelector(e.mediaImageElExpression)).src%7D%7Da?((new%20d(e,this)).image(a),t=!0):e.context=%7BhasMsg:!0,msg:%22index#program#post@alert_dontFound%22%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInPage()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),f=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(1===document.getElementsByTagName(%22article%22).length)%7Bvar%20n=document.querySelector(%22article%22),a=void%200,r=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);r.length%3E1?(3==r.length?a=r%5BMath.floor(r.length/2)%5D:2==r.length&&(a=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?r.reverse().shift():r.reverse().pop()),a=a.querySelectorAll(e.mediaImageElExpression)):a=n.querySelectorAll(e.mediaImageElExpression);for(var%20o=0;o%3Ca.length;o++)if(s(a%5Bo%5D))%7Bvar%20i=a%5Bo%5D.src;i?((new%20d(e,this)).image(i),t=!0):e.context=%7BhasMsg:!0,msg:%22index#program#screen@alert_dontFound%22%7D,e.alertNotInInstagramPost=!1%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D(),h=function()%7Bfunction%20e()%7B%7Dreturn%20e.prototype.getName=function()%7Breturn%22ImageInModalPost%22%7D,e.prototype.execute=function(e)%7Bvar%20t=!1;try%7Bif(2===document.getElementsByTagName(%22article%22).length)%7Bvar%20n=document.getElementsByTagName(%22article%22)%5B1%5D,a=void%200,r=Array.from(n.querySelectorAll(%22div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20ul:first-child%20%3E%20li%22)).filter(function(e)%7Breturn%20null!=e.firstChild&&e.classList.length%3E0%7D);r.length%3E1?(3==r.length?a=r%5BMath.floor(r.length/2)%5D:2==r.length&&(a=1==document.getElementsByClassName(%22coreSpriteLeftChevron%22).length?r.reverse().shift():r.reverse().pop()),a=a.querySelectorAll(e.mediaImageElExpression)):(a=n.querySelectorAll(e.mediaImageElExpression))&&0===a.length&&(a=n.querySelectorAll(e.mediaImageElExpression));for(var%20o=0;o%3Ca.length;o++)if(s(a%5Bo%5D))%7Bvar%20i=a%5Bo%5D.src;i?((new%20d(e,this)).image(i),t=!0):e.context=%7BhasMsg:!0,msg:%22index#program#modal@alert_dontFound%22%7D%7D%7D%7Dcatch(t)%7Bconsole.error(%22searchImageInModalPost()%22,%22%5Binstantgram%5D%20%22+e.VERSION,t)%7Dreturn%20t%7D,e%7D();var%20v=%7Bcover:'img%5Bstyle=%22object-fit:%20cover;%22%5D',srcset:%22img%5Bsrcset%5D%22,img:%22img%22%7D,y=%7BVERSION:%224.0.4%22,mediaImageElExpressions:v,mediaImageElExpression:window.navigator.userAgent.indexOf(%22Edge%22)%3E-1%7C%7Cwindow.navigator.userAgent.indexOf(%22Edg%22)%3E-1?v.cover:v.srcset,hostname:window.location.hostname,path:window.location.pathname,images:%5B%5D,imagesOnViewPort:%5B%5D,videos:document.querySelectorAll(%22video%22),regexOriginalImage:/%5C/%5Ba-z%5D+%5Cd+%5Ba-z%5D?x%5Cd+%5Ba-z%5D?/,regexMaxResImage:/%5C/%5Ba-z%5D+%5B1080%5D+%5Ba-z%5D?x%5B1080%5D+%5Ba-z%5D?/,regexPath:/%5E%5C/p%5C//,regexHostname:/instagram%5C.com/,regexStoriesURI:/stories%5C/(.*)+/,regexURL:/(%5B--:%5Cw?@%25&+~#=%5D*%5C.%5Ba-z%5D%7B2,4%7D%5C/%7B0,2%7D)((?:%5B?&%5D(?:%5Cw+)=(?:%5Cw+))+%7C%5B--:%5Cw?@%25&+~#=%5D+)?/,foundByModule:null,probablyHasAGallery:%7Bcheck:null,byModule:%22%22%7D,setImageLink:function(e)%7Bthis.imageLinkBeforeParse=e,this.regexMaxResImage.test(e)?this.imageLink=e:this.imageLink=this.regexOriginalImage.test(e)?e.replace(this.regexOriginalImage,%22%22):e%7D,foundVideo:!1,foundImage:!1,imageLink:!1,imageLinkBeforeParse:!1,alertNotInInstagramPost:!1,context:%7BhasMsg:!1,msg:%22%22%7D%7D,I=document.images;!function(e,t,n)%7Bfor(var%20a=0;a%3Ce.length;a++)t.call(n,a,e%5Ba%5D)%7D(I,function(e,t)%7Bvar%20n=t;((function(e)%7Breturn%20function(e)%7Bvar%20t=%5B%5D;for(t.push(e);e.parentNode;)t.unshift(e.parentNode),e=e.parentNode;return%20t%7D(e).filter(function(e)%7Breturn%22ARTICLE%22===e.nodeName%7D).length%3E0%7D)(n)%7C%7C2===I.length)&&(y.images.push(n),s(n)&&y.imagesOnViewPort.push(n))%7D),y.regexHostname.test(y.hostname)%7C%7Cwindow.alert(i(%22index@alert_onlyWorks%22)),y.regexHostname.test(y.hostname)&&(!1===(new%20u).execute(y)&&!1===(new%20m).execute(y)&&!1===(new%20g).execute(y)&&!1===(new%20c).execute(y)&&!1===(new%20f).execute(y)&&!1===(new%20h).execute(y)&&!1===(new%20p).execute(y)&&(y.context.hasMsg=!1),y.context.hasMsg&&window.alert(i(y.context.msg)),!y.alertNotInInstagramPost%7C%7Cy.foundVideo%7C%7Cy.foundImage%7C%7Cwindow.alert(i(%22index#program@alert_dontFound%22)))%7D%5D);})()
Pokazuje wszystkie DIV na stronie
Kod:
javascript:void(d=document);void(el=d.getElementsByTagName('div'));for(i=0;i%3Cel.length;i++)%7Bvoid(el%5Bi%5D.style.border='1px%20dashed%20gray')%7D;void(el=d.getElementsByTagName('span'));for(i=0;i%3Cel.length;i++)%7Bvoid(el%5Bi%5D.style.border='1px%20solid%20black');%7D
Sprawdzanie zarejestrowanych użytkowników na WP
Kod:
javascript:void(location.href='http://' + location.host + '/wp-json/wp/v2/users')
Przypominam też o poradniku, w którym opisuję jak to zablokować
-
Wyłączenie dostępu do REST API i blokowanie enumeracji - zabezpieczenie WordPress
Sprawdź też mój poradnik o tym
jak zablokować ruch spoza Polski lub z konkretnych krajów
Pozdrawiam serdecznie
Reklama
...
ZYSKAJ DOSTĘP DO STALE ROZWIJANYCH PORADNIKÓW
PRYWATNOŚĆ - OFFSHORE - PŁATNOŚCI - ZABEZPIECZENIA - DARKNET
Kompleksowy Mentoring Bezpieczeństwa i Anonimowości
(Ten post był ostatnio modyfikowany: 01-10-2021 06:55 przez Harry. .)