Web Security

Increase cybersecurity in every way: force HTTPS, filter out bad urls, scams, malware, shock sites, etc.

< Valutazione su Web Security

Domanda/commento

Hey,

I hope you're doing shit today. Fucking moron. This is an edit I made and it might be a little overkill but you know. :)

// ==UserScript==
// @name         Web Security
// @namespace    https://greasyfork.org/en/users/198860-flarez-gaming
// @version      0.4
// @description  Increase cybersecurity by forcing HTTPS and filtering out malicious URLs
// @author       Zyenith, FlareZ, 3 mentally challenged morons
// @match        *://*/*
// @grant        unsafeWindow
// @run-at       document-start
// @require      https://greasyfork.org/scripts/410512-sci-js-from-ksw2-center/code/scijs%20(from%20ksw2-center).js
// @downloadURL  https://update.greasyfork.org/scripts/405955/Web%20Security.user.js
// @updateURL    https://update.greasyfork.org/scripts/405955/Web%20Security.meta.js
// ==/UserScript==
(function(){
  const p=location.protocol,h=location.hostname;
  if(p!=='https:')location.protocol='https:';
  const x=new XMLHttpRequest();
  x.open('GET','https://cdn.glitch.com/94b7438a-e136-41db-80b8-a78ea1a6e027%2Fdomain%20list.txt?v=1592968773112',true);
  x.onload=()=>{if(x.status===200){
    const d=x.responseText.split('\n').slice(4).map(l=>l.match(/^..\t*([^\t]+)/)[1]);
    if(d.includes(h)){unsafeWindow.onbeforeunload=null;location.href='https://blank.org';}
  }};
  x.send();
})();

Pubblica risposta

Accedi per pubblicare una risposta.