Hides the annoying bazaar descriptions
目前為
// ==UserScript==
// @name Hide Bazaar Banners
// @version 1.0
// @description Hides the annoying bazaar descriptions
// @author Weav3r [1853324]
// @match https://www.torn.com/bazaar.php*
// @run-at document-start
// @namespace https://greasyfork.org/users/1132291
// ==/UserScript==
(function() {
'use strict';
function removeElement() {
const element = document.querySelector('.editor-content.segment___WhZ5E.noPadding___pvSVH .description___D99uc.unreset blockquote');
if (element) {
element.remove();
}
}
const observer = new MutationObserver((mutations) => {
mutations.forEach(() => {
removeElement();
});
});
observer.observe(document.documentElement, {
childList: true,
subtree: true
});
removeElement();
})();