去除網頁複製小尾巴

去除複製網頁時所出現的多餘内容,對大部分網站有效

目前為 2023-02-08 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Remove extra content when copying
// @name:en     Remove extra content when copying
// @name:zh-CN  去除网页复制小尾巴
// @name:zh-TW  去除網頁複製小尾巴
// @name:ja     コピーされたページからの冗長なコンテンツの削除
// @description        Remove extra content when you copy something from a webpage. Pass to kill most of the site
// @description:en     Remove extra content when you copy something from a webpage. Pass to kill most of the site
// @description:zh-CN  去除网页复制所出现得小尾巴,通杀大部分网站
// @description:zh-TW  去除複製網頁時所出現的多餘内容,對大部分網站有效
// @description:ja     ウェブページから何かをコピーしたときに、余分なコンテンツを削除する。サイトの大部分を殺すためのパス
// @namespace   Violentmonkey Scripts
// @match       *://*/*
// @grant       none
// @version     1.02
// @author      wray-lee
// @license     MIT

// ==/UserScript==
(function() {
    'use strict';
//去除网页小尾巴
    [...document.querySelectorAll('*')].forEach(item=>{
    item.oncopy = function(e) {
        e.stopPropagation();
    }
});
}())