Skip to content

Commit

Permalink
fix issues caused by the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Dvorak committed Mar 18, 2017
1 parent 3aa3ecf commit 95ec825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teamup-highlight.user.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ==UserScript==
// @name TeamUp highlight
// @version 0.0.3
// @version 0.0.4
// @description highlight the current event in a teamup schedule
// @match *://teamup.com/*
// @copyright 2017+, Jan Dvorak
// @licence Creative Commons with attribution
// ==/UserScript==

new MutationObserver(
mrs => {if(mrs.some(mr => mr.addedNodes.some(node => node.nodeType === "TABLE"))) refresh;}
mrs => {if(mrs.some(mr => Array.from(mr.addedNodes).some(node => node.nodeName === "TABLE"))) refresh();}
).observe(document.body, {childList: true, subtree: true});
setInterval(refresh, 60000);
refresh();
Expand Down

0 comments on commit 95ec825

Please sign in to comment.