Vexcalibur Proud to be smug as heck

![]()
Joined: Jan 18, 2008 Posts: 5383
|
Posted: Tue Jul 05, 2011 11:09 pm Post subject: How do you ignore members? |
|
|
Update: lau has a link with instructions to how to ignore members and an updated link to the greasemonkey script.
| lau wrote: | http://www.wrongplanet.net/postp688875.html#688875
Unfortunately, as I have been demoted, I cannot change the link there to point to somewhere whence the Greasemonkey script can now be obtained (I changed ISPs).
This is what works, now (sourced from my 24/7 home server )
http://bergbland.info/phpbbuserhide.user.js |
I would like to be able to make posts without having to constantly read replies of a certain being who loves to obfuscate his posts and contribute nothing to the discussion but funny-sounding verbose insults. It gets old and to be honest I guess everyone in the forum is tired to read us interact. Is there an ignore button? If there is, it is particularly hard to find in this forums. If there isn't, why not add it? _________________ .
Last edited by Vexcalibur on Fri Jul 08, 2011 9:43 pm; edited 1 time in total |
|
| Back to top |
|
Fnord Enigmatic Threadkilling Metasyntactic Variable


Joined: May 07, 2008 Posts: 18376 Location: Stendec
|
Posted: Tue Jul 05, 2011 11:15 pm Post subject: |
|
|
There isn't any such button. However, in the dim and distant past, I read a rumor that someone had discovered a way to "patch" Firefox to blank posts by certain members. I'm sick of certain members' constant trolling, smarmy condescendancy, and faux intellectualism too. _________________ * Believing in myths allows the comfort of having an opinion without the discomfort of having to think.
* Believing that you're worthless allows the comfort of having something to complain about without the discomfort of having to change. |
|
| Back to top |
|
jrjones9933 Phoenix


Joined: May 14, 2011 Posts: 777 Location: Rrrrr...
|
Posted: Tue Jul 05, 2011 11:23 pm Post subject: |
|
|
I think you have to do it the old-fashioned way. _________________ I've spent most of my money on wine, women, and song, and the rest I spent foolishly. |
|
| Back to top |
|
Fnord Enigmatic Threadkilling Metasyntactic Variable


Joined: May 07, 2008 Posts: 18376 Location: Stendec
|
Posted: Tue Jul 05, 2011 11:24 pm Post subject: |
|
|
| jrjones9933 wrote: | | I think you have to do it the old-fashioned way. |
I'm sorry ... didjoo say sumpin?
 _________________ * Believing in myths allows the comfort of having an opinion without the discomfort of having to think.
* Believing that you're worthless allows the comfort of having something to complain about without the discomfort of having to change. |
|
| Back to top |
|
Vexcalibur Proud to be smug as heck

![]()
Joined: Jan 18, 2008 Posts: 5383
|
Posted: Wed Jul 06, 2011 12:19 am Post subject: |
|
|
Fnord, , after typing the OP I noticed "Hell, I am a programmer, I don't need that button".
So, indeed I figured a way. I spent the hour following the making of that post making use of the firefox Greasemonkey plugin. It was fun to re-learn javascript.
| Code: |
// ==UserScript==
// @name wp_ignore
// @namespace wp
// @description ignore
// @include http://www.wrongplanet.net/pos*
function ShouldIgnore(name) {
//Type the user names (case sensitive)
//reproduce the following structure for every user you want to ignore
if (name == 'looncalf') {
return true;
}
if (name == 'IgnoredName2') {
return true;
}
if (name == 'IgnoredName3') {
return true;
}
return false;
}
var tr = document.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
var td = tr[i].getElementsByTagName("td");
if (td.length < 1 ) continue;
var span = td[0].getElementsByTagName("span");
if (span.length < 1 ) continue;
if (span[0].className == "name" ) {
var b = span[0].getElementsByTagName("b");
if (b.length < 1 ) continue;
var a = b[0].getElementsByTagName("a");
if (a.length < 1 ) continue;
var text = a[0].firstChild.nodeValue;
if ( ShouldIgnore(text) ) {
td[1].innerHTML = '...';
}
}
}
// ==/UserScript== |
It needs the greasemonkey firefox addon. For the yiggles, you can change the innerHTML = "..."; line to make their posts say whatever you want.
When I find more time I think I can make it even hide the contents of quote tags that are marked to come from ignored guys. But I need some sleep first. _________________ . |
|
| Back to top |
|
Fnord Enigmatic Threadkilling Metasyntactic Variable


