🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

有道云笔记网页剪报

自动提取网页正文,免受广告干扰 网页剪报自动提取出网页中的正文内容,去除页面周边的多余 信息,使您在有道云笔记中可以直接阅读到清爽的正文效果

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         有道云笔记网页剪报
// @namespace    https://greasyfork.org/users/49622
// @icon         https://note.youdao.com/favicon.ico
// @version      1.0.6
// @description  自动提取网页正文,免受广告干扰 网页剪报自动提取出网页中的正文内容,去除页面周边的多余 信息,使您在有道云笔记中可以直接阅读到清爽的正文效果
// @author       过去终究是个回忆
// @include      *
// @grant        GM_registerMenuCommand
// @grant        GM_getResourceText
// @resource     YNoteClipper https://note.youdao.com/yws/YNoteClipper.js?_=1596113955041
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    //注册油猴菜单
    GM_registerMenuCommand('一键收藏', function () {
        var ydNoteWebClipperElem = document.getElementById('ydNoteWebClipper');
        if(document.getElementById('ydNoteWebClipper')) {
            document.body.removeChild(ydNoteWebClipperElem);
        }
        try {
            var YNoteClipper = GM_getResourceText('YNoteClipper');
            if(YNoteClipper) {
                new Function(YNoteClipper)();
            } else {
                var a = document.createElement('div');
                a.style.cssText = 'position: absolute;top: 10px;right: 30px;padding: 5px;border-radius: 5px;box-shadow: rgb(92, 184, 229) 0px 0px 2px; -webkit-box-shadow: rgb(92, 184, 229) 0px 0px 2px;background-color: rgba(92, 184, 229, 0.498039) !important;z-index: 999999;';
                a.innerHTML = 'Load script error!';
                document.body.appendChild(a);
                a.onclick = function() {
                    a.style.display = 'none';
                };
                setTimeout(function() {
                    a.click();
                }, 8e3);
            }
        } catch(b) {
            alert('该扩展暂不支持当前的浏览器或不支持收藏该类型https类网站');
            console.error(b);
        }
    });
})();