Discussion Topic |
|
This thread has been locked |
Messages 1 - 74 of total 74 in this topic |
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!
|
|
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. ;)
|
|
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.
|
|
kunlun_shan
Mountain climber
SF, CA
|
|
Jul 27, 2011 - 01:57pm PT
|
I did some testing and discovered the solution to getting the script to install is to have Greasemonkey enabled. Make sure the check mark shows under Tools -> Greasemonkey,:
Pate, for me the script is a more elegant solution than "not reading someone's posts". Seems like you have a lot of energy invested in commenting on this :)
|
|
High Fructose Corn Spirit
Gym climber
-A community of hairless apes
|
|
Jul 27, 2011 - 04:19pm PT
|
A quick update.
Not sure what happened. Uninstalled Firefox and reinstalled. Now the script installs. Running fine.
All I really know is I spent way too much time on this.
Thanks again for the efforts.
|
|
YoungGun
climber
North
|
|
Many thanks for taking the time to write this. The forum looks much less cluttered with political drivel =)
Btw, I'm using it in Chrome as well, no problems at all.
|
|
nature
climber
Aridzona for now Denver.... here I come...
|
|
Dec 10, 2011 - 01:17pm PT
|
you all suck.
(not that anyone will be able to read that ;)
|
|
Manjusri
climber
|
|
Works like a charm. Thanks.
|
|
TGT
Social climber
So Cal
|
|
|
|
nature
climber
Boulder, CO
|
|
Not working for me.
|
|
nature
climber
Boulder, CO
|
|
my text editor doesn't allow italics. Why remove the X in line 1 and four if they are commented out?
|
|
nature
climber
Boulder, CO
|
|
i found the one instance of italics and removed space. I still see Ron Andersons posts. hmmm..,,
|
|
zBrown
Ice climber
chingadero de chula vista
|
|
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 8, 2012 - 11:29pm PT
|
Malemute,
The last version I posted already uses screen names rather that IDs. Perhaps we should join forces, my script is in a public repository:
https://bitbucket.org/steveax/supertopo-killfile
Feel free to branch/create a pull request.
|
|
tornado
climber
lawrence kansas
|
|
hahahaha!!!!!!!!!!!!!!!!!!!!!!!!!!
The default list is WHAY funny!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
"BES1'st","iannonymous","navblk4","midarockjock","4damages","sawin",
"BLUEBLOCR",
"bluering",
"bookworm",
"corniss chopper",
"Donald Thompson",
"Duardo",
"Farouk",
"fattrad", // banned
"go-B",
"LEB", // banned
"MikeL",
"neebee",
"skipt", // banned
"TGT",
"The Chief",
"WBraun",
"Weld_it"
neebee, Werner and The Chief!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! LOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Yeah, What would be left to read? All those super sweet trip reports about RNWF of half dome and Snake Dike?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 9, 2012 - 08:29pm PT
|
OK, thanks to Malemute, I finally added UI to the script so you can block users from the browser (no more editing of the script to add users).
If you used the previous version, you'll have to re-block users that were in the script before, but it should be pretty quick to do now.
Updated instructions can be found here:
https://bitbucket.org/steveax/supertopo-killfile/wiki/Home
A couple of screenshots:
I have only tested in Firefox v15 and v16 with Greasemonkey 1.3. I think there were some folks using this in Chrome too, so if they could test that'd be groovy.
If you have any problems, or find any bugs, you can ping me here (PM), or post to the issue tracker at Bitbucket:
https://bitbucket.org/steveax/supertopo-killfile/issues
Enjoy,
-S
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 11, 2012 - 11:30pm PT
|
Bump for the evening crowd.
|
|
WBraun
climber
|
|
Oct 11, 2012 - 11:37pm PT
|
None of my windows are tinted nor do I wear sunglasses .........
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 11, 2012 - 11:45pm PT
|
Just trying to add functionality to the forum that usenet clients had 20 years ago Werner ;-)
|
|
dipper
climber
|
|
Oct 12, 2012 - 01:42am PT
|
thank you thank you thank you.
I am unable to reset the killfile.
enter about:config
type kill
no such entry pops up
mac, firefox 16, latest greasemonkey i think.
so retro now, having a killfile to filter the noise.
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 12, 2012 - 02:48am PT
|
dipper,
That entry won't be in about:config until you add a name through the new version of the script. If you've added names to the kill file in the latest version and they are not showing up there, let me know. That would definitely be a bug.
Cheers,
-S
|
|
nick d
Trad climber
nm
|
|
Oct 12, 2012 - 02:53am PT
|
Sure that isn't the "killjoy" file?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 12, 2012 - 02:55am PT
|
It is what you make it. All about control for the user. I'm a believer in personal filters, but to each, their own.
|
|
dipper
climber
|
|
Oct 12, 2012 - 03:03am PT
|
How do I edit the names in the list as supplied by you?
I have added none yet.
I did have an earlier "LEB killfile" file in greasemonkey already, which I nuked.
thanks
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 12, 2012 - 03:45am PT
|
Dipper,
There is no default list. To add a user to the kill file, click on the (x) next to the user name in the forum index view, or in the thread pages, click the "block user" link. See the screenshots in my post from yesterday (or at the wiki for the repository).
|
|
MikeL
climber
SANTA CLARA, CA
|
|
Oct 12, 2012 - 12:06pm PT
|
Terrific idea. Why would anyone want to talk to people who didn't want to listen?
|
|
Hardman Knott
Gym climber
Muir Woods National Monument, Mill Valley, Ca
|
|
Oct 12, 2012 - 04:46pm PT
|
Just trying to add functionality to the forum that usenet clients had 20 years ago Werner ;-)
LOL!! So true...
Is there a simple way to block threads without necessarily blocking its author?
|
|
MikeL
climber
SANTA CLARA, CA
|
|
Oct 12, 2012 - 08:12pm PT
|
^^^^^^^
If person A knew that person B did not want to listen or hear person A, then why would person A attempt to talk to person B conversationally? What is the point.
A killfile seems to provide a solution to avoid that problem. It seems to serve both people.
Ok?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 21, 2012 - 12:05am PT
|
Just updated the script, the major new feature is thread blocking:
Blocking a thread only blocks that thread, not any other threads created by that author.
Blocked threads and authors are now stored in HTML5 local storage which is now the recommended practice for userscript preferences. This means that any kill filed authors will have to be re-added. Sorry about that, but this should be the last change in that department.
In addition, the script is now versioned so Greasemonkey should pick up new versions automatically from here on out.
I also injected some styles into the thread pages that prevent extra-large images, long urls, or 500 exclamation points in a row from blowing out the pages.
Main forum index page now gets "re-striped" after killed threads are removed so that there's always alternating row colors.
Note that since I switched to using HTML5 localstorage for saving the killfiled users/threads so the previous instructions about clearing the killfile are obsolete. I'll put some new instructions for that up on the wiki later. If you have a need to do that before I manage to update the instructions, drop me a line and I'll walk you through it.
Instructions here, and you can install the latest version directly from this link.
If you find any bugs or have suggestions, drop me a PM here or create an issue at bitbucket. Code contributions always welcome - create a pull request.
Cheers,
-S
|
|
nature
climber
Boulder, CO
|
|
Oct 21, 2012 - 12:48am PT
|
awesome.
"BES1'st","iannonymous","navblk4","midarockjock","4damages","sawin",
"BLUEBLOCR",
"bluering",
"bookworm",
"corniss chopper",
"Donald Thompson",
"Duardo",
"Farouk",
"fattrad", // banned
"go-B",
"LEB", // banned
"MikeL",
"skipt", // banned
"TGT",
"The Chief",
"Ron Anderson",
//"locker","Dad", ;-),
//"froodish" :-8,
//"nature"
|
|
Captain...or Skully
climber
|
|
Oct 21, 2012 - 12:57am PT
|
If you block yourself, do you have to hang out with Schrodinger's cat?
|
|
ß Î Ø T Ç H
Boulder climber
bouldering
|
|
Oct 21, 2012 - 02:51am PT
|
Anybody who downloads this should think about why they are such pussies, and can't function in society.
|
|
Tobia
Social climber
Denial
|
|
Oct 21, 2012 - 05:41am PT
|
I downloaded the killfile; but I don't think of myself as a "pussy". I think of myself as someone who doesn't like to read trash or someone who doesn't want to see the same old dead horse beaten to death with photoshop.
Ironically I use for the same reason you say not to use it biotech, to block those who seemingly don't function well in society or at the very least this society.
It is no different than muting the television during commercials; except you don't have to hit the mute button.
|
|
zBrown
Ice climber
chingadero de chula vista
|
|
Oct 21, 2012 - 12:05pm PT
|
Works only with Firefox?
Then can I block myself for a specific period of time?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 21, 2012 - 05:09pm PT
|
@zBrown
Works only with Firefox?
Should work as well in Google Chrome, but I have not tested it.
I added some the instructions to the wiki to view/edit the stored killfile values.
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 21, 2012 - 05:17pm PT
|
DMT,
You did have a supertopo page open in the front-most window-tab when you did that (Firefox console?), yes?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 21, 2012 - 05:28pm PT
|
Hmmm, Firefox and Greasemonkey versions you're running?
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Oct 21, 2012 - 06:02pm PT
|
Those versions are current (Firefox has a 16.1 version out but that shouldn't matter). The only way local storage should be undefined is if there really are no values stored for the domain and I'm at a loss as to why they wouldn't store properly. You might try re-installing the latest version of the script an the restarting Firefox. Send me an email directly if that still doesn't work.
It is a bit more complicated now but the payoff is being able to update the script without having to re-enter the kill file values every time there's an update.
|
|
Manjusri
climber
|
|
Seems like a good time for a bump.
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Feb 2, 2013 - 03:39am PT
|
So folks won't have to wade through the thread...
Instructions for installing are at the bitbucket wiki page.
Feel free to ping me if you have any issues/questions.
Cheers,
-S
|
|
Brandon-
climber
The Granite State.
|
|
Sep 24, 2013 - 05:01pm PT
|
Seriously.
A lot of people say things that irritate me, but I don't put blinders on myself.
To each their own I guess.
|
|
WBraun
climber
|
|
Sep 24, 2013 - 05:13pm PT
|
WOW !!!! Nice ....
Just see .....
I blocked everyone except for myself.
This forum is now Perfect .......
|
|
Brandon-
climber
The Granite State.
|
|
Sep 24, 2013 - 05:15pm PT
|
You should keep posting, you offer solid content. Your photos are outstanding.
|
|
nature
climber
Boulder, CO
|
|
Oct 27, 2013 - 05:29pm PT
|
Greasemonkey doesn't run on Chrome.
|
|
nature
climber
Boulder, CO
|
|
Oct 28, 2013 - 04:33pm PT
|
I may still try that but for now I'm surfing supertaco on FF.
By simply adding The Chuff, Rong, sketch, go-b and TGT to the list and the noise/stupidity to signal ratio has decreased exponentially.
Not to mention the now dead in the water AGW thread.
go figure, right?
|
|
Brandon-
climber
The Granite State.
|
|
Oct 28, 2013 - 05:51pm PT
|
Most likely.
|
|
hossjulia
climber
|
|
Oct 28, 2013 - 07:56pm PT
|
All I know is I opened this thread and a really scary window opened that looked evil. I closed it immediately. I have pop up blocker, so this should not have happened. Script?
|
|
Splater
climber
Grey Matter
|
|
Oct 28, 2013 - 08:48pm PT
|
Those of you who say that we should listen to all points of view are deluded, and are giving credence to the trolls who ruin internet forums.
No one has that much spare time to waste.
How many times do you stop to listen to the story of every panhandler?
How many hours per day do you listen to faux news radio?
Happiness / Enlightenment / Success does not come from surrounding yourself with negativity.
|
|
nature
climber
Boulder, CO
|
|
Jun 17, 2015 - 09:42am PT
|
having a problem after hitting "Raw". appears the user.js script won't download?
|
|
Tobia
Social climber
Denial
|
|
Jun 17, 2015 - 10:02am PT
|
nature, i had killfile running for a long time; but after having to reload firefox, i get the same message as you when trying to install the script on greasemonkey.
|
|
nature
climber
Boulder, CO
|
|
Jun 17, 2015 - 10:08am PT
|
yup. exactly the same thing here. Now that chuff and rong are gone I have less need for it. More than anything i've just been hiding threads I know I'll never read so it helps keep the front page clean.
I pinged froodish but his last post was november of last year.
|
|
froodish
Social climber
Portland, Oregon
|
|
Topic Author's Reply - Jul 4, 2015 - 10:40pm PT
|
Sorry about neglecting that, been buried at work lately :-(
I've updated the script and loaded into a fresh install of Firefox and things seem good to go now.
https://bitbucket.org/steveax/supertopo-killfile/wiki/Home
Instructions about editing the killfile are wrong as Greasemonkey now stores those settings in an SQLite DB along with the script in your Firefox user profile so I'll have to update those instructions in the wiki.
Cheers,
-S
|
|
coolrockclimberguy69
climber
|
|
╔═════════════════ ೋღ☃ღೋ ════════════════╗
~ ~ ~ ~ ~ ~ ~ ~ ~ Repost this if ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ you are a beautiful strong black woman ~ ~ ~
~ ~ ~ ~ ~ ~ ~ who don’t need no killfile ~ ~ ~ ~ ~ ~ ~
╚═════════════════ ೋღ☃ღೋ ════════════════╝
|
|
kunlun_shan
Mountain climber
SF, CA
|
|
Easy way to make political threads and/or posters invisible.
Thank you, froodish! Your script still works very well.
|
|
Messages 1 - 74 of total 74 in this topic |
|
SuperTopo on the Web
|