Created
January 10, 2014 03:51
-
-
Save unRob/8346724 to your computer and use it in GitHub Desktop.
Twitter embedded timelines in a iOS webview with inertial scrolling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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