Sleazy Fork is available in English.

成为绅士会所的绒布球

懂的都懂

Stan na 14-04-2022. Zobacz najnowsza wersja.

// ==UserScript==
// @name         成为绅士会所的绒布球
// @namespace    http://tampermonkey.net/
// @version      0.12
// @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 addStyle = function (aCss) {
        let head = document.getElementsByTagName('head')[0];
        if (head) {
            let style = document.createElement('style');
            style.setAttribute('type', 'text/css');
            style.textContent = aCss;
            head.appendChild(style);
            return style;
        }
        return null;
    }
    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('spanE');
            window.getSelection().selectAllChildren(val);
            document.execCommand("Copy");//执行浏览器复制命令
            alert("已复制好,可贴粘。");
        }
    `);
    addStyle(`
        #buttonE {
            height: 32px;
            width: 100%;
            font-size: 1vw;
            position: absolute;
            bottom: 0;
            right: 0;
            margin-left: 5px;
        }
        #spanE > input {
            width: 100%;
        }
        #parDiv{
            display: flex;
        }
        #childDiv{
            position: relative;
            width: 20%;
            margin-left: 4px;
        }
        #spanE{
            width: 80%;
        }
    `);
    // $(".article-content").hide();
    // $(".article-tags").hide();
    // $(".article-title").hide();
    $("header").hide();
    $(".dl-box").prevAll().hide();
    $(".dl-box").nextAll().hide();
    $(".fastlink").attr('id', 'spanE');
    $(".fastlink").parent().attr('id', 'parDiv');
    $(".fastlink>input").removeAttr("style");
    $(".fastlink").after($(`<div id="childDiv"><button id="buttonE" onClick="copyFn()">点击复制</button></div>`));
    let dlbox = document.getElementById("dl-box");
    dlbox.style.display = "";
})();