Modifying other people's signatures (another Greasemonkey forum mod)
Hey, Sharrow!
I've been using your descriptive title script ever since you posted it, and it still works great with the new forums.
However, I can't get this new script to work. Greasemonkey is enabled. I see the script in the GM panel. I see the script that's installed and it looks good.
I tried disabling Stylish, in case it interfered, and still can't get the script to work. (I restarted Firefox, too.)
Any troubleshooting ideas?
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
Works for me. What version of FF and GM are you using?
gm 0.8.20090123.1
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
Ah, that explains it. I'm using the new DOM traversal API introduced in 3.5.
I'll have a look at a workaround.
Forum mod: less obtrusive signatures
Because I am a hateful person with no appreciation for creativity or happiness, I offer a Greasemonkey script to do the following:
It provides a middle ground between disabling all images (I don't mind them when they're relevant to a post) and allowing images but disabling signatures. Images are replaced with descriptive text like [Image: http://server/image.jpg] or [Link: http://myweb.site/ Image: http://server/image.jpg] if they link to something. http://userscripts.org/scripts/show/55066 If you encounter problems or have suggestions, please let me know. |
Okay Zombie, try reinstalling it.
Should work with older versions of Firefox now, and as an added bonus, Safari (with GreaseKit, tested) and probably Opera (untested) too.
Forum mod: less obtrusive signatures
Okay Zombie, try reinstalling it.
Should work with older versions of Firefox now, and as an added bonus, Safari (with GreaseKit, tested) and probably Opera (untested) too. |
Thanks, again!
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
Bwahahaha! Best greasemonkey script ever.
Thanks man!
Is there a way to modify this to show only certain signature pictures?
I'm thinking specifically about CIT sig avatars, I'd like to keep seeing those but get rid of all the fluff sig pics.
I can do that, sure. If you reinstall the script, I've added a quick regular expression test to decide if an image should be shown.
Tools > Greasemonkey > Manage User Scripts... and edit the script.
At the top, you'll see some "allowed_hosts" lines. Comment/uncomment the desired one, or edit your own.
If you just want Titan-hosted images, use
var allowed_hosts = /cohtitan.com/i;
If you want several allowed domains, seperate them with a pipe.
var allowed_hosts = /cohtitan.com|photobucket.com/i;
var allowed_hosts = /cohtitan.com|photobucket.com|imageshack.com/i;
and so on.
Forum mod: less obtrusive signatures
Any chance of modifying to either enforce certain standards on signature images or remove the part for images altogether (or instructions for the same).
Essentially I want the max size to be enforced (the forum itself doesn't seem able), and if I could set that on my side...
Width up to 600 is fine but only want max height of 100, anything above that as the text link. Is that possible with GM or just a pipe dream?
Oh and any chance of adding the bottom align that BAB mentioned in the Alien Skin thread?
Oh and any chance of adding the bottom align that BAB mentioned in the Alien Skin thread?
|
The thread title, message, and sig are all appended to each other to make one block of text.
You can move that text vertically to the bottom, but then you'll have unsightly blank space on top. There's no way to stretch a post to use up the entire height of the Avatar and miscellaneous stuff in the left bar without some coding wizardry.
Now, if we could move the thread title into the top bar and the sig into the bottom bar, then we could vertically center the message for something pleasing to the eye. But, that's a lot of coding for little gain.
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
Yeah I found that out when I was trying to move or remove the line immediately above the sig. Which is not even a HR (what I'd have used) but merely a row of '_' underscores.
Thanks to you I can enable signatures again! Fantasmic work.
Highly unlikely.
The thread title, message, and sig are all appended to each other to make one block of text. You can move that text vertically to the bottom, but then you'll have unsightly blank space on top. There's no way to stretch a post to use up the entire height of the Avatar and miscellaneous stuff in the left bar without some coding wizardry. |
The thread title is in a DIV.
The the thread title is followed by a HR
The HR is followed by the message, in a DIV
The message is followed by the signature, in a DIV
The signature contains a row of underscores (_) followed by the actual signature, a DIV
So, what you need to do is stretch the height of the DIV enclosing the signature, and then align the signature div (and optionally the "__________________" textNode) to the bottom of that. I don't have the motivation to fiddle around with the vertical align stuff, but you can even reach those two DIVs with CSS, so you may not even need to use a Greasemonkey script to do it.
div#posts > div > table.tborder td.alt1 > div + divRemoving or replacing the __________________ would require Greasemonkey, though.
div#posts > div > table.tborder td.alt1 > div + div > div
http://www.fimfiction.net/story/36641/My-Little-Exalt
The break line '______' etc is in the same div as the remainder of the signature. Using your snippets to change it changes the same property of the signature itself (idea was to change the color of the break line to that of the post.
I don't think I'll be managing a GM script to do it for me either.
<!-- sig --> <div> __________________<br /> <text of the sig> </div> <!-- / sig --> |
That's not entirely true. The thread title, message, and sig are all in the same table cell, yes. But they are not one block of text.
The thread title is in a DIV. The the thread title is followed by a HR The HR is followed by the message, in a DIV The message is followed by the signature, in a DIV The signature contains a row of underscores (_) followed by the actual signature, a DIV So, what you need to do is stretch the height of the DIV enclosing the signature, and then align the signature div (and optionally the "__________________" textNode) to the bottom of that. I don't have the motivation to fiddle around with the vertical align stuff, but you can even reach those two DIVs with CSS, so you may not even need to use a Greasemonkey script to do it. div#posts > div > table.tborder td.alt1 > div + divRemoving or replacing the __________________ would require Greasemonkey, though. |
td.alt1 {vertical-align: bottom !important;} |
However, these don't do anything together or separately...
#posts > div > table.tborder td.alt1 > div + div {vertical-align: bottom !important;} #posts > div > table.tborder td.alt1 > div + div > div {vertical-align: bottom !important;} |
#posts > div > table.tborder tr:first-child + tr + tr > td.alt1 {background: #693430 !important;} |
So... any clues?
(Actually, this isn't something I'm very concerned about. It's just a slight unsightliness of very short posts that's easily ignored.)
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
Well, aligning it to the bottom isn't quite enough, becasue the enclosing DIV is exactly the necessary size. You've also got to increase the height of the DIV enclosing the signature DIV appropriately.
http://www.fimfiction.net/story/36641/My-Little-Exalt
Ideally, you'd be able to fix the signature to the bottom of the table cell, but the signature is a direct descendant of a TD and AFAIK Firefox doesn't allow positioning to be set on table elements.
I've added a (slightly messy) function to push the signature down into the empty space alongside the Quote/Reply buttons. Comments on aesthetics welcome.
Also, it should work in Safari (tested) and Opera (untested) again.
Forum mod: less obtrusive signatures
Ideally, you'd be able to fix the signature to the bottom of the table cell, but the signature is a direct descendant of a TD and AFAIK Firefox doesn't allow positioning to be set on table elements.
I've added a (slightly messy) function to push the signature down into the empty space alongside the Quote/Reply buttons. Comments on aesthetics welcome. Also, it should work in Safari (tested) and Opera (untested) again. |
It works beautifully. And even for longer posts, it creates a little gap between the body and sig which is much easier on the eyes. Only those with really long sigs <coughfleetingwhispercough> have their sig mushed against the body.
Excellent work and thanks!
Speeding Through New DA Repeatables || Spreadsheet o' Enhancements || Zombie Skins: better skins for these forums || Guide to Guides
One look at this thread with GM disabled makes me glad this script exists.
Just a repost from the Zombie Skin thread, I bottom align the sig with just css. Instead of expanding the sig div, I just upped the minimum size of the post div:
#posts .alt1 > div[id] { min-height: 103px; }
Also, awesome stuff, Sharrow.
Global @Diellan - 5M2M
Mids' Hero/Villain Designer Lead
Virtue Server
Redside: Lorenzo Mondavi
Blueside: Alex Rabinovich
Got a Mids suggestion? Want to report a Mids bug?
Because I am a hateful person with no appreciation for creativity or happiness, I offer a Greasemonkey script to do the following:
It provides a middle ground between disabling all images (I don't mind them when they're relevant to a post) and allowing images but disabling signatures.
Images are replaced with descriptive text like [Image: http://server/image.jpg] or [Link: http://myweb.site/ Image: http://server/image.jpg] if they link to something.
Safari and Opera users should be able to use this too.
http://userscripts.org/scripts/show/55066
If you encounter problems or have suggestions, please let me know.
Forum mod: less obtrusive signatures