Browse TYT Your Way! (Blocking And Adding Content)

Geeking out at TYT!Have you ever wanted to change the way a website renders ? Block certain content while allowing others? Add features?

If your a Firefox user, or are thinking about changing from IE,  read on. 

Greasemonkey is a Firefox extension that allows you to write scripts or use open source scripts that alter the way web pages are displayed and organized. Greasemonkey runs on your browser, so the websites content or code remains unchanged for other users and on the site servers.

( Note:Turnabout is a plugin for Internet Explorer 6.x and above, which mimics the functionality of the Greasemonkey extension for Mozilla Firefox.)

You can use it to make a web site more readable or more usable. You can fix rendering bugs that overworked site owners can't fix themselves.

For family members and friends who are visually or hearing impaired you can alter pages so they work better with new technologies that narrates a web page or even convert it to Braille! You can even automatically retrieve data from other sites to make two sites more interconnected.

Greasemonkeyin itself, does nothing. In fact, after you install it, you won't notice any change in Firefox operation until a user script, ( just a piece of Javascript code) with some additional information that tells Greasemonkey where and when it should be run.

Each user script can target a specific page, a specific site, or a group of sites. A user script can do anything you can do in Javascript, which is quite alot. In fact, it can do even more  because Greasemonkey provides special functions that are only available to user scripts.

But MRFred, I'm not a computer geek! (yet) What about me?

If you not a geeky as some of us "IT Losers" who slave all day writing mind numbing code ( after selling our IT consultant business) , there is Greasemonkey script repository that holds a treasure trove of usefull scripts. Any one with a minmal knowledge of scripting can modify a script!

For example, If you wanted to block certain content , like post from  a specific user on a discussion website, a Greasemonkey script can do that for you. Take this quick test script (that was originally written to block " liberal " trolls on Free Republic! ) we modified off to test Greasemonkey on TYT:

Free Enterprise! Free market...

 Just click the Is ( username ) a Troll? Link... then, as if by magic...

 Adios! If you dont like Fox News, change the channel...

You wont see that content for the remainder of you session!  Work continues to refine the script features not fully compatible with ScoopHost ( TYT site engine) but you can see how effective Greasemonkey  can be to improve your web experience!

Here are some of the open source scripts available for popular web sites:

 

  • Myspace (ex: remove all ads from Myspace, remove all flash media from profile pages, …)
  • Facebook (change the look of Facebook, remove ads, automatic page refresh every 30-90s, …)
  • eBay (add new column displaying total item cost (price+shipping), auto-feedback, …)
  • Amazon (disable ads, show prices in different currencies, for each product show prices from other sellers, …)
  • Gmail (change appearance, integrate google reader into gmail, ….)
  • Youtube, GoogleVideo (ADD video download option, change site theme, … )

If your not excited about changing to Firefox, even IE can enjoy some functionalities offered by Greasemonkeywith an addon called Turnabout. I have no experience with that particular software, but my colleagues and I will check that out at a later date.

 Enjoy, RussThe power of information!

< Medicare | 12/11/09: Vote TYT For Best Political Site @ Mashable! >
 Display:
Can you write me a script that will make the Third Hour go bye-bye?

by ashbul on 12/11/2009 12:11:01 PM EST

after two hours your browser will go to YouTube and play LOL Cay videos...

by Sock Puppet Fred on 12/11/2009 12:16:00 PM EST

[ Parent ]
So if I understand you right, if I'm using Firefox, I can download and install Greasemonkey, or if I'm using Internet Explorer, I can try Turnabout.  Then I can download and install a special script so that I don't have to see certain users' comments in this forum anymore?

Wow!  That sounds cool!  Where can I get that special script?  I want it!

by EveningStarNM on 12/11/2009 12:15:08 PM EST

I have several I am looking at. The way TYT is written ( ScoopHost) there are some issues, but generally it works.

You can go to Greasespot, or search on" Troll Blocker" and other variations, user blocker...etc.

The TYT website: homepage, forum, diary and posts uses several different classes that contain user names, the trick is to get all to work together consistently. 

Russ

by Sock Puppet Fred on 12/11/2009 12:29:10 PM EST

[ Parent ]
Yeah, I noticed that the user names are enclosed in different classes, depending on where they are.  Some you would want to show, like on the profile page, but the one's we really want to ignore are articles and comments.

I also noticed that user names in comments don't have a specific cascaded class definition but are instead displayed using to the hyperlink's default style.  The only thing that seems to distinguish it is the "/user/uid:" portion of the HREF attribute.  That's probably sufficient for comments, because then you can simply block the whole DIV containing that comment and anything in the DL tag that follows it -- or not, because blocking the DL tag along with its parent comment would block comments from users that you don't intend to block.

Also, if the script see's the user name you want to block, it can't simply block the entire

...
that contains it because it might be someone else simply referring to that user.

And I'm not even sure that simply looking for the "/user/uid:" in a hyperlink is foolproof.  For instance, if I write a comment containing a Ken's user name "Hugh Everett" as a link to his profile (although I can't imagine why I would ever want to do that), then the script could block my comment unintentionally.

However, looking for the

</b> on <A CLASS="light"...

that immediately follows the name would probably do the trick.

Articles are a little easier because all you have to block is the DIV containing the user name that you want to block if that DIV is of class "border_shim" and whether it's on the site's front page or on the forum list.

Those are really the only places I'm concerned about.  If I can block Ken's/Hugh's comments and articles from being listed on just those pages, I won't care about his profile page or anywhere else his name might appear.

by EveningStarNM on 12/11/2009 01:02:28 PM EST

[ Parent ]
I really despise this comment editor.

by EveningStarNM on 12/11/2009 01:04:17 PM EST

[ Parent ]
off and on  for a while..  works great on a mac  in case anyone was wondering. I think they are making a version for Safari .

Great you shared.

This is one of the very few sights that I cant just click a drop down list and block who I want.  Talk about infringing on my rights!!!  heh

Hope someone does get it working well on TYT

A conservative believes nothing should be done for the first time

by C D on 12/11/2009 03:37:28 PM EST

its EASY to use  .you just go down a list of scripts  that all have a short explanation of what they do .. if you like one  click INSTALL and thats it.  

There are all kind of scripts.

I have one that blocks ads
I have another that ads an option to facebook to add all or block all friend requests.

A conservative believes nothing should be done for the first time

by C D on 12/11/2009 03:53:09 PM EST

[ Parent ]
Whoa, gnarly! Now we finally get to disprove Bobo's claim that trolls make TYT go round.

by OneHitKill on 12/11/2009 06:43:00 PM EST

Ive been buried with requests for the script and the tool already. I don't want to get into a support mode on this.

The one solution I like (and we are working on ) is a script that will display a " Block" button beside each posters name.

Click the button...adios! Some of the gearheads have sent me a text looking at the code for inclusion into future updates of the site.

I'll keep you posted.

by Sock Puppet Fred on 12/11/2009 08:28:47 PM EST

[ Parent ]
 Display: