Archive for category Browsers

iPhone Scroll To bookmarklet

Do you also get tiered of flickering your finger to scroll up and down loooong web pages? I was, so I wrote this JavaScript bookmarklet to do it for me. It enables you to enter a %-value where to (vertically) scroll on the page.

How to use it:

Just add and save a bookmark on any page. Open it for edit. Name it “Scroll to …” (or what ever) and paiste the JavaScript code below into the URL field.

javascript:window.scroll(window.pageXOffset,(prompt(%22Scroll%20to%20...%20(0-100)%22)/100)*document.body.clientHeight);

To use it, just select the bookmark from the bookmarks menu, enter a value between 0-100 (where 0 is the page top and 100 is the page bottom) into the prompt and hit OK.

Happy scrolling!

, , ,

1 Comment

iPhone view source

For you who are a web developer and would like to be able to “view source” on a web page with your iPhone Safari.
Create a bookmark. Edit it and paise the code below in the location field. Then when you want to use it, just click the bookmark, and you’ll get the source. Super easy!!

javascript:var%20sourceWindow%20%3D%20window.open%28%27about%3Ablank%27%29%3B%20%0Avar%20newDoc%20%3D%20sourceWindow.document%3B%20%0AnewDoc.open%28%29%3B%20%0AnewDoc.write%28%27%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20%27%20%2B%20document.location.href%20%2B%20%27%3C/title%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E%27%29%3B%20%0AnewDoc.close%28%29%3B%20%0Avar%20pre%20%3D%20newDoc.body.appendChild%28newDoc.createElement%28%22pre%22%29%29%3B%20%0Apre.appendChild%28newDoc.createTextNode%28document.documentElement.innerHTML%29%29%3B

,

No Comments

Save IE6

Here is another funny website by people that are trying to “save” IE6. And they list lots of good reasons why to use it.

Check it out at Save IE6.

,

No Comments

How to crash IE6 with 11 characters

Here is how tarible IE6 is.  You can make it crash by simply adding these 11 chars in you code.

<STYLE>@;/*

Nice! Find more on how to make IE6 and IE7 crash on Cats Who Code.

, ,

No Comments