您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight new stories on Reddit
- // ==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 },
- })