Skip to content

Instantly share code, notes, and snippets.

@adiq
Last active December 19, 2015 19:12
Show Gist options
  • Save adiq/46e094c4452ff8770029 to your computer and use it in GitHub Desktop.
Save adiq/46e094c4452ff8770029 to your computer and use it in GitHub Desktop.
LiveCoding Safari Streams Fix
// ==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