Supertopo Killfile Updated

Search
Go

Discussion Topic

Return to Forum List
This thread has been locked
Messages 1 - 20 of total 74 in this topic << First  |  < Previous  |  Show All  |  Next >  |  Last >>
froodish

Social climber
Portland, Oregon
Topic Author's Original Post - Jul 27, 2011 - 12:09am 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 27, 2011 - 12:12am 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 27, 2011 - 12:14am 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 27, 2011 - 12:33am 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 27, 2011 - 12:50am 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 27, 2011 - 01:07am PT
Crimpergirl,

No worries, bitbucket is designed for geeks ;-)

Go to the downloads page:

[url=" https://bitbucket.org/steveax/supertopo-killfile/downloads"] https://bitbucket.org/steveax/supertopo-killfile/downloads[/url]

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 27, 2011 - 01:21am 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?
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 27, 2011 - 01:27am 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 27, 2011 - 01:33am 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. ;)
Wayno

Big Wall climber
Seattle, WA
Jul 27, 2011 - 01:38am PT
Walk on By.

Dionne Warwick.

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

Mountain climber
SF, CA
Jul 27, 2011 - 01:40am 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 27, 2011 - 01:46am 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.
reddirt

climber
PNW
Jul 27, 2011 - 01:48am 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 27, 2011 - 01:56am 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?
High Fructose Corn Spirit

Gym climber
-A community of hairless apes
Jul 27, 2011 - 02:21am PT
Froodish,

yes, I'm on XP Windows. I extracted using WinRAR. I even restarted the computer. Same result. Even tried installing your script on my Window 7 laptop. Same result.

Must be something in the electricity over here? ;)

.....

Now I'm even more interested.

Dang it, I want my popup box, I want my install button, I want it now.
H

Mountain climber
there and back again
Jul 27, 2011 - 02:39am PT
Is it possible to isolate someone from adding "comments" to a topic I create?
nature

climber
back in Tuscon Aridzona....
Jul 27, 2011 - 02:52am PT
too bad this doesn't work with Chrome.

nice effort!
froodish

Social climber
Portland, Oregon
Topic Author's Reply - Jul 27, 2011 - 04:21am PT
HFCS,

I'm at a loss. If you really did extract the file from the Winrar window, and then dragged the extracted file to an empty window, I don't know what could be preventing the install. You do have the Greasemonkey extension installed, yes?

I grabbed the latest and put it here:

http://pangram.org/misc/supertopo_killfile.user.js

Try that direct link and let me know what happens.

@H
Is it possible to isolate someone from adding "comments" to a topic I create?

Just to be clear what the script does (and doesn't do)...

This doesn't change anything on the Supertopo server. Much like a unsenet client killfile, it merely removes things you don't want to see from your view. Users that you've blocked will be able to do anything they normally would, post to your threads, etc., you just won't see them.

@nature

The script will work fine in Chrome, but I'm not sure if there's a mechanism to edit the script once it's installed so you'll want to add the users you want to block before dragging it to an empty Chrome window. Open it up in a text editor (Wordpad should work fine on Windows) and add the usernames you wish to block, save the file, then drag to Chrome. Chrome will ask you to confirm the installation of an "Extension". Allow that and it will be installed. The catch is if you want to add more users, you'll have to uninstall from Chrome, edit the file and then install again. When I add the ui bits to allow blocking users from the forum pages, it'll be less of a hassle in Chrome.
Crimpergirl

Sport climber
Boulder, Colorado!
Jul 27, 2011 - 12:46pm PT
I keep getting the "windows script host" error box. Don't have time to fool with it now. I need a computer saavy research assistant to help me with important tasks like this.

:)
Elcapinyoazz

Social climber
Joshua Tree
Jul 27, 2011 - 01:31pm PT
Solid work Jackson!

Much appreciated froodish.
Messages 1 - 20 of total 74 in this topic << First  |  < Previous  |  Show All  |  Next >  |  Last >>
Return to Forum List
 
Our Guidebooks
spacerCheck 'em out!
SuperTopo Guidebooks

guidebook icon
Try a free sample topo!

 
SuperTopo on the Web

Recent Route Beta