GGn Group Quick Search

Buttons to search torrents and log

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         GGn Group Quick Search
// @version      3
// @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 title = document.getElementById('user_script_data').dataset.groupName

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})
})