The Magic Café
Username:
Password:
[ Lost Password ]
  [ Forgot Username ]
The Magic Cafe Forum Index » » Not very magical, still... » » Any "greasemonkey" script editors out there? (0 Likes) Printer Friendly Version

 Go to page 1~2 [Next]
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
I'm looking for someone who can write a "kill file" script for the magic Café. Something that will essentially block posts from appearing on this forum from certain posters.

I don't know how to do it myself, but I know it should be easy for someone who does this sort of thing.

A small financial compensation is not out of the question...
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Doug Higley
View Profile
V.I.P.
Here and There
7173 Posts

Profile of Doug Higley
Hey Gaddy...you would miss me!! (like I miss your 'good' Avatar.

But seriously, isn't it better to know what that 'other' side is writing about?
Higley's Giant Flea Pocket Zibit
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Quote:
On 2008-10-27 14:32, Doug Higley wrote:
Hey Gaddy...you would miss me!! (like I miss your 'good' Avatar.

But seriously, isn't it better to know what that 'other' side is writing about?

But it's just frustrating nonsense here of the Limbaugh/Hainnity variety here. I'd prefer to not hear it on the magic Café. There are plenty of reputable news sources of a conservative bent elsewhere, and there are plenty of people here who have worthwhile things to say that I don't need to view the garbage as well.

And with "Greasemonkey" and a few lines of code, I won't have to!


And besides, it's not you anyhow, Doug.
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Vandy Grift
View Profile
Inner circle
Milwaukee
3504 Posts

Profile of Vandy Grift
Awwwww poor baby. Can't handle civil discourse? Need your own little "Fairness Doctrine"? LOL!
"Get a life dude." -some guy in a magic forum
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Hahaha... Too funny! When has it ever been civil? Man, I'll miss you, whatever your name was...
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Vandy Grift
View Profile
Inner circle
Milwaukee
3504 Posts

Profile of Vandy Grift
Why not just run away and hide somewhere? Then you won't have to read anything that offends your delicate sensibilites.

I guess when you live in a virtual world you can block out people who don't dance to your tune. Good luck with in real life, if you have one.
"Get a life dude." -some guy in a magic forum
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Quote:
On 2008-10-27 16:47, Vandy Grift wrote:
Why not just run away and hide somewhere? Then you won't have to read anything that offends your delicate sensibilites.

I guess when you live in a virtual world you can block out people who don't dance to your tune. Good luck with in real life, if you have one.


No I just don't have to listen to idiots if I don't want to. But I just can't tell you how much I've enjoyed our civil discourse together... Take care, dude!
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Vandy Grift
View Profile
Inner circle
Milwaukee
3504 Posts

Profile of Vandy Grift
Awww don't pout now, Dude. Wipe your little nose, everything is going to be ok.
"Get a life dude." -some guy in a magic forum
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Pout? I couldn't be happier right now! I'm taking away your one vehicle to annoy me. What I don't understand is why this bothers you so much...
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Vandy Grift
View Profile
Inner circle
Milwaukee
3504 Posts

Profile of Vandy Grift
Grown men acting like babies annoys me, what can I say?
"Get a life dude." -some guy in a magic forum
kregg
View Profile
Inner circle
1958 Posts

Profile of kregg
Just download a copy of Google China. Where will censorship end? Smile
POOF!
Tom Bartlett
View Profile
Special user
Our southern border could use
763 Posts

Profile of Tom Bartlett
Where did all the tolerance and understanding of the liberal left go, like it was ever there to begin with. I can see you now with you fingers in your ears going na na na na na na na na na na na na na na na na na na na na na na na! LOL
Our friends don't have to agree with me about everything and some that I hold very dear don't have to agree about anything, except where we are going to meet them for dinner.
Doug Higley
View Profile
V.I.P.
Here and There
7173 Posts

Profile of Doug Higley
I think it's lalalalalalalalala!!!!!

na na na na na na etc is so 80's.
Higley's Giant Flea Pocket Zibit
Tom Bartlett
View Profile
Special user
Our southern border could use
763 Posts

Profile of Tom Bartlett
Freedom of speech for all but the conservative, capitalist pigs! This is more fun than shoot'n fish in a barrel and a lot easier!
Our friends don't have to agree with me about everything and some that I hold very dear don't have to agree about anything, except where we are going to meet them for dinner.
Doug Higley
View Profile
V.I.P.
Here and There
7173 Posts

Profile of Doug Higley
USSA

Not acceptable. Won't look right on a hat.
Higley's Giant Flea Pocket Zibit
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Quote:
On 2008-10-27 18:02, Tom Bartlett wrote:
Where did all the tolerance and understanding of the liberal left go, like it was ever there to begin with. I can see you now with you fingers in your ears going na na na na na na na na na na na na na na na na na na na na na na na! LOL


I prefer a "rose colored glasses" analogy, but whatever... It's been "nice" talking to you Mr. Tom Bartlett.
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Tom Bartlett
View Profile
Special user
Our southern border could use
763 Posts

Profile of Tom Bartlett
Quote:
On 2008-10-27 20:52, gaddy wrote:
Quote:
On 2008-10-27 18:02, Tom Bartlett wrote:
Where did all the tolerance and understanding of the liberal left go, like it was ever there to begin with. I can see you now with you fingers in your ears going na na na na na na na na na na na na na na na na na na na na na na na! LOL


I prefer a "rose colored glasses" analogy, but whatever... It's been "nice" talking to you Mr. Tom Bartlett.


I on the other hand call it the ostrich mode, that way the truth won’t hurt you. It's been "nice" talking to you too, Mr. Gaddy?
Our friends don't have to agree with me about everything and some that I hold very dear don't have to agree about anything, except where we are going to meet them for dinner.
MagicSanta
View Profile
Inner circle
Northern Nevada
5845 Posts

Profile of MagicSanta
I'm a hard core liberal and while I don't know what greasemonkey script means I'm with Gaddy. I'm in the bay area for Halloween Gaddy, we can hang out.
gaddy
View Profile
Inner circle
Agent of Chaos
3165 Posts

Profile of gaddy
Quote:
On 2008-10-27 21:46, MagicSanta wrote:
I'm a hard core liberal and while I don't know what greasemonkey script means I'm with Gaddy. I'm in the bay area for Halloween Gaddy, we can hang out.


Liberal or conservative, you're tops with me MS...

I'm working like a dog this Halloween (it's the weekend from hell for bartenders, but the cash is sweet!), but tell me when you're going to Misdirections Magic Shop and I'll totally make an effort to come by and hang out with you!

PS- "Greasemonkey" is an add-on to Firefox that allows you to manipulate, modify and automate webpages on your browser's side of the internet via used created scripts. It gives you more control over the content and usability of the pages you visit.

For example, I've decided I want a way to ignore certain people on the magic Café, so I installed this script and now I don't have to view the inane blathering of certain individuals (PS- feel free to use this script yourself, in fact, Chairman Mao commands it!):

// ==UserScript==
// @name Magic Café Killfile
// @description The Magic Café Killfile
// @include http://www.themagiccafe.com/forums/viewforum.php*
// @include http://www.themagiccafe.com/forums/viewtopic.php*
// ==/UserScript==

var topics = document.evaluate('//a[contains(@href, "bb_profile.php?mode=view&user=")]//ancestor::tr[1]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var killfile = eval(GM_getValue("killfile", "({})"));
var names = new Array();
var ids = new Object();
var listcell;

hide_posts(true);
if(topics.snapshotLength > 0) {
var table = document.evaluate('./ancestor::table[1]', topics.snapshotItem(0), null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
listcell = table.insertRow(0).insertCell(0);
listcell.colSpan = topics.snapshotItem(0).cells.length;
add_unkill_list();
}

function hide_posts(add_link) {
names = new Array();
ids = new Object();
for (var name in killfile) {
names.push(name);
ids[killfile[name]] = true;
}
for(var j = 0; j < topics.snapshotLength; j++) {
var profile_link = document.evaluate('.//a[contains(@href, "bb_profile.php?mode=view&user=")]', topics.snapshotItem(j), null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var userid;
var username;

if(profile_link) {
userid = get_userid(profile_link);
username = get_username(topics.snapshotItem(j));
if(userid) {
if(ids[userid]) {
topics.snapshotItem(j).style.display = "none";
} else {
topics.snapshotItem(j).style.display = "";
if(add_link) {
var link = make_kill_link(userid, username);
profile_link.parentNode.insertBefore(link, profile_link.nextSibling);
if(document.location.href.indexOf("viewforum.php") > -1) {
profile_link.parentNode.insertBefore(document.createTextNode(" - "), profile_link.nextSibling);
} else {
profile_link.parentNode.insertBefore(document.createElement('br'), profile_link.nextSibling);
}
}
}
}
}
}
}

function add_unkill_list() {
names.sort(lc_sort);
listcell.innerHTML = "";
for(var j = 0; j < names.length; j++) {
var link = make_unkill_link(names[j]);
listcell.appendChild(link);
if(j < (names.length-1)) {
listcell.appendChild(document.createTextNode(", "));
}
}
}

function make_kill_link(userid, username) {
var link = document.createElement('a');

link.href = "#";
link.innerHTML = "killfile";
link.style.color = "red";
link.addEventListener('click', function(ev) {ev.preventDefault(); kill(userid, username);}, false);
return link;
}

function make_unkill_link(username) {
var link = document.createElement('a');

link.href = "#";
link.innerHTML = username;
link.style.color = "red";
link.addEventListener('click', function(ev) {ev.preventDefault(); unkill(username);}, false);
return link;
}

function kill(userid, username) {
killfile[username] = userid;
GM_setValue("killfile", killfile.toSource());
hide_posts(false);
add_unkill_list();
}

function unkill(username) {
delete(killfile[username]);
GM_setValue("killfile", killfile.toSource());
hide_posts(false);
add_unkill_list();
}

function get_userid(link) {
var re;

if(re = /&user=(\d+)/.exec(link.href)) {
return parseInt(re[1]);
}
return null;
}

function get_username(cell) {
var re;
var username;
if(document.location.href.indexOf("viewforum.php") > -1) {
if(re = /<u>([^<]+)/i.exec(cell.innerHTML)) {
username = re[1];
}
} else {
if(re = /<b>([^<]+)/i.exec(cell.innerHTML)) {
username = re[1];
}
}
return username;
}

function lc_sort(a, b) {
if(a.toLowerCase() < b.toLowerCase()) {
return -1;
} else if(a == b) {
return 0;
} else {
return 1;
}
}
*due to The Magic Cafe's editorial policies, words on this site attributed to me cannot necessarily be held to be my own.*
Magnus Eisengrim
View Profile
Inner circle
Sulla placed heads on
1064 Posts

Profile of Magnus Eisengrim
I'm surprised by some of the comments, but I probably shouldn't be...

Since when does not reading someone's posts equate to censorship? Bizarre.

John
The blood-dimmed tide is loosed, and everywhere
The ceremony of innocence is drowned;
The best lack all conviction, while the worst
Are full of passionate intensity.--Yeats
The Magic Cafe Forum Index » » Not very magical, still... » » Any "greasemonkey" script editors out there? (0 Likes)
 Go to page 1~2 [Next]
[ Top of Page ]
All content & postings Copyright © 2001-2021 Steve Brooks. All Rights Reserved.
This page was created in 0.33 seconds requiring 5 database queries.
The views and comments expressed on The Magic Café
are not necessarily those of The Magic Café, Steve Brooks, or Steve Brooks Magic.
> Privacy Statement <

ROTFL Billions and billions served! ROTFL