您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add "MAM" button to NYT best sellers list
// ==UserScript== // @name NYT Search MAM // @namespace https://gf.qytechs.cn/en/users/78880 // @version 0.2.5 // @description Add "MAM" button to NYT best sellers list // @author Slengpung // @match https://www.nytimes.com/books/best-sellers/* // @grant none // ==/UserScript== window.addEventListener("load", Greasemonkey_main, false); function Greasemonkey_main() { // Grab the books var lis = document.getElementsByClassName("css-1mr03gh"); for (var i = 0; i < lis.length; ++i) { // Get current book title var title = lis[i].querySelector('[itemprop=name]').textContent; // Create new button which searches MAM for the given title var a = document.createElement("a"); a.href = "https://www.myanonamouse.net/tor/browse.php?tor[text]=" + encodeURIComponent(title); a.target = "_new"; var mambutton = document.createElement("div"); var button = document.createElement("button"); var text = document.createTextNode("MAM"); button.appendChild(text); button.className += "css-80zux2"; mambutton.appendChild(button); mambutton.className += "css-79elbk"; a.appendChild(mambutton); // Insert new button lis[i].appendChild(a); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址