Shoutbox

User JavaScript to hide Signatures..? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: User JavaScript to hide Signatures..? (/showthread.php?tid=48081)

User JavaScript to hide Signatures..? by andrey on 07-26-2005 at 05:58 AM

Alright, I recently spotted this userJS (myoperacom-sigremover.js) for Opera on userjs.com.
Now, what it does is removing the users signatures when their usernames are inserted into the script.
My question would be if it is possible to modify this script or if not write a new one that works with msghelp.net :grin:
and as an extra task, a script that hides avatars.
I myself know almost nothing about JavaScript so I thought one of you could try this. :cheesy:


RE: User JavaScript to hide Signatures..? by -dt- on 07-26-2005 at 09:26 AM

Hmm i have made a greasemonkey scrip  to add classes to posts (see http://blog.thedt.net/ for my scripts)

but I'm pretty sure opera dosnt support xPaths which I use in that , I guess I could remake it to use document.getElementsByTagName (which is SLOW compared to xPaths)

hiding avatars  would be easy with xPaths.....which again opera dosnt support(gar!) I'll see if i can add class names to avatars and sigs for each user using non xPaths for you people.

[Image: msn_tongue.gif] 


edit:

done the sig class adder :P

http://random.thedt.net/messengerplusformsignatu.user.js

for greasemonkey right click and hit install....
for opera install it however you install userJS if it creates any errors please post them i didnt use any xPaths because dodgy opera dosnt support it.

to use:
add custom css for the class
mybb_sig_username

eg

code:

mybb_sig_-dt-{background:pink;}

(btw to hide something in css use display:none; )

spaces in usernames are replaced with _ and so are fullstops.

working on avatar thing now.