Greasy Fork

Greasy Fork is available in English.

游侠游戏截图广告去除

去除游侠简介中游戏截图中广告。

目前为 2021-10-19 提交的版本,查看 最新版本

// ==UserScript==
// @name          游侠游戏截图广告去除
// @description   去除游侠简介中游戏截图中广告。
// @version       1.0.6
// @namespace     游侠游戏截图广告去除
// @icon          data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @author        会说话的鱼
// @include       *//down.ali213.net/*
// @require       https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at        document-start
// @grant         none
// @rewritten_script_code javascript
// ==/UserScript==

(function () {
	'use strict';
	$(function () {
		init();
	});
})();

function init() {
        $(window).on('scroll', function(){
            if($('.detail_body_con_bb_con_con #gc0').length>0) {
                if($(window).scrollTop() + $(window).height() > $('.detail_body_con_bb_con_con #gc0').offset().top - 50) {
                    $('.detail_body_con_bb_con_con #gc0').click();
                }
            }
        });
}