Visited Lite

Mark all visited links as custom color.

目前为 2015-12-19 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Visited Lite
  3. // @namespace iFantz7E.VisitedLite
  4. // @description Mark all visited links as custom color.
  5. // @version 0.11
  6. // @include http://*
  7. // @include https://*
  8. // @run-at document-start
  9. // @grant GM_addStyle
  10. // @copyright 2015, 7-elephant
  11. // ==/UserScript==
  12.  
  13. (function ()
  14. {
  15. function attachOnLoad(callback)
  16. {
  17. window.addEventListener("load", function (e)
  18. {
  19. callback();
  20. });
  21. }
  22.  
  23. function attachOnReady(callback)
  24. {
  25. document.addEventListener("DOMContentLoaded", function (e)
  26. {
  27. callback();
  28. });
  29. }
  30.  
  31. function main()
  32. {
  33. GM_addStyle(" a:visited, a:visited * { color: LightCoral !important; } ");
  34. }
  35.  
  36. attachOnReady(main);
  37.  
  38. })();
  39.  
  40. // End