ReadFucker

ReadSpeakerくんを強引に使います

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         ReadFucker
// @version      0.1
// @namespace    https://readspeaker.jp
// @description  ReadSpeakerくんを強引に使います
// @author       Anonymous_456
// @match        https://readspeaker.jp/
// @grant        none
// @license      CC0
// ==/UserScript==

(function () {
    document.getElementById("readspeaker_button1").remove();
    const fucker = document.createElement("div");
    fucker.id = "fucker";
    const myStyle = 'margin:6px;border-radius:6px;border:inset 2px grey;padding:6px;background-color:white;';
    fucker.innerHTML = `<p>テキストを選択中に読み上げボタンを押すと選択中のテキストが読み上げられます</p><span><button id="fuck" style="${myStyle};font-weight:bold;">読み上げ</button></span><span>声<select id="voice" style="${myStyle}">${["Show", "Akira", "Takeru", "Risa"].map(e => `<option value="${e}">${e}</option>`).join("")}</select></span><span>速さ<input type="number" id="speed" min="50" max="400" value="100" style="${myStyle}"></span><br><textarea id="readarea" rows="32" cols="120" style="${myStyle}">拓也の射精 3000円</textarea>`;
    fucker.style.color = "black";
    fucker.style.backgroundColor = "#bfbfbf";
    fucker.style.padding = "12px";
    document.getElementById("home").prepend(fucker);
    document.getElementById("fuck").onclick = () => {
        const readthis = encodeURIComponent(window.btoa(unescape(encodeURIComponent(document.getSelection().toString().length == 0 ? document.getElementById("readarea").value : document.getSelection().toString()))));
        const str =
            `//app-eas.readspeaker.com/cgi-bin/rsent?customerid=5099&lang=ja_jp&voice=${document.getElementById("voice").value}&speed=${document.getElementById("speed").value}&url=&rsjs_ver=3.7.0_rev2198-wr&selectedhtml_base64=`;
        window.open(str + readthis);
    };
})()