您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ChiaSeNhac direct to download from search results
// ==UserScript== // @name Direct to download for ChiaSeNhac // @id chiasenhac_download_xifos // @namespace in.co.xifos.toolkit.chiasenhac_download // @description ChiaSeNhac direct to download from search results // @license GPL v3 or later version // @include *://search.chiasenhac.com//* // @version 0.1 // @author XiFoS // ==/UserScript== (function (d) { var target_table = document.getElementsByClassName('tbtable'); if(target_table.length < 1) { return; } else { target_table = target_table[0]; } var all_a = target_table.getElementsByTagName('a'); var a = null; var match; for(i = 0; i < all_a.length; i++) { a = all_a.item(i); if(a.href) { match = a.href.match(/(mp3.*)\.html$/); console.log(a.href); if(match) { a.href = match[1] + "_download.html"; } } } })(document);