From a448c7d22d057b9cbd4309ad4347186ae99cbd08 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 14 Apr 2016 12:01:22 +0800 Subject: [PATCH] domains/coconuts.co.js --- domains/coconuts.co.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/domains/coconuts.co.js b/domains/coconuts.co.js index 89113d5..7326ad6 100644 --- a/domains/coconuts.co.js +++ b/domains/coconuts.co.js @@ -50,13 +50,20 @@ } // now we are dealing with non-print styles... - var newsheet = ''; var ar = document.styleSheets[ss].rules; if (!ar) { + if (node.nodeName == 'STYLE' ) { + node.innerHTML = ''; + continue; + } + node.setAttribute('href' , ''); continue; } + var newsheet = ''; + + for(i=ar.length-1; i > -1; i--){ if(ar[i].cssText.indexOf("@media") < 0 ) { continue; -- 2.39.2