Readers: 19 | Updated: 10-10

Fixing the Yahoo News Toggle

Translate Into:

If you frequent Yahoo News, you’ve likely noticed the site has been redesigned.  Overall, the design is clean, information-rich, and provides a nice update to one of my favorite news sources.  Along with the redesign, Yahoo has introduced a bizarre, annoying functionality to news stories.  When a news story loads, you are delivered a truncated version of the story; to see the full story you are forced to click on the “Read Full Article” button that hovers midway in the page (generally next to an ad).  This has proven endlessly frustrating.

I figured this issue would be easy to fix.  Inspecting the code, the javascript controls are simple enough - the toggle is controlled by a simple onclick listener.  Disable the script and all should be well, right?  As it turns out, this is not as easy as it seems.  The script was inline - included in the page - meaning the only way to block it was to block all javascript in the page.  This makes Yahoo news fairly unusable.  After playing around with Adblock Plus, however, I discovered a formula that works:

news.yahoo.com#*(class=ult-section mod read-more-toggle)

This filter will prevent toggling, displaying the full page when it loads.  There are some side effects, the primary one being the story content loads last.  I was willing to trade this off to not have to click each time I wanted to read the rest of the story.  It appears that recently Firefox introduced functionality that enables just-in-time inspection and modification of pages.  Perhaps when Adblock Plus is updated there will be a more elegant solution to the inline javascript issue.


From The Blogs

fivecentnickel.com

04-03
Save Money by Fixing Things Yourself
After a weekend spent working around the house, I was reminded of the value of being able to make simple fixes yourself. I’m a reasonably handy guy, and I take a certain amount of pride in being able ... 查看全文

Download Squad

04-08
Toggle Flash: Add-on to disable Flash in IE 7
Filed under: Internet, Utilities, Windows, FreewareFlash, like most things in life, has its good and its bad. The good: it's hard to imagine interactive content on the web without Flash. The bad: it's... 查看全文

The Glittering Eye

04-10
Fixing Infrastructure
I only have first-hand experience with two of the pieces of U. S. infrastructure listed by Popular Mechanics in its review of U. S. infrastructure in urgent need of attention, the Chicago Circle and O... 查看全文

GigaOM

04-11
Why Fixing Internet Capacity Keeps the Telcos Honest
In the debate around Internet regulation and traffic, its important to understand the things that drive how much bandwidth we need. Without fixing the bandwidth shortage on the wire or in the protocol... 查看全文

The Corner

04-12
Fixing Broken Windows
Okay, John I withdraw my objection!But I raise a new one. You say 'you can't arrest Wikipedia vandals.' You haven't read my program for when I am Czar. 查看全文

Kotaku

04-18
Sony Still Fixing Canadian PS3 Pricing [Canada]
You know, I could have sworn Sony fixed the problem of over-charging Canadian PS3 owners last October, but hey, maybe they didn't. Or the US dollar got even weaker against the Canadian dollar. Or - as... 查看全文

Boing Boing

04-19
Fixing the "Text entered was wrong" bug
We think we've fixed the problem that interferes with posting comments, and gives would-be commenters an error message that says:Your comment submission failed for the following reasons:Text entered w... 查看全文

Boing Boing

04-19
Fixing the "Text entered was wrong" bug
We think we've fixed the problem that interferes with posting comments, and gives would-be commenters an error message that says:Your comment submission failed for the following reasons:Text entered w... 查看全文

Jalopnik

04-19
Fixing A Volvo Weakness: Fuel Filler Relocation [24 Hours Of Lemons]
While the Black Metal V8olvo crew was working on the rear of the car, we took care of the Number One Priority immediately by installing a Fiero wing. Now, you'd think that such a wing would radiate su... 查看全文

Kotaku

04-22
Fixing Pac-Man's 256th Board [Pac-Man]
Alright, this post should make clear the provocation for yesterday's digression into Pac-Man's bathroom habits. While Fletch and I were pondering the question, we both came across this site, where pro... 查看全文
More Articles