letsgetrandy / DICSS

Directly injected CSS
http://letsgetrandy.github.io/DICSS/
MIT License
1.35k stars 72 forks source link

Doesn't pull out #66

Open noway opened 7 years ago

noway commented 7 years ago

pullOut doesn't seem to work. Have to resort to this hack:

        var times = document.getElementById('dicss_wrapper').sheet.rules.length
        for (var i = 0; i < times; i++) {
          try {
            document.getElementById('dicss_wrapper').sheet.removeRule(0) // remove rule works better on IE i guess
          } catch(e) { }
        };