您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
zimuku明细页直接显示下载地址
当前为
- // ==UserScript==
- // @name zimuku
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description zimuku明细页直接显示下载地址
- // @author You
- // @match http://www.zimuku.la/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 run() {
- let lhref = location.href;
- lhref = lhref.replace('www.zimuku.la/detail/', 'zmk.pw/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)
- }
- run();
- })();