V
VK
As these bags, t-shirts and other crap sellers from China are not
calming, I wrote for myself a small Google Groups spam filter. I wrote
in about 10 min where 8 were spent for studying Google page HTML
structure, so it might be as crappy as it get I am more concerned
that some "shipping" offers are still sliding through so I overlooked
something important in the string search.
I am also wondering what would be the regexp pattern to sort out all
posts with pseudo-graphics in them like:
♥Paypal Payment♥cheap SMET jeans wholesale(www.wholesale789..com)
∴★paypal payment★∴ wholesale cheap the hottest Belt at www.ecyaya.com
and mixtures of Asian and Latin letters (but not Asian and Latin
words) like:
இ◥இ◤ 2009 Prada handbags get low price wholesale at WEBSITE: www.fjrjtrade.com
<paypal payment>===<free shipping>
Both Greasemonkey and IE7Pro are using the script metadata, but they
are using slightly different installation mechanics, so I placed the
script to the relevant installation sites. The code is also pasted at
the bottom of this post.
for Greasemonkey (https://addons.mozilla.org/en-US/firefox/addon/748):
http://userscripts.org/scripts/show/59377
for IE7Pro (http://www.ie7pro.com):
http://www.iescripts.org/view-scripts-676p1.htm
script:
// ==UserScript==
// @name ggNoSpam
// @namespace http://www.geocities.com/schools_ring
// @description Google Groups spam filter
// @include http://groups.google.tld/*
// ==/UserScript==
window.addEventListener('load', function(e) {
var msg = null;
var div = document.getElementsByTagName('DIV');
var i = 0;
for (i=0; i<div.length; i++) {
if (div.className == 'maincontoutboxatt') {
msg = div.
getElementsByTagName('TABLE')[0].
tBodies[0].
rows;
break;
}
}
for (var i=0; i<msg.length; i++) {
if ((msg.textContent.toLowerCase()).indexOf('wholesale') != -1) {
msg.style.display = 'none';
}
}
}, false);
calming, I wrote for myself a small Google Groups spam filter. I wrote
in about 10 min where 8 were spent for studying Google page HTML
structure, so it might be as crappy as it get I am more concerned
that some "shipping" offers are still sliding through so I overlooked
something important in the string search.
I am also wondering what would be the regexp pattern to sort out all
posts with pseudo-graphics in them like:
♥Paypal Payment♥cheap SMET jeans wholesale(www.wholesale789..com)
∴★paypal payment★∴ wholesale cheap the hottest Belt at www.ecyaya.com
and mixtures of Asian and Latin letters (but not Asian and Latin
words) like:
இ◥இ◤ 2009 Prada handbags get low price wholesale at WEBSITE: www.fjrjtrade.com
<paypal payment>===<free shipping>
Both Greasemonkey and IE7Pro are using the script metadata, but they
are using slightly different installation mechanics, so I placed the
script to the relevant installation sites. The code is also pasted at
the bottom of this post.
for Greasemonkey (https://addons.mozilla.org/en-US/firefox/addon/748):
http://userscripts.org/scripts/show/59377
for IE7Pro (http://www.ie7pro.com):
http://www.iescripts.org/view-scripts-676p1.htm
script:
// ==UserScript==
// @name ggNoSpam
// @namespace http://www.geocities.com/schools_ring
// @description Google Groups spam filter
// @include http://groups.google.tld/*
// ==/UserScript==
window.addEventListener('load', function(e) {
var msg = null;
var div = document.getElementsByTagName('DIV');
var i = 0;
for (i=0; i<div.length; i++) {
if (div.className == 'maincontoutboxatt') {
msg = div.
getElementsByTagName('TABLE')[0].
tBodies[0].
rows;
break;
}
}
for (var i=0; i<msg.length; i++) {
if ((msg.textContent.toLowerCase()).indexOf('wholesale') != -1) {
msg.style.display = 'none';
}
}
}, false);