Greasy Fork镜像 支持简体中文。

Shellshock.io Remove Adblocker messages & respawn timer

Remove the Adblock popup, as well as the respawn timer to avoid the extra wait in shell shockers

  1. // ==UserScript==
  2. // @name Shellshock.io Remove Adblocker messages & respawn timer
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6
  5. // @description Remove the Adblock popup, as well as the respawn timer to avoid the extra wait in shell shockers
  6. // @author mewen25
  7. // @match *://shellshock.io/*
  8. // @match *://algebra.best/*
  9. // @match *://algebra.vip/*
  10. // @match *://biologyclass.club/*
  11. // @match *://deadlyegg.com/*
  12. // @match *://deathegg.world/*
  13. // @match *://eggcombat.com/*
  14. // @match *://egg.dance/*
  15. // @match *://eggfacts.fun/*
  16. // @match *://egghead.institute/*
  17. // @match *://eggisthenewblack.com/*
  18. // @match *://eggsarecool.com/*
  19. // @match *://geometry.best/*
  20. // @match *://geometry.monster/*
  21. // @match *://geometry.pw/*
  22. // @match *://geometry.report/*
  23. // @match *://hardboiled.life/*
  24. // @match *://hardshell.life/*
  25. // @match *://humanorganising.org/*
  26. // @match *://mathdrills.info/*
  27. // @match *://mathfun.rocks/*
  28. // @match *://mathgames.world/*
  29. // @match *://math.international/*
  30. // @match *://mathlete.fun/*
  31. // @match *://mathlete.pro/*
  32. // @match *://overeasy.club/*
  33. // @match *://scrambled.best/*
  34. // @match *://scrambled.tech/*
  35. // @match *://scrambled.today/*
  36. // @match *://scrambled.us/*
  37. // @match *://scrambled.world/*
  38. // @match *://shellshockers.club/*
  39. // @match *://shellshockers.site/*
  40. // @match *://shellshockers.us/*
  41. // @match *://shellshockers.world/*
  42. // @match *://softboiled.club/*
  43. // @match *://violentegg.club/*
  44. // @match *://violentegg.fun/*
  45. // @match *://yolk.best/*
  46. // @match *://yolk.life/*
  47. // @match *://yolk.rocks/*
  48. // @match *://yolk.tech/*
  49. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  50. // @grant none
  51. // @run-at document-start
  52. // ==/UserScript==
  53.  
  54. var open_prototype = XMLHttpRequest.prototype.open, intercept_response = function(callback) {
  55. XMLHttpRequest.prototype.open = function(method, url) {
  56. if(url.indexOf("shellshock.js") > -1) this.isScript = true;
  57. this.addEventListener('readystatechange', function(event) {
  58. if ( this.readyState === 4 && this.isScript ) {
  59. var response = callback(event.target.responseText);
  60. Object.defineProperty(this, 'response', {writable: true});
  61. Object.defineProperty(this, 'responseText', {writable: true});
  62. this.response = this.responseText = response;
  63. }
  64. });
  65. return open_prototype.apply(this, arguments);
  66. };
  67. };
  68.  
  69. intercept_response(function(response) {
  70. const [adLine, adVar1, adVar2] = /function (.{2})\(e.{2}\){.\?.+?(?=}f)}function (.{2})/.exec(response);
  71. const [timer, timerVar, timerVar2, timerVar3] = /function (.{2})\(e\){(.{2})=M.+?(?=1,)1,(.{17}).+?(?=var)/.exec(response);
  72. window.localStorage.setItem("lastPreRoll", Date.now());
  73. window.localStorage.setItem("showBigAd", Date.now()+432e5);
  74. if(!adLine || !adVar1 || !adVar2) {
  75. console.log('error doing anti adblock')
  76. } else {
  77. console.log("[INJECTING] - Adblock popup block");
  78. const replaceAd = `function ${adVar1}(e){console.log("[ADBLOCK]-blocked"),${adVar2}()}function ${adVar2}`
  79. response = response.replace(adLine, replaceAd);
  80. }
  81. if(!timer || !timerVar || !timerVar2 || !timerVar3) {
  82. console.log('error doing timer block');
  83. }
  84. else {
  85. console.log("[INJECTING] - Timer block");
  86. response = response.replace(timer, `function ${timerVar}(e){localStore.setItem("showBigAd",Date.now()+432e5),localStore.setItem("lastPreRoll",Date.now()),setTimeout(()=>{${timerVar2}=-1,${timerVar3}},3000)}`);
  87. }
  88. return response;
  89. });
  90.  
  91.  
  92.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址