Last active
December 19, 2015 19:12
-
-
Save adiq/46e094c4452ff8770029 to your computer and use it in GitHub Desktop.
LiveCoding Safari Streams Fix
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
// ==UserScript== | |
// @name LiveCoding Safari fix | |
// @namespace http://adiq.eu | |
// @version 0.1 | |
// @description fixes livecoding.tv on Safari | |
// @run-at document-start | |
// @author Adrian Zmenda | |
// @match https://www.livecoding.tv/* | |
// @grant none | |
// ==/UserScript== | |
window.intervals = new Array(); | |
window.oldSetInterval = window.setInterval; | |
window.setInterval = function(func, interval) { | |
window.intervals.push(oldSetInterval(func, interval)); | |
} | |
// Remove all intervals on page | |
window.setTimeout(function() { | |
for (var interval in window.intervals) { | |
window.clearInterval(interval); | |
} | |
}, 4000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment