Page 1 of 6 [ 83 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

Vexcalibur
Veteran
Veteran

User avatar

Joined: 17 Jan 2008
Age: 34
Gender: Male
Posts: 5,573

05 Jul 2011, 10:09 pm

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 08 Jul 2011, 8:43 pm, edited 1 time in total.

Fnord
Veteran
Veteran

User avatar

Joined: 6 May 2008
Gender: Male
Posts: 41,599
Location: Stendec

05 Jul 2011, 10:15 pm

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.


_________________
 
“I must acknowledge, once and for all, that the
purpose of diplomacy is to prolong a crisis.”

— Leonard Nimoy as Mr. Spock, in the Star Trek
episode "The Mark of Gideon" (ep. 3.16, 1969)


jrjones9933
Veteran
Veteran

User avatar

Joined: 13 May 2011
Age: 50
Gender: Male
Posts: 13,280
Location: The end of the northwest passage

05 Jul 2011, 10:23 pm

I think you have to do it the old-fashioned way.


_________________
"I find that the best way [to increase self-confidence] is to lie to yourself about who you are, what you've done, and where you're going." - Richard Ayoade


Fnord
Veteran
Veteran

User avatar

Joined: 6 May 2008
Gender: Male
Posts: 41,599
Location: Stendec

05 Jul 2011, 10:24 pm

jrjones9933 wrote:
I think you have to do it the old-fashioned way.

I'm sorry ... didjoo say sumpin?

:wink:


_________________
 
“I must acknowledge, once and for all, that the
purpose of diplomacy is to prolong a crisis.”

— Leonard Nimoy as Mr. Spock, in the Star Trek
episode "The Mark of Gideon" (ep. 3.16, 1969)


Vexcalibur
Veteran
Veteran

User avatar

Joined: 17 Jan 2008
Age: 34
Gender: Male
Posts: 5,573

05 Jul 2011, 11:19 pm

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.


_________________
.


Fnord
Veteran
Veteran

User avatar

Joined: 6 May 2008
Gender: Male
Posts: 41,599
Location: Stendec

06 Jul 2011, 8:50 pm

Way to go, Vexie!


_________________
 
“I must acknowledge, once and for all, that the
purpose of diplomacy is to prolong a crisis.”

— Leonard Nimoy as Mr. Spock, in the Star Trek
episode "The Mark of Gideon" (ep. 3.16, 1969)


lau
Veteran
Veteran

User avatar

Joined: 17 Jun 2006
Age: 71
Gender: Male
Posts: 10,595
Location: Somerset UK

07 Jul 2011, 1:07 pm

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


_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports." Kamran Nazeer


MidlifeAspie
Veteran
Veteran

User avatar

Joined: 1 Nov 2010
Age: 43
Gender: Male
Posts: 3,016

07 Jul 2011, 3:50 pm

I jam my fingers in my ears and shout "LA LA LA LA, I CAN"T HEAR YOU"



Surfman
Veteran
Veteran

User avatar

Joined: 1 Aug 2010
Age: 56
Gender: Male
Posts: 3,938
Location: Homeward bound

07 Jul 2011, 5:12 pm

Angels sometimes appear as demons, and demons sometimes appear as angels

Be careful what you avoid, or that which you desire



Vexcalibur
Veteran
Veteran

User avatar

Joined: 17 Jan 2008
Age: 34
Gender: Male
Posts: 5,573

07 Jul 2011, 7:29 pm

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.


_________________
.


anna-banana
Veteran
Veteran

User avatar

Joined: 30 Aug 2008
Age: 36
Gender: Female
Posts: 6,825
Location: Europe

08 Jul 2011, 1:40 pm

cheers guys! this thread is so useful, it should be made a sticky ;>


_________________
not a bug - a feature.


Sallamandrina
Forum Moderator
Forum Moderator

User avatar

Joined: 24 Jan 2009
Gender: Female
Posts: 3,590

08 Jul 2011, 2:04 pm

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)


anna-banana
Veteran
Veteran

User avatar

Joined: 30 Aug 2008
Age: 36
Gender: Female
Posts: 6,825
Location: Europe

08 Jul 2011, 7:39 pm

Sallamandrina wrote:
anna-banana wrote:
cheers guys! this thread is so useful, it should be made a sticky ;>


Good idea - it is now :)


:cheers:


_________________
not a bug - a feature.


Vexcalibur
Veteran
Veteran

User avatar

Joined: 17 Jan 2008
Age: 34
Gender: Male
Posts: 5,573

08 Jul 2011, 8:40 pm

Perhaps lau's link should be the sticky, it is more useful for more people.


_________________
.


chrissyrun
Veteran
Veteran

User avatar

Joined: 23 Oct 2010
Age: 27
Gender: Female
Posts: 13,823
Location: Hell :)

24 Jul 2011, 10:55 pm

Just don't look at their posts, angry sneer, and go on with life. :roll: