Reddit Highlighter

Highlight new stories on Reddit

  1. // ==UserScript==
  2. // @name Reddit Highlighter
  3. // @description Highlight new stories on Reddit
  4. // @author chocolateboy
  5. // @copyright chocolateboy
  6. // @version 1.2.0
  7. // @namespace https://github.com/chocolateboy/userscripts
  8. // @license GPL: https://www.gnu.org/copyleft/gpl.html
  9. // @include https://*.reddit.com/
  10. // @include https://*.reddit.com/?count=*
  11. // @include https://*.reddit.com/user/*/m/*
  12. // @include /^https://[^.]+\.reddit\.com/(r/[^/]+/)?($|(best|controversial|hot|new|rising|top)/)/
  13. // @require https://code.jquery.com/jquery-3.5.1.slim.min.js
  14. // @require https://cdn.jsdelivr.net/gh/chocolateboy/jquery-highlighter@63adeb7dea43c47e210fd17b0589e648239e97f0/dist/highlighter.min.js
  15. // @grant GM_deleteValue
  16. // @grant GM_getValue
  17. // @grant GM_listValues
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_setValue
  20. // ==/UserScript==
  21.  
  22. $.highlight({
  23. item: 'div#siteTable div.thing[data-fullname]',
  24. target: 'a.title',
  25. id: 'data-fullname',
  26. ttl: { days: 30 },
  27. })