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