I've noticed that whenever someone creates a userscript, they make a new topic. I think that there are enough people who make them that we should have one topic. So, here's mine...
// ==UserScript== // @name NoHide // @namespace Unknown // @include http://scratch.mit.edu/forums/* // ==/UserScript== var RE1 = new RegExp('<span style="color: invisible">','gi'); var RE2 = new RegExp('<span style="color: #dedfdf">','gi'); var RE3 = new RegExp('<span style="color: gainsboro">','gi'); var TR1 = '<span style="color: black">'; var TR2 = '<span style="color: black">'; var TR3 = '<span style="color: black">'; document.body.innerHTML = document.body.innerHTML.replace(RE1,TR1); document.body.innerHTML = document.body.innerHTML.replace(RE2,TR2); document.body.innerHTML = document.body.innerHTML.replace(RE3,TR3);
This will make all "hidden" text black. EDIT: I think I fixed it.
This text is gainsboro.
This text is #dedfdf.
This is invisible text.
Last edited by wmays (2012-03-19 09:24:18)
Offline
It's "transparent", not "invisible".
Oh, and who, besides me, has been making these topics?
And I like full topics for mine. More discussion space.
Offline
Does anyone have a good userscript tutorial?
Offline
samtwheels wrote:
Does anyone have a good userscript tutorial?
It's just JavaScript with some special stuff at the top. Check out userscripts.org.
Offline
Cool ^^
I might download it.
Offline
I'm making a pointless one that converts underscores in usernames to spaces.
Offline
wmays wrote:
I've noticed that whenever someone creates a userscript, they make a new topic. I think that there are enough people who make them that we should have one topic. So, here's mine...
Code:
// ==UserScript== // @name NoHide // @namespace Unknown // @include http://scratch.mit.edu/forums/* // ==/UserScript== var RE1 = new RegExp('<span style="color: invisible">','gi'); var RE2 = new RegExp('<span style="color: #dedfdf">','gi'); var RE3 = new RegExp('<span style="color: gainsboro">','gi'); var TR1 = '<span style="color: black">'; var TR2 = '<span style="color: black">'; var TR3 = '<span style="color: black">'; document.body.innerHTML = document.body.innerHTML.replace(RE1,TR1); document.body.innerHTML = document.body.innerHTML.replace(RE2,TR2); document.body.innerHTML = document.body.innerHTML.replace(RE3,TR3);This will make all "hidden" text black. EDIT: I think I fixed it.
This text is gainsboro.
This text is #dedfdf.
This is invisible text.
Fixed the invisible text.
Offline
I made an updated version of the hidden text one that also gets invisible text in quotes. :3
// ==UserScript== // @name No hidden text // @namespace Scratch Forums // @description Show hidden text on the Scratch forums // @include http://scratch.mit.edu/forums/* // ==/UserScript== var RE1 = new RegExp('<span style="color: transparent">','gi'); var RE2 = new RegExp('<span style="color: #dedfdf">','gi'); var RE3 = new RegExp('<span style="color: gainsboro">','gi'); var RE4 = new RegExp('<span style="color: #f1f1f1">','gi'); var RE5 = new RegExp('<span style="color: lavenderblush">','gi'); var replace = '<span style="color: black">'; document.body.innerHTML = document.body.innerHTML.replace(RE1,replace); document.body.innerHTML = document.body.innerHTML.replace(RE2,replace); document.body.innerHTML = document.body.innerHTML.replace(RE3,replace); document.body.innerHTML = document.body.innerHTML.replace(RE4,replace); document.body.innerHTML = document.body.innerHTML.replace(RE5,replace);
Offline
wmays wrote:
This is invisible text.
Fixed.
Offline