yimuhe

1.hilight yimuhe download links in javlib website. 2.delete torrentkitty.tv ad

As of 2019-09-20. See the latest version.

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         yimuhe
// @namespace    https://greasyfork.org/zh-CN/scripts/38740-yimuhe
// @version      0.9.14
// @description  1.hilight yimuhe download links in javlib website. 2.delete torrentkitty.tv ad
// @author       You
// @include      http://*.javlib.com/*
// @include      http*:/*.torrentkitty.*/*
// @include      http*://*.q30x.com/*
// @include      http*://*.f37b.com/*
// @include      http*://*.w35p.com/*

// @grant        none
// @run-at document-end
// ==/UserScript==



(function () {
    var hostname = window.location.hostname;
    //1
    var pattern=new RegExp("t33r|q30x.com|f37b.com|javlib.com");
    if(pattern.test(hostname)){
        $.each($("a[href^='redirect.php?url']"),function(index,a){
            var origin = location.origin;
            a.href = decodeURIComponent(a.href.replace(origin+"/cn/redirect.php?url=",""));

            a.text = a.text + "    " + a.href + "      ";
            if(a.href.includes("yimuhe")){
                $(a).parentsUntil("tr").closest('.t').css('background-color', '#6B6C83');
                a.style='font-size:50px;';
            }else{
                a.style='font-size:20px;';
            }
        });
        return;
    }
    //2
    if(hostname.indexOf('torrentkitty')!=-1){
        //破坏它的脚本变量引用. 原先l8l1X变量是引用window,然后给加定时器,不停地添加页面的mousedown事件,导致鼠标点击任何地方都会跳转到广告页面.
        window.l8l1X=1;
        return;
    }
}) ();