syosetu color visited links

Makes finding unread stories easier by coloring visited links a different color.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
  1. // ==UserScript==
  2. // @name syosetu color visited links
  3. // @namespace https://greasyfork.org/
  4. // @version 1
  5. // @description Makes finding unread stories easier by coloring visited links a different color.
  6. // @author Themy
  7. // @match https://yomou.syosetu.com/search.php?*
  8. // @match https://noc.syosetu.com/search/search/*
  9. // @match https://mnlt.syosetu.com/search/search/*
  10. // @match https://mid.syosetu.com/search/search/*
  11. // @match https://ncode.syosetu.com/*
  12. // @match https://novel18.syosetu.com/*
  13. // @icon https://www.google.com/s2/favicons?sz=64&domain=syosetu.com
  14. // @grant none
  15. // @license MIT
  16. // ==/UserScript==
  17.  
  18. function GM_addStyle(css) {
  19. const style = document.getElementById("GM_addStyleBy8626") || (function() {
  20. const style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.id = "GM_addStyleBy8626";
  23. document.head.appendChild(style);
  24. return style;
  25. })();
  26. const sheet = style.sheet;
  27. sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
  28. }
  29.  
  30. GM_addStyle("a:visited { color:orange !important; }");
  31. GM_addStyle("#novel_contents.customlayout4 a:visited { color:purple !important; }");