| Comments: |
AUGH I hate not being able to load images while I'm still reading a page!
In your "better" example, the "javascript:" is not necessary (and might actually break it).
Generally I do:
<a href="actual thing" onclick="return thingy()">
And then let thingy() return whatever true/false.
Knowing Yahoo, I bet their stuff works in some (probably crappy) if you don't have JS on. You might just try turning it off. Or wait for someone to write a Greasemonkey script to fix it.
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Thu, 28-Apr-2005 3:29 PM (UTC)
| (Link)
|
I'd rather just vote with my mouse and use a different site entirely.
![[User Picture]](http://l-userpic.livejournal.com/62210385/4292459) | From: hub_ Thu, 28-Apr-2005 3:35 PM (UTC)
| (Link)
|
"a href" not "A HREF". XHTML is the future, let's comply by using the lower case :-)
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Thu, 28-Apr-2005 3:36 PM (UTC)
| (Link)
|
Fuck you.
From: rm76 Thu, 28-Apr-2005 3:40 PM (UTC)
Oddly enough | (Link)
|
I believe the onclick syntax didn't work in ns 4.x..... Only the href="javascript:" syntax.......
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Thu, 28-Apr-2005 3:42 PM (UTC)
Re: Oddly enough | (Link)
|
Wrong.
You could try BBC's " News In Pictures" which isn't bad and turns up the occasional gem, or you can fling this at greasemonkey:
// ==UserScript==
// @name YnewsDieJs
// @description No more skanky js
// @include http://story.news.yahoo.com/photos
// ==/UserScript==
(
function(){
var links = document.getElementsByTagName("A");
for( i = 0; i < links.length; i++ ) {
if ( links[i].href.indexOf("openSS") != -1 ) {
links[i].href = links[i].href.replace( "javascript:openSS('", "http://story.news.yahoo.com" );
links[i].href = links[i].href.replace( "')", "" );
}
}
}
)();
Or almost as good, page authors could actually use this code in the JavaScript behind an onload handler. Retrofitted for document.links (or served conditionally?) this would work all the way back to Netscape 3, maybe even Netscape 2.
All hail robust code!
From: zhixel Thu, 28-Apr-2005 4:08 PM (UTC)
Amen. | (Link)
|
I think with the advent of tabbed browsing and the change it has brought to people's browsing habits, window.open has jumped the shark in general. There's very few instances where I can imagine there being a good reason for a website to spawn a new window. The only one off the top of my head being for some type of verbose help while filling out a form.
Speaking of retarded window methods, sometimes I really wonder who's idea resizeTo/resizeBy and moveTo/moveBy was. Ugh.
![[User Picture]](http://l-userpic.livejournal.com/10713859/2036614) | From: editer Thu, 28-Apr-2005 6:01 PM (UTC)
Re: Amen. | (Link)
|
I don't know about that. Unless IE added tabbed browsing while I wasn't looking, a large majority of Web users haven't changed their habits. Sure, all the cool kids are using Firefox or Opera or some such, but how many is that, after all?
![[User Picture]](http://l-userpic.livejournal.com/13886128/1628836) | From: duncanmak Thu, 28-Apr-2005 4:12 PM (UTC)
Use greasemonkey to fix it? | (Link)
|
You should be able to write a greasemonkey script easily to rewrite the page back to how it used to be, right?
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Thu, 28-Apr-2005 4:13 PM (UTC)
Re: Use greasemonkey to fix it? | (Link)
|
Read before posting, dude.
![[User Picture]](http://l-userpic.livejournal.com/9624370/1571) | From: evan Thu, 28-Apr-2005 4:13 PM (UTC)
| (Link)
|
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Thu, 28-Apr-2005 4:16 PM (UTC)
| (Link)
|
Only half an hour later and already this post seems to be the biggest fucking IDIOT MAGNET I've stumbled upon in months. Which dipshit receptor did I inadvertently emit here?
From: sjn Thu, 28-Apr-2005 4:15 PM (UTC)
photos | (Link)
|
None of these are probably exactly right, at least when compared to yahoo's news photos, but here are a few I have bokmarked. First is Corbis http://pro.corbis.com/default.aspxThis is a stock photography site that is really very comprehensive and up to date. If you do a search by news (or anything else) and sort by date added you will get more than you could ever need. No registration required to look at the images. There is a watermark on them though. If you register (free if I recall) the watermarks goes away. National Geographic http://www.nationalgeographic.com/media/photography/Some really pretty shots, but it's National Geographic, so nothing really interesting/weird. New York Daily News http://www.dailynewspix.com/2.5 million photos they claim, again water marked, no idea if you can get rid of them, also images are not that big. Washngton Post http://www.washingtonpost.com/wp-dyn/content/photo/I like the size of their pictures. The content is good or bland. The biggest downside is that they do it as a flash slide show, so when I have gotten (stolen) images from them I have to do it via screen shot. On all of these, your results will of course be your own, I am usually looking for images I can use to patch another image or to use as deep back grounds. Good luck. PS: I prefer "A EhFr" but I am dyslexic
From: sjn Thu, 28-Apr-2005 4:19 PM (UTC)
Re: photos | (Link)
|
Just to reply to myself with a question, does LiveJournal always chop up URL's like above? Is it me? Is it my machine? I am seeing: http://www.washingtonpost.com/wp-dyn/coas clickable and the remainder "ntent/photo/" as regular text. Becareful clicking on links.
(1) I'm so habituated to middle-clicking Yahoo! Photos that I've done it three times today, only to realize that I have empty tabs.
(2) At least they didn't do it in Flash.
(3) Hey, have you heard of this great new thing called GreaseMonkey? It totally removes your right to complain, because you can just put in the work to make someone's site operate the way it should have in the first place, and .........
Re: 2) Great, now someone will read it and do it. :(
Just to chime in, I hate it too. I would be happy if Javascript drowned in its own vomit.
![[User Picture]](http://l-userpic.livejournal.com/23361739/604217) | From: benmarsh Thu, 28-Apr-2005 6:25 PM (UTC)
I hate this too. | (Link)
|
I don't know whether you use firefox but anyway. My solution to this problem is this extension in firefox called tab browser preferences. When javascript tries to open a new window the url comes up in a background tab instead like what happens when you middle click something.
The selection of the following options in the "tab browser preferences" extension is necessary. "Load windows diverted into tabs in the background" "Open these requested JavaScript popups in tabs. After loading the extension they can be found in Tools -> Options.
![[User Picture]](http://l-userpic.livejournal.com/704472/299078) | From: cetan Fri, 29-Apr-2005 7:15 AM (UTC)
Re: I hate this too. | (Link)
|
As a work-around, this seems to work well. JWZ will hate it. :)
Also related are sites that do <a href="#" onClick="some_crappy_popup()">, again, without returning false. Thank you for temporarily fucking up my ability to click "back".
Heh. Jwz's rant reminded me of this.
Actually, I think that applies more to the people who comment here than anything.
![[User Picture]](http://l-userpic.livejournal.com/52586670/1508713) | From: krick Thu, 28-Apr-2005 9:04 PM (UTC)
| (Link)
|
![[User Picture]](http://l-userpic.livejournal.com/26104787/6145587) | From: lohphat Thu, 28-Apr-2005 9:34 PM (UTC)
wtf? | (Link)
|
I'm still getting over jwz using the term "jumping the shark".
I feel so...so...unclean.
![[User Picture]](http://l-userpic.livejournal.com/5887295/515656) | From: jwz Fri, 29-Apr-2005 3:07 AM (UTC)
Re: wtf? | (Link)
|
We must all confront and destroy our inner Fonzie.
![[User Picture]](http://l-userpic.livejournal.com/40862522/1527861) | From: imnewtryme Fri, 29-Apr-2005 5:49 AM (UTC)
middle click!?!?!?!? | (Link)
|
holy crap I've been right-click-OpenInNewTab'ing the whole time i've used firefox my life is so much easier now! so excited.
![[User Picture]](http://l-userpic.livejournal.com/61203167/473800) | From: ronbar Fri, 29-Apr-2005 7:19 AM (UTC)
Re: middle click!?!?!?!? | (Link)
|
I think the middle-click-for-a-new-window/tab thing started in either Netscape 2 or 3 for unix/X... maybe put in there by jwz. Ever since then I've habitually middle-clicked on links whenever I've been on a machine with a middle mouse button or clickable wheel.
I was happy they kept that functionality in mozilla. It was pretty much the only reason I put up with those horrid mozilla betas in the Grueling Years, even when I had to use windows. The worst of those betas was better than Netscape 4 in unix.
![[User Picture]](http://l-userpic.livejournal.com/72515339/1523273) | From: stenz Fri, 29-Apr-2005 6:55 AM (UTC)
| (Link)
|
Ahh, that would explain why the scripts I have which feed the pool for this site have been dying every time they run. I have been too busy lately to look into it at all - but starting yesterday sometime I think they all started failing - they can no longer scrape the page I guess. Too lazy and not enough time to look into another way of grabbing the data at this point.
go to sfgate.com and click on the day in pictures. not as many as yahoo, but nice
![[User Picture]](http://l-userpic.livejournal.com/26034016/1974541) | From: d1663m Fri, 29-Apr-2005 10:29 AM (UTC)
| (Link)
|
From: gecampbell Fri, 29-Apr-2005 3:22 PM (UTC)
thanks for your suggestion | (Link)
|
I apologize that I am such an idiot, but we've adopted your suggestion and it should be live in the Yahoo! News site shortly. I apologize for any inconvenience.
From: lherrera Fri, 29-Apr-2005 3:38 PM (UTC)
Re: thanks for your suggestion | (Link)
|
That was fast.
Nice clown! Here's your cookie :) | |