Skip to content

Instantly share code, notes, and snippets.

@unRob
Created January 10, 2014 03:51
Show Gist options
  • Select an option

  • Save unRob/8346724 to your computer and use it in GitHub Desktop.

Select an option

Save unRob/8346724 to your computer and use it in GitHub Desktop.
Twitter embedded timelines in a iOS webview with inertial scrolling
/* MEGA 3133T H4X0R */
var to = null;
var twitterReady = function(){
if (window.frames.length < 2) {
return false;
}
clearInterval(to);
to = null;
s = window.frames[0].document.createElement('style');
console.log('ready');
s.textContent = "div.stream {-webkit-overflow-scrolling: touch;overflow-y:scroll}";
window.frames[0].document.head.appendChild(s);
// I repeat myself when under stress
// I repeat myself when under stress
// I repeat myself when under stress porque webkit y fuck you, that's why.
s.textContent = "div.stream {-webkit-overflow-scrolling: touch;overflow-y:scroll}";
}
to = setInterval(twitterReady, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment