How to change ONE button on Pastebin.com

21 views
Skip to first unread message

Chuck Roberts

unread,
Nov 28, 2016, 8:55:47 AM11/28/16
to greasemonkey-users
I'd like to change the edit button on the Pastebin toolbar to have a background of light green. All the toolbar buttons have the same class of "buttonsm" so I don't think Stylish would work in this case. I don't want to change every button with that class, I just want to change the edit button.

// Change this: <a href="/edit/mRihPa04" class="buttonsm">edit</a>
// To this: <a href="/edit/mRihPa04" class="buttonsm" style="background:green;">edit</a>

How would I do this? I am unable to find any Greasmonkey examples of basically doing a regex on the source of the HTML page.

Thanks!

Chuck Roberts

unread,
Nov 28, 2016, 9:20:16 AM11/28/16
to greasemonkey-users
I got it. I installed FoxReplace and that worked. https://addons.mozilla.org/en-US/firefox/addon/foxreplace/?src=ss


Reply all
Reply to author
Forward
0 new messages