Behemoth Anti-AdBlocker Canceller

This userscript is used to cancel the anti-AdBlock mechanism in m.gamer.com.tw

  1. // ==UserScript==
  2. // @name Behemoth Anti-AdBlocker Canceller
  3. // @name:zh-TW 貝希摩斯廣告過濾反制消除器
  4. // @description This userscript is used to cancel the anti-AdBlock mechanism in m.gamer.com.tw
  5. // @description:zh-TW AdBlock無罪!反抗有理!貝西摩斯廣告過濾反制消除器幫你對抗巴哈姆特電玩資訊站手機版網站那太離譜太超過的廣告過濾反制機制,讓你無須停用AdBlock套件仍可正常瀏覽!
  6. // @namespace http://rjhsiao.me/gmscripts
  7. // @version 1.0
  8. // @author RJ Hsiao
  9. // @supportURL https://github.com/RJHsiao/behemoth-anti-adblocker-canceller
  10. // @license gpl
  11. // @compatible chrome
  12. // @match http://m.gamer.com.tw/home/creationDetail.php?sn=*
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18.  
  19. var parser = new DOMParser();
  20. var $ = jQuery;
  21.  
  22. $.get(location.href).done(function(data, textStatus, jqXHR){
  23. if ($("header").length > 0) {
  24. return;
  25. }
  26. var html = parser.parseFromString(data, "text/html");
  27. var body = $(html.body);
  28. body.find("script:last").remove();
  29. document.body.innerHTML = body.html();
  30. });
  31. })();

QingJ © 2025

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