@@PT-site-helper

PT-site-helper PT 助手

目前為 2018-07-04 提交的版本,檢視 最新版本

// ==UserScript==
// @name         @@PT-site-helper
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  PT-site-helper PT 助手
// @author       You
// @match        http://hdhome.org/*
// @match        https://ourbits.club/*
// @match        https://nanyangpt.com/*
// @require https://cdn.bootcss.com/jquery/1.12.2/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var url = window.location.origin;

    $('body, table, .torrents td').css({
        "background-color": "#efefef",
        "color": "#000"
    });
    $('table a').css('color', 'blue');

    setTimeout(function() {
        if ($('a.faqlink').length) window.location.href = $('a.faqlink').attr('href')
    }, 2000);

    function insertButton(btnName) {
        var btn = `<button id="fn1"
        style="position: fixed; left: 10px; top: 10px; z-index: 9999; background: #fff; border: 1px solid #aaa; padding: 4px 10px;"
        >${btnName}</button>`;

        $('body').append(btn);
        $('#fn1').on('click', function () {
            start();
        });
    }

    function start() {
        var $free = $('.pro_free');
        $.each($free, (index, item) => {
            // var $tr = $(item).parents('.sticky_top');
            console.log($(item).parent());
            // $tr.find('td').css('background', 'red');
            $(item).parent().attr('style', 'background: orange !important');
        });
    }

    insertButton('只看免费');
})();

QingJ © 2025

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