Sleazy Fork is available in English.

去除lushstories文章选择、复制限制

在阅读界面添加一个Enable Copy按钮,点击即可进行选择、复制,可划词以配合有道翻译

Από την 07/03/2020. Δείτε την τελευταία έκδοση.

// ==UserScript==
// @name         去除lushstories文章选择、复制限制
// @name:en      EnableCopy_Lush Story
// @namespace    yoursatan
// @version      0.0.4
// @description  在阅读界面添加一个Enable Copy按钮,点击即可进行选择、复制,可划词以配合有道翻译
// @description:en    Add a red button for the site:www.lushStories.com, and click to remove the copy restriction.
// @author       yorusatan
// @include      http*://www.lushstories.com/*
// @grant        none
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @license      MIT License
// ==/UserScript==
// v0.0.4 修改介绍文字  -2020-3-7
// v0.0.3 更新按钮样式,统一按钮风格  ——2020-3-7
// v0.0.2 实现基本功能,点击可选,可复制,可划词使用有道翻译 ——2020-3-4

(function() {
    'use strict';

    $(".blockselect").css({"-moz-user-select": "-moz-text",
    "-khtml-user-select": "text",
    "-webkit-user-select": "text",
    "user-select": "text"});
    $("#printer").css({"-moz-user-select": "-moz-text",
    "-khtml-user-select": "text",
    "-webkit-user-select": "text",
    "user-select": "text"});
     $(".onoffswitch").css({"-moz-user-select": "-moz-text",
    "-khtml-user-select": "text",
    "-webkit-user-select": "text",
    "user-select": "text"});
    $( ".story" ).wrap( "<div id='newCont'></div>" );
    $("#breadcrumb").append('<a id="btn-enable-copy" type = "button" title = "Enable Copy" href = "#" style="color:black;background:#e60022; width:150px;display: run-in ;padding: 0 3px;text-align:center ;font: 150% Trebuchet MS; border: 1px solid #e60022;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px; height: 20px;">Enable Copy</a>');
    $("#btn-enable-copy").hover(function(){
        $("#btn-enable-copy").css({"color":"white"});
    },function(){
         $("#btn-enable-copy").css({"color":"black"});
    });
    $("#btn-enable-copy").click(function(){
    var storyAll = $(".story").html()
    $("#sticky-col").remove()
    $(".story").remove();
    $("#newCont").append(storyAll);
    $("#newCont").css("width","125%");
        $(".storycontent P").css({"font-family":"sans-serif","font-size":"1.5em","line-height":"1.8em","font-weight":300});
    });

})();