成为绅士会所的绒布球

懂的都懂

As of 2022-04-08. See the latest version.

// ==UserScript==
// @name         成为绅士会所的绒布球
// @namespace    http://tampermonkey.net/
// @version      0.11
// @description  懂的都懂
// @author       LARA_SSR
// @match        www.hentaiclub.net/*
// @include      /^((https|http|ftp|rtsp|mms)?:\/\/)www.sshs.[a-zA-Z]+.*$/
// @grant        none
// @license      GPL-3.0
// ==/UserScript==


(function () {
    'use strict';

    let addScript = function (aScript) {
        let head = document.getElementsByTagName('head')[0];
        if (head) {
            let script = document.createElement('script');
            script.setAttribute('type', 'text/javascript');
            script.textContent = aScript;
            head.appendChild(script);
            return script;
        }
        return null;
    }
    addScript(`	
        function copyFn() {
            var val = document.getElementById('copyMy');
            window.getSelection().selectAllChildren(val);
            document.execCommand("Copy");//执行浏览器复制命令
            alert("已复制好,可贴粘。");
        }
    `);
    $(".fastlink").attr('id', 'copyMy')
    $(".fastlink").after($(`<button style ="margin-left: 5px"onClick="copyFn()">点击复制</button>`))
    let dlbox = document.getElementById("dl-box");
    dlbox.style.display = "";
})();