Igg-Games Anti-AdBlock Bypass

Bypass Igg-Games anti-adblock.

目前為 2022-04-28 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Igg-Games Anti-AdBlock Bypass
  3. // @namespace https://github.com/Enchoseon/enchos-assorted-userscripts/raw/main/igg-games-anti-adblock-bypass.user.js
  4. // @version 0.6.9
  5. // @description Bypass Igg-Games anti-adblock.
  6. // @author Enchoseon
  7. // @include *igg-games.com*
  8. // @run-at document-start
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // Intercept JavaScript
  15. window.addEventListener("beforescriptexecute", function(e) {
  16. if (e.target.innerText.hashCode() === 123130781) { // Hashcode of the obfuscated inline anti-adblock JavaScript
  17. e.preventDefault();
  18. e.stopPropagation();
  19. return false;
  20. }
  21. return true;
  22. });
  23. // Generate hashcode (https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/)
  24. String.prototype.hashCode = function() {
  25. var hash = 0, i, chr;
  26. if (this.length === 0) return hash;
  27. for (i = 0; i < this.length; i++) {
  28. chr = this.charCodeAt(i);
  29. hash = ((hash << 5) - hash) + chr;
  30. hash |= 0; // Convert to 32bit integer
  31. }
  32. return hash;
  33. };
  34. })();

QingJ © 2025

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