Copy FuckingFast Links

Adds a button to copy all https://fuckingfast.co/ links

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Copy FuckingFast Links
// @namespace    https://fitgirl-repacks.site/
// @version      1.0
// @description  Adds a button to copy all https://fuckingfast.co/ links
// @author       Jony6763
// @match        https://fitgirl-repacks.site/*
// @grant        none
// @icon         https://fitgirl-repacks.site/wp-content/uploads/2016/08/cropped-icon-180x180.jpg
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener('load', () => {
        document.querySelectorAll('p[style="height: 200px; display: block;"]').forEach(p => {
            const btn = document.createElement('button');
            btn.textContent = 'Copy FuckingFast Links';
            btn.onclick = () => {
                const links = Array.from(document.querySelectorAll('a'))
                    .map(a => a.href)
                    .filter(h => h.startsWith('https://fuckingfast.co/'));
                if (!links.length) return alert('❌ No Matching URLs Found');
                const ta = document.createElement('textarea');
                ta.value = links.join("\n");
                document.body.appendChild(ta);
                ta.select();
                document.execCommand('copy');
                document.body.removeChild(ta);
                alert(`✅ ${links.length} links copied!`);
            };
            p.parentNode.insertBefore(btn, p.nextSibling);
        });
    });
})();