Anti-Adblock Caoliu

解除草榴反广告过滤限制

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name			Anti-Adblock Caoliu
// @namespace		[email protected]
// @description		解除草榴反广告过滤限制
// @author			依然独特
// @version			1.0.0
// @grant			unsafeWindow
// @run-at			document-start
// @require			https://greasyfork.org/scripts/18715-hooks/code/Hooks.js?version=661566
// @include			*://t66y.com/*
// @include			*://*.t66y.com/*
// @match			*://t66y.com/*
// @match			*://*.t66y.com/*
// @license			BSD 3-Clause
// ==/UserScript==

( function () {
	"use strict";

	Hooks.set( unsafeWindow, "jQuery", function ( target, propertyName, ignored, jQuery ) {
		Hooks.method( jQuery.fn, "ready", function ( target, methodName, method, thisArg, args ) {
			unsafeWindow[ args[ 0 ].toString().match( /^\s*(.+)\(\);?$/m )[ 1 ] ] = function () { };

			return Hooks.Reply.method( [ target, methodName, method, thisArg, args ] );
		} );

		return Hooks.Reply.set( arguments );
	} );
} )();