去除网页复制小尾巴

去除网页复制所出现得小尾巴,通杀大部分网站

目前为 2023-02-08 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Remove extra content when copying
  3. // @name:en Remove extra content when copying
  4. // @name:zh-CN 去除网页复制小尾巴
  5. // @name:zh-TW 去除網頁複製小尾巴
  6. // @name:ja コピーされたページからの冗長なコンテンツの削除
  7. // @description Remove extra content when you copy something from a webpage. Pass to kill most of the site
  8. // @description:en Remove extra content when you copy something from a webpage. Pass to kill most of the site
  9. // @description:zh-CN 去除网页复制所出现得小尾巴,通杀大部分网站
  10. // @description:zh-TW 去除複製網頁時所出現的多餘内容,對大部分網站有效
  11. // @description:ja ウェブページから何かをコピーしたときに、余分なコンテンツを削除する。サイトの大部分を殺すためのパス
  12. // @namespace Violentmonkey Scripts
  13. // @match *://*/*
  14. // @grant none
  15. // @version 1.03
  16. // @author wray-lee
  17. // @license MIT
  18.  
  19. // ==/UserScript==
  20. (function() {
  21. 'use strict';
  22. //去除网页小尾巴
  23. [...document.querySelectorAll('*')].forEach(item=>{
  24. item.oncopy = function(e) {
  25. e.stopPropagation();
  26. }
  27. });
  28. }())