将网页转化为阅读模式

调用简悦(simp.red)接口将网页转化为清爽的阅读模式,去除广告等无关元素。

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         将网页转化为阅读模式
// @description  调用简悦(simp.red)接口将网页转化为清爽的阅读模式,去除广告等无关元素。
// @icon         https://simpread-1254315611.cos.ap-shanghai.myqcloud.com/logo/logo%40128.png
// @namespace    https://greasyfork.org/zh-CN/users/393603-tsing
// @version      1.0
// @author       Tsing
// @match        *://*/*
// @exclude      *://www.baidu.com/
// @exclude      *://*.baidu.com/s?*
// @exclude      *://*.so.com/s?*
// @exclude      *://*.sogou.com/sogou*
// @exclude      *://www.sogou.com/
// @exclude      *://*.bing.com*
// @exclude      *://*.google.com.*
// @exclude      *://*.dogedoge.com*
// @require      https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    /* global $ */
    'use strict';

    var CurrentUrl = window.location.href;
    var NewUrl = "https://simp.red/trans?url=" + decodeURIComponent(CurrentUrl);
    var button = '<a href="' + NewUrl + '" style="width: 60px; height: 60px; border-radius: 30px; text-align: center; line-height: 60px; font-size: 20px !important; font-family: Arial !important; color: white !important; text-decoration:none; font-weight: 500; display: block; background: red; opacity: 0.6; z-index: 100000; position: fixed; right: 20px; bottom: 20px;" title="将本网页转换成阅读模式" target="_blank">阅</a>';
    $("body:first").prepend(button);

})();