Joined: May 07, 2008 Posts: 18376 Location: Stendec
|
Posted: Wed Jul 06, 2011 9:50 pm Post subject: |
|
|
Way to go, Vexie! _________________ * Believing in myths allows the comfort of having an opinion without the discomfort of having to think.
* Believing that you're worthless allows the comfort of having something to complain about without the discomfort of having to change. |
|
| Back to top |
|
lau Really nice person to know. :)


Joined: Jun 18, 2006 Age: 64 Posts: 10537 Location: Somerset UK
|
|
| Back to top |
|
MidlifeAspie Phoenix


Joined: Nov 02, 2010 Posts: 3020
|
Posted: Thu Jul 07, 2011 4:50 pm Post subject: |
|
|
| I jam my fingers in my ears and shout "LA LA LA LA, I CAN"T HEAR YOU" |
|
| Back to top |
|
Surfman beyond human


Joined: Aug 02, 2010 Age: 50 Posts: 3938 Location: Homeward bound
|
Posted: Thu Jul 07, 2011 6:12 pm Post subject: |
|
|
Angels sometimes appear as demons, and demons sometimes appear as angels
Be careful what you avoid, or that which you desire |
|
| Back to top |
|
Vexcalibur Proud to be smug as heck

![]()
Joined: Jan 18, 2008 Posts: 5383
|
Posted: Thu Jul 07, 2011 8:29 pm Post subject: |
|
|
well, before reading lau's link, this is what I was doing the last hour.
| Code: |
//quotes:
var tab = document.getElementsByTagName("table");
for (i = 0; i < tab.length; i++) {
var tr = tab[i].getElementsByTagName("tr");
if (tr.length >= 2) {
// validate
var td = tr[0].getElementsByTagName("td");
if ( td.length > 0 ) {
var span = td[0].getElementsByTagName("span");
if (span.length == 0) continue;
var b = span[0].getElementsByTagName("b");
if (b.length == 0) continue;
var text = b[0].firstChild.nodeValue;
if ( text == null) continue;
var len = text.length;
// 7654321
// XXXX wrote:
if ( (len < 7) || ! ShouldIgnore( text.substr(0, len - 7) ) ) {
continue;
}
}
// kill
td = tr[1].getElementsByTagName("td")[0];
if ( td.className == "quote" ) {
td.innerHTML = "...";
}
}
} |
Add it to the previous script, and it will also remove quotes from the ignored people.
Edit: wow lau, that's sophisticated. _________________ . |
|
| Back to top |
|
anna-banana indifferent peapod


Joined: Aug 31, 2008 Age: 30 Posts: 6740 Location: Europe
|
Posted: Fri Jul 08, 2011 2:40 pm Post subject: |
|
|
cheers guys! this thread is so useful, it should be made a sticky ;> _________________ not a bug - a feature.
|
|
| Back to top |
|
Sallamandrina alles wieder offen


Joined: Jan 25, 2009 Posts: 3590
|
Posted: Fri Jul 08, 2011 3:04 pm Post subject: |
|
|
| anna-banana wrote: | | cheers guys! this thread is so useful, it should be made a sticky ;> |
Good idea - it is now  _________________ "Selfishness is not living as one wishes to live, it is asking others to live as one wishes to live" (Oscar Wilde)
|
|
| Back to top |
|
anna-banana indifferent peapod


Joined: Aug 31, 2008 Age: 30 Posts: 6740 Location: Europe
|
Posted: Fri Jul 08, 2011 8:39 pm Post subject: |
|
|
| Sallamandrina wrote: | | anna-banana wrote: | | cheers guys! this thread is so useful, it should be made a sticky ;> |
Good idea - it is now  |
 _________________ not a bug - a feature.
|
|
| Back to top |
|
Vexcalibur Proud to be smug as heck

![]()
Joined: Jan 18, 2008 Posts: 5383
|
Posted: Fri Jul 08, 2011 9:40 pm Post subject: |
|
|
Perhaps lau's link should be the sticky, it is more useful for more people. _________________ . |
|
| Back to top |
|
chrissyrun True love is rare, don't envy an illusion


Joined: Oct 24, 2010 Age: 20 Posts: 13788 Location: Hell :)
|
Posted: Sun Jul 24, 2011 11:55 pm Post subject: |
|
|
Just don't look at their posts, angry sneer, and go on with life.  |
|
| Back to top |
|