zimuku

zimuku明细页直接显示下载地址

Stan na 29-07-2021. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         zimuku
// @namespace    http://tampermonkey.net/
// @version      3.01
// @description  zimuku明细页直接显示下载地址
// @author       backrock12
// @match        *zimuku.la/detail/*
// @match        *www.zimuku.la/detail/*
// @match        *www.zmk.pw/detail/*
// @match        *zmk.*/detail/*
// @match        *zimuku.*/detail/*
// @include      /.*zimuku\..*\/detail\/.*/
// @require      http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(function () {
    'use strict';

    async function gethtml(url) {
        return new Promise((resolve, reject) => {
            GM_xmlhttpRequest(
                {
                    url: url,
                    method: "GET",
                    onload: function (response) {
                        resolve(response.responseText);
                    }
                });
        });
    }

    async function shouwurl() {
        let lhref = location.href;
        lhref = lhref.replace('/detail/', '/dld/');

        const htmltxt = await gethtml(lhref);


        if (!htmltxt) return;
        let doc = $('<html></html>');
        doc.html(htmltxt);
        let td = doc.find('.col-xs-12 td:nth-child(1) div');
        //console.log(td);

        const subinfo = $('.subinfo');
        subinfo.append(td)

    }

    function noad() {
        function subnoad(csspath) {
            const ad1 = $(csspath);
            if (csspath.length > 0)
                ad1.css('display', 'none');
        }

        subnoad('.table');
        subnoad('div.tbhd');
        subnoad('font[color=#ca6445]');
        subnoad('.rside');
        subnoad('.rater-click-tips');
        subnoad('.rater-star-item-tips');



    }

    noad();
    shouwurl();

})();