Anti-Adblock Caoliu

解除草榴反广告过滤限制

  1. // ==UserScript==
  2. // @name Anti-Adblock Caoliu
  3. // @namespace xuyiming.open@outlook.com
  4. // @description 解除草榴反广告过滤限制
  5. // @author 依然独特
  6. // @version 1.0.0
  7. // @grant unsafeWindow
  8. // @run-at document-start
  9. // @require https://greasyfork.org/scripts/18715-hooks/code/Hooks.js?version=661566
  10. // @include *://t66y.com/*
  11. // @include *://*.t66y.com/*
  12. // @match *://t66y.com/*
  13. // @match *://*.t66y.com/*
  14. // @license BSD 3-Clause
  15. // ==/UserScript==
  16.  
  17. ( function () {
  18. "use strict";
  19.  
  20. Hooks.set( unsafeWindow, "jQuery", function ( target, propertyName, ignored, jQuery ) {
  21. Hooks.method( jQuery.fn, "ready", function ( target, methodName, method, thisArg, args ) {
  22. unsafeWindow[ args[ 0 ].toString().match( /^\s*(.+)\(\);?$/m )[ 1 ] ] = function () { };
  23.  
  24. return Hooks.Reply.method( [ target, methodName, method, thisArg, args ] );
  25. } );
  26.  
  27. return Hooks.Reply.set( arguments );
  28. } );
  29. } )();