Supertopo Killfile Updated

Search
Go

Discussion Topic

Return to Forum List
Post a Reply
Messages 1 - 20 of total 110 in this topic << First  |  < Previous  |  Show All  |  Next >  |  Last >>
froodish

Social climber
Portland, Oregon
Topic Author's Original Post - Jul 26, 2011 - 09:09pm PT
All,

I've rewritten the killfile script to improve performance (should be much faster) and make configuration easier.

Russ, if you want to add your few hundred names back to stress test it, have at it!

Changes:

* Uses Xpath rather than looping through the DOM to select the elements containing screen names (much faster)

* Doesn't run on non-forum pages at Supertopo

* You only need to add screen names now, not screen name and screen ID (no more searching for the user id strings)

This week is pretty busy for me, but I plan to continue to make additions. Here are some planned additions:

* Store the blocked users using Greasemonkey's internal data store and add some UI elements to the Supertopo forum pages to allow you to block users without editing the script ("block user" links)

* Add the ability to block threads (using Greasemonkey's internal data store as above)

This is version 1, so there may be bugs, but I've tested it pretty well. If you find any bugs or have suggestions for improvement, drop me a line or add an issue at the project tracker on bitbucket.

You can download the script here.


I've put some installation and configuration instructions up on the project wiki.


As always, no warranty implied. Greasemonkey scripts can do naughty things, so install at your own risk and don't come crying to me if it makes off with all your blue Camalots ;-)

Note: skip to the end of this thread for updates

Enjoy,

-S
Mighty Hiker

climber
Vancouver, B.C.
Jul 26, 2011 - 09:12pm PT
Thanks! If one uses this to block a user, will it also automatically block any thread started by that person? Or must that be done separately?
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 26, 2011 - 09:14pm PT
If you add a user to the killfile list, it will remove any threads started by that user (just like the previous script did.) I thought I'd add block thread functionality just in case there are threads you'd rather not see started by authors you rather not block.
kunlun_shan

Mountain climber
SF, CA
Jul 26, 2011 - 09:33pm PT
Wow! Thanks Steve! Adding the UI elements, so people don't need to edit the script, would be a big plus. Not sure why, but getting the script working properly has been difficult for several people I've heard from.

You are bringing peace and detente to the Taco. Am looking forward to further versions.
Crimpergirl

Sport climber
Boulder, Colorado!
Jul 26, 2011 - 09:50pm PT
Thanks for your hard work. Seriously.

Now, can you dumb down the instructions even more? I can't even figure out how to download whatever I'm supposed to download. It's a wonder I can get dressed by myself in the morning.

Thanks!
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 26, 2011 - 10:07pm PT
Crimpergirl,

No worries, bitbucket is designed for geeks ;-)

Go to the downloads page:

https://bitbucket.org/steveax/supertopo-killfile/downloads

And under "Tags & snapshots" you'll see a table (Tag, Download, etc.)

You want the "zip" link in the "tip" row:

https://bitbucket.org/steveax/supertopo-killfile/get/tip.zip

This is a zip archive that contains the latest version.

Unzip that and in the resulting folder will be the script.

From there, the instructions should get you going:

https://bitbucket.org/steveax/supertopo-killfile/wiki/Home

but feel free to ping me if you have any trouble.
High Fructose Corn Spirit

Gym climber
-A community of hairless apes
Jul 26, 2011 - 10:21pm PT
Froodish, thanks

Step 4: Click the "Install" button in the dialog that pops up

What do you do if no dialog box pops up? What's that mean?
Pate

Trad climber
Jul 26, 2011 - 10:25pm PT
what kind of a loser would take a forum so seriously?

i mean not only the idiot who would waste time geeking up code, but also anyone who would bother to run it.

get a life.
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 26, 2011 - 10:27pm PT
What do you do if no dialog box pops up? What's that mean?

So you dropped 'supertopo_killfile.user.js' on a new empty tab in Firefox and it didn't present you with that dialog? Strange.
High Fructose Corn Spirit

Gym climber
-A community of hairless apes
Jul 26, 2011 - 10:33pm PT
Thanks for the reply.

I'm running 5.0 if that helps. I tried it twice: first dropping on the tab, then dropping it in the window. Nothing both times. I mean other than the script pasting into the window, that is.

.....

It would be cool to play with this some.

Despite Pate's critique. ;)
treez

climber
Jul 26, 2011 - 10:35pm PT
For once, I agree with pate.

Although I did quit once and Mr. E made fun of me. True Story!

Fuggit, I love ST, but I have a life it doesn't affect at all.....
treez

climber
Jul 26, 2011 - 10:36pm PT
Anymore.
Wayno

Big Wall climber
Seattle, WA
Jul 26, 2011 - 10:38pm PT
Walk on By.

Dionne Warwick.

http://www.youtube.com/watch?v=JzCkD3vRukA
kunlun_shan

Mountain climber
SF, CA
Jul 26, 2011 - 10:40pm PT
HFCS, was the tab empty, as in "new tab"? I dragged the script onto a tab that had content and it displayed the script. When I dragged it to a new EMPTY tab, the install prompt appeared.
High Fructose Corn Spirit

Gym climber
-A community of hairless apes
Jul 26, 2011 - 10:46pm PT
Yeah, the tab even says "New Tab" .

I'll try it again after closing everything down.

.....

No go. Same result. Script pastes to blank window and that's all.

Oh, well.
treez

climber
Jul 26, 2011 - 10:47pm PT
I prefer Walk On by Neil Young
reddirt

climber
PNW
Jul 26, 2011 - 10:48pm PT
I can pretty easily ignore most of the posters I want except LEB (which is a moot point since that acct got nixed or something). Pate prolly enjoyed messing w/ her (though she was too easy a target).... in any case I think the code thing is pretty nifty & can't believe I got it to work. So thanks froodish!

so funny that how this all evolved... from politics to uber right wing & LEB drivel to DIY code.
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 26, 2011 - 10:56pm PT
HFCS,

I just tried with a clean install of Firefox 5.0.1 on both Mac and Windows and the install worked fine.

Are you on Windows?

If so, I wonder if the standard way Windows treats zip archives (showing them in the Windows Explorer without extracting the file) is the hitch.

Try this:

2-click the zip archive you downloaded. This should open the archive up in the Windows Explorer (assuming you don't have Winzip or the like installed).

Then drag the supertopo_killfile.user.js script from that window to the Desktop and then use the file you dropped on the desktop to drag into the Firefox tab.

Does that do the trick?
Pate

Trad climber
Jul 26, 2011 - 11:02pm PT
I have absolutely no idea what is going on in this thread b/c I have added every single name on Supertopo to my script except Tami, Flashy P and Weld_it .

You guys out there? I'm lonely.
locker

Social climber
CO
Jul 26, 2011 - 11:06pm PT


What happens if you put yourself on the ignore list???...


Messages 1 - 20 of total 110 in this topic << First  |  < Previous  |  Show All  |  Next >  |  Last >>
Return to Forum List
Post a Reply
 
Our Guidebooks
Check 'em out!
SuperTopo Guidebooks


Try a free sample topo!

 
SuperTopo on the Web

Review Categories
Recent Trip Report and Articles
Recent Route Beta
Recent Gear Reviews