Use one bookmark to load different versions of a site

March 10th, 2010

I have several sites that I access on both my iPhone and desktop, so I like to have quick access to them via the Bookmarks Bar. However, these sites have different versions for the desktop, for mobiles, and, in some cases, yet another version for the iPhone. Usually, the full version doesn’t work so well on the iPhone, and the iPhone version is undesirable on the desktop. Instead of creating a plain bookmark, a little Javascript can make a bookmark context-sensitive, and allow you to have one bookmark that opens the right version of a page, depending on which platform you’re browsing from. The basic idea is to use some client-side Javascript to check the browser’s platform (a.k.a. operating system), and then tell the browser to …


Originally posted on Mac OS X Hints

 
  Related Posts
News: Apple Unveils WebKit2 with Split Processes (Think Stability)
News: Apple Unveils WebKit2 with Split Processes (Think Stability)
Apple’s WebKit engineers released a new version of the WebKit framework they called WebKit2. The new version of the rendering engine used by Safari and other browsers introduces a split processing model that keeps Web content in its own process. What this means in more practical language is that a Web page run amok in its own window or tab can’t... 
Apple releases Safari 5, quietly
Apple releases Safari 5, quietly
Section: Web , Web Browsers Amidst the fury of WWDC 2010 Apple news , there is one thing Apple did do quietly today and that was the release of Safari 5. The latest version touts improved performance, more powerful developer tools and greater HTML5 support—more specifically a new full screen playback mode enabled video captions. A few more... 
News: Google Highlights Pac-Man Anniversary with Web Game
News: Google Highlights Pac-Man Anniversary with Web Game
Google recognized the 30th anniversary of the classic arcade game Pac-Man on Friday by converting its online search home page into a playable version of the game. The game was built using tools such as HTML, CSS and JavaScript, so it’s playable on the iPad, iPod touch and iPhone as well as desktop and laptop computers.  Read More →
Opening saved items in new tabs in Safari 5
Opening saved items in new tabs in Safari 5
On many occasions one might want to open an item from Safari’s Bookmarks or History menus in a new tab. Like Firefox, Safari 5 offers an easy way to do so, which I have not seen listed anywhere. As is commonly known, in Safari 4 and later, if you click on a History or Bookmark Menu item while holding the Command key pressed, the bookmark... 
Apple Adds Showtimes to Movie Trailer Site
Macworld reports that Apple has added listings of showtimes to its movie trailer site, offering a slick HTML5 interface that utilizes geo-location to find theaters in your area. When you visit the page, your Web browser will a…  Read More →
Open external links in currently running browser
Open external links in currently running browser
If you are using multiple browsers, and are annoyed by Safari (or your designated preferred browser) popping up while using a different browser, this hint can remove that annoyance. I’m a web developer, and while my main browser is WebKit , I also have Opera, Chrome and Firefox installed. If I’m using Opera and click a link in Mail,... 
Apple Removes Competitor Antenna Performance Comparisons From Site
Apple has revamped the antenna performance page on its website, removing references to and videos of the performance of competitors’ smartphones in comparison to the iPhone 4. Apple launched the page after its iPhone 4 press conference to de…  Read More →
Apple’s WebKit2 will add Google Chrome-like split processes to Safari
Apple’s WebKit2 will add Google Chrome-like split processes to Safari
A new framework for the WebKit open source Web browser layout engine was revealed Thursday, bringing with it a built-in “split process model” that will keep Web content such as JavaScript, HTML and layout in a separate process in browsers such as Apple’s Safari and Mobile Safari.  Read More →
Use normal and private browsing at the same time in Firefox
Use normal and private browsing at the same time in Firefox
I had always thought that Chrome’s method of private browsing, which allows you to intermingle private and normal browsing in separate windows/tabs, was better than Safari or Firefox, which are an all-or-nothing proposition. Now Firefox, at least, can emulate Chrome’s behavior. With the Firefox add-on Private Browsing Window , the user... 
Edit Google Chrome’s ‘Other’ bookmarks
Edit Google Chrome’s ‘Other’ bookmarks
Google Chrome for Mac (in beta) doesn’t yet give you a way to mass edit bookmarks in your Other Bookmarks folder. (You can click the yellow star next to a bookmarked page once it’s loaded to edit each bookmark one at a time, but that’s tedious.) As a workaround, you can do mass edits in TextEdit (or most any other text editor).... 
  Related Tweets from Twitter
brianpeiris (Brian Peiris)  : Life with a high-DPI monitor (part 2): My favorite browsers don't support custom DPIs?! What happened to the "web on every screen" ideal?..
Updated : 2010-09-08T03:34:41Z   |  Reply  |  View Tweet
britubes (Brian O'Hagan)  : RT @mrenoch: Welcomes the class of '14 (!)... incoming students were born into a world with web browsers #eternalyouth..
Updated : 2010-09-08T03:31:13Z   |  Reply  |  View Tweet
ilusie (Lus Solis)  : Why are all my web browsers acting stupid-_-..
Updated : 2010-09-08T03:13:07Z   |  Reply  |  View Tweet
Web2N (Web 2.0 News)  : #Web2 #News | Mozilla Hopes Web Games Will Remind Us That Browsers Are Still Awesome http://w2ne.ws/5zz..
Updated : 2010-09-08T03:00:14Z   |  Reply  |  View Tweet
thermosilla (Toms Hermosilla)  : Compartiendo: Mozilla Hopes Web Games Will Remind Us That Browsers Are Still Awesome http://bit.ly/a72TLX..
Updated : 2010-09-08T02:54:03Z   |  Reply  |  View Tweet
  Related News from Digg
No comments yet.

Spam Protection by WP-SpamFree

TOP