From 8a178c1384d47e90462f1e238bc6858e6fd2f60d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 23 Mar 2013 19:14:00 +0100 Subject: [PATCH] Stop page from refreshing if audio/video is active --- raitv.user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/raitv.user.js b/raitv.user.js index 5169914..67e7614 100644 --- a/raitv.user.js +++ b/raitv.user.js @@ -133,6 +133,10 @@ mmP = dataP.getMonth() + 1 + "-"; aaaaP = 1900 + dataP.getYear(); + // prevent page from refreshing, the site only checks for + // the existence of object/embed, not audio/video + window.refreshByJS = false; + // stop loading any current audio/video if (sch.firstChild && sch.firstChild.src) { console.log('stopping current A/V'); @@ -179,6 +183,10 @@ mmP = dataP.getMonth() + 1 + "-"; aaaaP = 1900 + dataP.getYear(); + // prevent page from refreshing, the site only checks for + // the existence of object/embed, not audio/video + window.refreshByJS = false; + // stop loading any current audio/video if (sch.firstChild && sch.firstChild.src) { console.log('stopping current A/V'); -- 2.32.0.93.g670b81a890