将网页转化为阅读模式

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);

})();