The Un-Official Proxomitron Forum
[Req] Removing Post Signature - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: [Req] Removing Post Signature (/showthread.php?tid=621)

Pages: 1 2


[Req] Removing Post Signature - maxbaggi - Oct. 07, 2005 09:45 PM

Hi all, I visit a lot of forums and I was wondering whether it's possible to create a filter that removes the signatures from the posts... and if possible the removed signature should not leave an empty space.
Example URL: http://www.gtaforums.com/index.php?showtopic=216833

I use Firefox v1.0.7 with Sidki's latest config. I did a lot of searching before I decided to request a filter here. I came across two possible solutions but unfortunately they didn't work for me.

1. An extension for firefox http://extensionroom.mozdev.org/more-info/unclutter_phpbb

2. A filter for Proxomitron

Name = "Signature Clear"
Active = TRUE
URL = "forum.ru-board.com/"
Limit = 256
Match = "<br><span class=sing>----------<br>*</span>"

I found the above filter at
http://www.forum.ru-board.com/topic.cgi?forum=5&active=&topic=0339&start=40
The link is apparently down at the moment.

Any help will be appreciated and please let me know if I have not properly explained what I want the filter to do.

Thank you


- Kye-U - Oct. 07, 2005 10:08 PM

maxbaggi, there are two apparent problems with that filter:

1. The URL Match is too specific. In the filter I wrote, I made it apply to all HTML pages.

2. The matching expression is written to only match the one over at ru-board.com.

Here is a filter I quickly wrote and should work with most forums. If you find any forum where this filter doesn't work, post the link here and I'll update the filter. It should work for most phpBB forums.:

Code:
[Patterns]
Name = "Forum Post Signature Remover"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 512
Match = "<br /><br />--------------------<br /> <div class='signature'>*</div>"
        "|<span class="postbody"><br />_________________<br />*</span>"
        "|<br><br><table align=left class=sing><tr><td colspan=2>----------<br>*</td></tr></table>"



- maxbaggi - Oct. 07, 2005 10:30 PM

Thanks Kye-U, the filter works on most of the forums I visit Cheers But there is one that is still displaying signatures. I will pm you the link in a few minutes... thanks again Cheers Hail


- Kye-U - Oct. 07, 2005 11:00 PM

Code:
[Patterns]
Name = "Forum Post Signature Remover"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 512
Match = "<br /><br />--------------------<br /> <div class='signature'>*</div>"
        "|(<span class="postbody">|)<br />_________________<br />*</span>(<span class="gensmall">*</span>|)"
        "|<br><br><table align=left class=sing><tr><td colspan=2>----------<br>*</td></tr></table>"

Eyes Closed Smile


- maxbaggi - Oct. 07, 2005 11:26 PM

Thank you so very much, Kye-U Hail
It works like a charm Cheers


- ProxRocks - Oct. 08, 2005 01:50 PM

Needs a little more help...
See signature for Shea (sorry Shea, it just happened to be an example) on the UOP...

for example, see Shea's signature in the reply below...


ps: besides, I luv ya Shea, I'm a New York METS fan (ie, Shea Stadium)...


- Shea - Oct. 08, 2005 04:56 PM

I see, it's because on invision boards, they use <span> tags for different colors of text. So it doesn't go all the way to the end of the signature, just the next </span>


- Kye-U - Oct. 08, 2005 06:11 PM

Code:
[Patterns]
Name = "Forum Post Signature Remover"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 4096
Match = "$NEST(<br /> <br /> -------------------- <br /> <div class='signature'>,*,</div>)"
        "|$NEST((<span class="postbody"> |)<br />_________________<br />,*,</span> <span class="gensmall">*</span>)"
        "|$NEST(<br><br><table align=left class=sing><tr><td colspan=2>----------<br>,*,</td> </tr> </table>)"
        "|$NEST(<!-- sig -->,*,<!-- / sig -->)"

This one should work better Wink


- Kye-U - Feb. 12, 2006 07:37 AM

Updated to match SimpleMachines and punBB:

Code:
[Patterns]
Name = "Forum Post Signature Remover"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 4096
Match = "$NEST(<br /> <br /> -------------------- <br /> <div class='signature'>,*,</div>)"
        "|$NEST((<span class="postbody"> |)<br />_________________<br />,*,</span> <span class="gensmall">*</span>)"
        "|$NEST(<br><br><table align=left class=sing><tr><td colspan=2>----------<br>,*,</td> </tr> </table>)"
        "|$NEST(<!-- sig -->,*,<!-- / sig -->)"
        "|$NEST(<div class="postsignature">,*,</div>)"
        "|$NEST((<hr width="100%" size="1" class="hrcolor" /> |)<div class="signature">,*,</div>)"



RE: [Req] Removing Post Signature - Zero3K - Aug. 01, 2007 11:52 PM

Its not working for me.


RE: [Req] Removing Post Signature - Kye-U - Aug. 02, 2007 12:44 AM

What is the link to the forums that it doesn't work on, or, what is the forum software that is it not working with? Smile!

Welcome, by the way Wink


RE: [Req] Removing Post Signature - Zero3K - Aug. 02, 2007 12:57 AM

Well, its not working in this thread. Also, I tried it at the forums on http://www.gp32x.com and it didn't work their either. Maybe the script is not being copied/pasted correctly.

Thanks for the welcome.


RE: [Req] Removing Post Signature - Kye-U - Aug. 02, 2007 01:31 AM

Code:
[Patterns]
Name = "Forum Post Signature Remover"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 4096
Match = "$NEST(<br /> <br /> -------------------- <br /> <div class=$AV(signature)>,*,</div>)"
        "|$NEST((<span class="postbody"> |)<br />_________________<br />,*,</span> <span class="gensmall">*</span>)"
        "|$NEST(<br><br><table align=left class=sing><tr><td colspan=2>----------<br>,*,</td> </tr> </table>)"
        "|$NEST(<!-- (sig|start: postbit_signature) -->,*,<!-- (/ sig|end: postbit_signature) -->)"
        "|$NEST(<div class="postsignature">,*,</div>)"
        "|$NEST((<hr width="100%" size="1" class="hrcolor" /> |)<div class="signature">,*,</div>)"

Updated to match MyBB and made first match more generic (by replacing single quotes with $AV()) Wink


RE: [Req] Removing Post Signature - Zero3K - Aug. 02, 2007 02:41 AM

Thanks for updating it. It works now.


RE: [Req] Removing Post Signature - Zero3K - Aug. 02, 2007 07:17 PM

Actually, it doesn't work all the time. Signatures that have quotes in them aren't being filtered.