您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Buttons to search torrents and log
// ==UserScript== // @name GGn Group Quick Search // @version 2 // @description Buttons to search torrents and log // @author ingts // @match https://gazellegames.net/torrents.php?id=* // @grant GM_openInTab // @grant GM_getValue // @grant GM_setValue // @require https://update.greasyfork.org/scripts/541342/GGn%20Corner%20Button.js // @namespace https://greasyfork.org/users/1141417 // ==/UserScript== const nameContainer = document.getElementById('display_name') const titleEl = nameContainer.childNodes[0].nodeType === Node.TEXT_NODE ? nameContainer.childNodes[0] : nameContainer.childNodes[1] const title = titleEl.textContent.trim() .replace(/^- /, '').replace(/ \(\d{4,}\)(?: \[.*])?$/, '') createCornerButton('left-vertical', 'Torrents', () => { GM_openInTab(`https://gazellegames.net/torrents.php?action=advanced&groupname=${title}`, {active: true}) }) createCornerButton('left-vertical', 'Log', e => { const b = "https://gazellegames.net/log.php?search=" if (e.shiftKey) { GM_openInTab(`${b}Torrent Group ${/\d+/.exec(location.href)[0]}`, {active: true}) return } GM_openInTab(`${b}${title}`, {active: true}) })