Page 1 of 1

GreaseMonkey script for Forum reading?

PostPosted: Sat Jul 26, 2014 2:50 pm
by BobAGI
As I stated in the Forum Upgrade thread here I have lost my custom GreaseMonkey script for handling the crud on MicroChip and also to auto-reload whenever there is a server error page.

I thought that I had posted my scripts here as well as at Microchip but a Google search on this forum for GreaseMonkey only turned up a few hits with the title:
"spamflagger • PicForum"
and a non-working link.
So at Google there is a function to set links nonworking and with this cute title????

This is the search term I used: "greasemonkey site:http://picforum.ric323.com"

Anyway, I would be grateful for help in resurrecting the script from someone who is using it or otherwise has the source in his/her hand.

Re: GreaseMonkey script for MicroChip Forum?

PostPosted: Sat Jul 26, 2014 4:05 pm
by Ian.M
Spamflagger was in the test forum here and was intended to vanish after a few days.

You are aware Microchip have been leaning on Ric?

I don't think we'd be doing him any favours by publicly discussing user scripts for there here . . . . .

Re: GreaseMonkey script for Forum reading?

PostPosted: Sat Jul 26, 2014 4:43 pm
by BobAGI
Could you PM me with the script you had shown including the random timer?
GreaseMonkey scripts should not be an issue because they are just client side helpers, right?
I changed the tread title and removed MicroChip....

Re: GreaseMonkey script for Forum reading?

PostPosted: Tue Jul 29, 2014 8:31 am
by Ian.M
I'm attaching a userscript to clean up the worst of the current spam @MCHP

It removes known spam from topic lists by matching a particular keyword + a list of their phone numbers.
Its at best a temp. solution as it does need to be actively maintained, but it makes it a lot nicer to read the forum while the usual spamflaggers are on strike!

Re: GreaseMonkey script for Forum reading?

PostPosted: Fri Aug 01, 2014 10:38 am
by Ian.M
Updated current blocklist:
Code: Select all
// Kill topics with individual spam phrases in first post body (@title is hover text only, . is anchor text)
// hideSpamByXPath("descendant::a[contains(@title,'*PASTE*HERE*')]");

//// match phone country code in topic name only
hideSpamByXPath("descendant::a[contains(.,'+91-')]");


hideSpamByXPath("descendant::a[contains(@title,'Lucknow')]");


//// block spams by phone number!
hideSpamByXPath("descendant::a[contains(@title,'7023045340')]");
hideSpamByXPath("descendant::a[contains(@title,'7742228242')]");
hideSpamByXPath("descendant::a[contains(@title,'7725979104')]");
hideSpamByXPath("descendant::a[contains(@title,'8437760034')]");
hideSpamByXPath("descendant::a[contains(@title,'8566081000')]");
hideSpamByXPath("descendant::a[contains(@title,'9414084978')]");
hideSpamByXPath("descendant::a[contains(@title,'9414692400')]");
hideSpamByXPath("descendant::a[contains(@title,'9680255300')]");
hideSpamByXPath("descendant::a[contains(@title,'9680801434')]");
hideSpamByXPath("descendant::a[contains(@title,'9784320391')]");
hideSpamByXPath("descendant::a[contains(@title,'9815331734')]");
hideSpamByXPath("descendant::a[contains(@title,'9829791419')]");
hideSpamByXPath("descendant::a[contains(@title,'9950211818')]");

hideSpamByXPath("descendant::a[contains(.,'7073249310')]");
hideSpamByXPath("descendant::a[contains(.,'8003039021')]");
hideSpamByXPath("descendant::a[contains(.,'8094103020')]");
hideSpamByXPath("descendant::a[contains(.,'9001340118')]");
hideSpamByXPath("descendant::a[contains(.,'9646410026')]");
hideSpamByXPath("descendant::a[contains(.,'9680546999')]");
hideSpamByXPath("descendant::a[contains(.,'9694850756')]");
hideSpamByXPath("descendant::a[contains(.,'9876633747')]");
hideSpamByXPath("descendant::a[contains(.,'9914703222')]");

hideSpamByXPath("descendant::a[contains(.,'\u2792\u2791\u2790\u278c\u278c\u278f\u2790\u2790\u278e\u278d')]"); // graphic inverse (9)(8)(7)(3)(3)(6)(7)(7)(5)(4)

// Add more lines changing the text in '' (not "" - that's the partial XPath) to match other spam contents.