Last active
September 19, 2024 22:19
-
-
Save JordanPlayz158/97f52d3c00970c6d8003e9bd1e5d74e8 to your computer and use it in GitHub Desktop.
Tamper Monkey Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Pearson Nag | |
// @namespace https://gist.github.com/JordanPlayz158 | |
// @version 2024-09-10 | |
// @description Remove Pearson's Nag message about unsupported OS as aren't browsers meant to abstract the OS? And no Pearson features seem to be broken on unsupported OS | |
// @author JordanPlayz158 | |
// @match https://*.pearson.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=pearson.com | |
// @grant none | |
// ==/UserScript== | |
// https://usefulangle.com/post/356/javascript-detect-element-added-to-dom | |
const observer = new MutationObserver(function(mutations_list) { | |
mutations_list.forEach(function(mutation) { | |
mutation.addedNodes.forEach(function(added_node) { | |
if(added_node.id == 'browserCheckerMessage') { | |
added_node.remove(); | |
observer.disconnect(); | |
} | |
}); | |
}); | |
}); | |
(function() { | |
'use strict'; | |
observer.observe(document.body, { subtree: false, childList: true }); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment