It appears that the web page is AJAX-driven, which means you will need to utilize AJAX-aware techniques to handle it effectively. For example, consider using waitForKeyElements, MutationObserver
, or similar methods.
Below is a comprehensive script that should address this issue:
// ==UserScript==
// @name _Remove a select class from nodes
// @match *://app.hubspot.com/reports-dashboard/*
// @match *://app.hubspot.com/sales-notifications-embedded/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
//- The @grant directive is needed to restore the proper sandbox.
console.log ("Do you see this?");
waitForKeyElements (".disable-stream", removeDSclass);
function removeDSclass (jNode) {
console.log ("Cleaned node: ", jNode);
jNode.removeClass ("disable-stream");
}
It's important to note the presence of two @match
statements due to the nodes being located within an iframe.