I am very new to CSS and javascript, so take it easy on me.
I am trying to remove the class disable-stream
from each of the div elements under the div class="stream-notifications". (See image, below)
I have tried the following in Tampermonkey, but it doesn't seem to work:
(function() {
'use strict';
disable-stream.classList.remove("disable-stream");})();
Use something like this using jQuery
Plunker demo
That looks to be an AJAX-driven web page, so you need to use AJAX-aware techniques to deal with it. EG waitForKeyElements, or
MutationObserver
, or similar.Here's a complete script that should work:
Note that there are two
@match
statements because the nodes, that the OP cared about, turned out to be in an iframe.