linxb_edge_read

调用edge的阅读模式将网页转化为阅读模式,本来想直接打开的,结果发现打不开,所以只好在URL前加了个read:然后复制到剪贴板。

  1. // ==UserScript==
  2. // @name linxb_edge_read
  3. // @description 调用edge的阅读模式将网页转化为阅读模式,本来想直接打开的,结果发现打不开,所以只好在URL前加了个read:然后复制到剪贴板。
  4. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  5. // @namespace https://greasyfork.org/zh-CN/users/884732-linxb
  6. // @version 1.0
  7. // @author linxb
  8. // @license MIT
  9. // @match *://*/*
  10. // @exclude *://www.baidu.com/
  11. // @exclude *://*.baidu.com/s?*
  12. // @exclude *://*.so.com/s?*
  13. // @exclude *://*.sogou.com/sogou*
  14. // @exclude *://www.sogou.com/
  15. // @exclude *://*.bing.com*
  16. // @exclude *://*.google.com.*
  17. // @exclude *://*.dogedoge.com*
  18. // @exclude *://*bilibili*/*
  19. // @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
  20. // @grant GM_setValue
  21. // @grant GM_getValue
  22. // @grant GM_setClipboard
  23. // @grant unsafeWindow
  24. // @grant window.close
  25. // @grant window.focus
  26. // ==/UserScript==
  27.  
  28. (function() {
  29. /* global $ */
  30. 'use strict';
  31.  
  32. // Your code here...
  33. var CurrentUrl = window.location.href;
  34. var NewUrl = "read:" + CurrentUrl;
  35. GM_setClipboard(NewUrl);
  36.  
  37.  
  38. })();