Colin Harrington

Tag: iPhone

Greasemonkey + live.gizmodo.com

by Colin on Mar.17, 2009, under General

iphone2The Keynote for iPhone 3.0 just got over and I thought I should share a tiny greasemonkey script that I put together to reload http://live.gizmodo.com/ much sooner than the 90 seconds that one would wait.

It is too bad that macrumorslive.com is out of buisiness since they got hacked this past January.  Their application wasn’t too hard to mashup either.  It was simply changing a timout var in one version and then changing an obfuscated function later.

So the Greasemonkey script is really a breeze, it simply loads jQuery, hides the banner/space-waster and sets a timer to reload the page after 15 seconds (15000 milliseconds…) 

// ==UserScript==
// @name           live.gizmodo.com
// @namespace      live.gizmodo.com
// @description    live.gizmodo.com
// @include        http://live.gizmodo.com/
// ==/UserScript==

// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);

// Check if jQuery's loaded
function GM_wait() {
    if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();

// All your GM code must be inside this function
function letsJQuery() {
	$('#header_container').hide()
    setTimeout(function(){ window.location.reload(true);}, 15000);
}
1 Comment :, , more...

Silverlight on the iPhone Hints?

by Colin on Mar.06, 2008, under RIA, Silverlight

As Mix ‘08 is currently going on.  Scott Guthrie said something that peaked my interest.

He basically said that

"Our goal is to try to get it on as many mobile devices and allow you to just take advantage of it umm with a variety of different clients… Everything that has an SDK"

He was very hesitant when he said it.  Did he allude to Silverlight iPhone??  The timing is impecable.  He said this on Wednesday March 5th 2008, where the Apple event is today March 6th 2008.

You can view what he said by accessing http://wm.istreamplanet.com/customers/ms/750_microsoft_mix_080305.asx in Windows Media Player or VLC or other compatible player.  He said it at 2:26:00

I wonder if Adobe has something between Desktop Flash and Flash Lite?  I would still like to see flash on the iPhone, Maybe the iPhone SDK will allow that?

Only time will tell…

 

Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!