Tool Useful GreaseMonkey userscripts

Surgy

Member
Modder
Apr 23, 2018
367
1,534
Do people here use JS client-side user-scripts to improve their web-browsing experience?
If you have some interesting hentai/porn related scripts, please do share or post a link to the code.

Here is one of mine for starters:
JavaScript:
// ==UserScript==
// @name         DLSite Title to Clipboard
// @version      1.0
// @description  Button to copy DLSite game's title to clipboard
// @author       Anonymous
// @match        https://www.dlsite.com/maniax/work/=/product_id/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dlsite.com
// @grant        GM_setClipboard
// ==/UserScript==

(function() {
    let title = document.querySelector("#work_name")
    let name = title.innerText;

    function copy() {
        GM_setClipboard(name);
    }

    let elem = document.createElement('button');
    elem.textContent= 'toClipboard';
    elem.style = 'height:20px;vertical-align:middle;'
    elem.id = 'copy2clip';
    elem.className = 'btn_default';
    title.appendChild(document.createTextNode(' '));
    title.appendChild(elem);
    elem.addEventListener("click", copy);
})();
 
Last edited: