Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Reddit - Highlight NSFW
- // @author gavin19
- // @description Replaces 'NSFW' with red/bold.
- // @match http://*.reddit.com/*/*/comments/*
- // @include http://*.reddit.com/*/*/comments/*
- // @version 1.0
- // ==/UserScript==
- var s = document.querySelectorAll('.commentarea .md p');
- for (var i = 0, len=s.length; i<=len; i++) {
- s[i].innerHTML = s[i].innerHTML.replace(/NSFW/ig, '<span style="color:red !important;font-weight:bolder !important">NSFW</span>');
- }
Add Comment
Please, Sign In to add comment