Skip to content

Instantly share code, notes, and snippets.

@clintecker
Created June 10, 2010 23:43
Show Gist options
  • Save clintecker/433823 to your computer and use it in GitHub Desktop.
Save clintecker/433823 to your computer and use it in GitHub Desktop.
<script type="text/javascript" charset="utf-8">
if(navigator.geolocation && navigator.vendor.indexOf('Apple') !== -1) {
// Safari 5 added geolocation, so any Apple browser including it
// would have Reader. Yeah I know this also catches MobSaf too.
var meanies = document.createElement('p');
meanies.style['position'] = 'absolute';
meanies.style['left'] = '-10000px';
meanies.innerHTML = 'I can make you see things in Safari Reader :) <img src="http://clintecker.com/thumbsup.jpg" /> <object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/GEXn_8FG75Q&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GEXn_8FG75Q&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>';
var article = document.getElementById('article');
article.insertBefore(meanies, article.firstChild);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment