您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
单击附件直接下载,不再需要跳转到下载页面
// ==UserScript== // @name bt之家附件直下 // @author LZY0699 // @create 2018-10-09 // @namespace [email protected] // @description 单击附件直接下载,不再需要跳转到下载页面 // @include http://btbtt.me/thread-index* // @include https://btbtt.me/thread-index* // @include http://www.btbtt.me/thread-index* // @include https://www.btbtt.me/thread-index* // @version 1 // @grant none // ==/UserScript== (function (){ var nodes = document.querySelectorAll("a[href^='attach-dialog-']"); // alert(nodes.length.toString()); for(var i=0;i<nodes.length;i++){ var url=nodes[i].href.replace(/attach-dialog-/,"attach-download-"); nodes[i].href = url; } })();