GreaseMonkey script for Forum reading?

GreaseMonkey script for Forum reading?

Postby BobAGI » Sat Jul 26, 2014 2:50 pm

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.
Last edited by BobAGI on Sat Jul 26, 2014 4:43 pm, edited 1 time in total.
--
Bo B
Sweden & Texas
User avatar
BobAGI
Verified identity
 
Posts: 49
Joined: Sun May 25, 2014 2:28 pm
Location: Sweden and Texas
PIC experience: Professional 5+ years with MCHP products

Re: GreaseMonkey script for MicroChip Forum?

Postby Ian.M » Sat Jul 26, 2014 4:05 pm

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 . . . . .
Ian.M
Verified identity
 
Posts: 95
Joined: Wed May 28, 2014 12:47 am
PIC experience: Professional 1+ years with MCHP products

Re: GreaseMonkey script for Forum reading?

Postby BobAGI » Sat Jul 26, 2014 4:43 pm

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....
--
Bo B
Sweden & Texas
User avatar
BobAGI
Verified identity
 
Posts: 49
Joined: Sun May 25, 2014 2:28 pm
Location: Sweden and Texas
PIC experience: Professional 5+ years with MCHP products

Re: GreaseMonkey script for Forum reading?

Postby Ian.M » Tue Jul 29, 2014 8:31 am

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!
Attachments
MC_forumblocker.txt
Greasemonkey userscript
(1.97 KiB) Downloaded 357 times
Ian.M
Verified identity
 
Posts: 95
Joined: Wed May 28, 2014 12:47 am
PIC experience: Professional 1+ years with MCHP products

Re: GreaseMonkey script for Forum reading?

Postby Ian.M » Fri Aug 01, 2014 10:38 am

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.
Ian.M
Verified identity
 
Posts: 95
Joined: Wed May 28, 2014 12:47 am
PIC experience: Professional 1+ years with MCHP products


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 11 guests

cron