arras.io anti anti adblocker

also blocks analytics-server.arras.cx:2002

  1. // ==UserScript==
  2. // @name arras.io anti anti adblocker
  3. // @namespace http://bzzzzdzzzz.blogspot.com/
  4. // @description also blocks analytics-server.arras.cx:2002
  5. // @author BZZZZ
  6. // @include /^https\:\/\/arras\.io\/([?#]|$)/
  7. // @version 0.6
  8. // @noframes
  9. // @grant none
  10. // @run-at document-start
  11. // @inject-into content
  12. // ==/UserScript==
  13.  
  14. {
  15. const a=document.createElement("div");
  16. a.setAttribute("onclick",`"use strict";
  17. var fApply=window.Reflect.apply,pr=window.Promise,fp=window.Function.prototype,probestr="/probe?",probestrlen=probestr.length;
  18. window.fetch=new window.Proxy(window.fetch,{
  19. "__proto__":null,
  20. "apply":(t,th,args)=>{
  21. b:if(args.length){
  22. var s=\`\${args[0]}\`;
  23. if("https://analytics-server.arras.cx:2002/data"!==s){
  24. var i=probestrlen;
  25. if(s.length<i)break b;
  26. while(i)if(probestr[--i]!==s[i])break b;
  27. }
  28. return new pr(fp);
  29. }
  30. return fApply(t,th,args);
  31. }
  32. });`);
  33. a.click();
  34. }