NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Low-Tech Magazine Solar Fixer // @description Removes the obnoxious battery-indicator background coloring from Low-Tech Magazine's otherwise cool solar-powered website. // @version 0.1.1 // @license MIT // @updateURL https://openuserjs.org/meta/Cbhack/Low_Tech_Magazine_Solar_Fixer.meta.js // @grant none // @include https://solar.lowtechmagazine.com/* // @include http://solar.lowtechmagazine.com/* // ==/UserScript== // ==OpenUserJS== // @author Cbhack // ==/OpenUserJS== var batt_element = document.getElementById("battery"); var batt_remove = function (mutation_list, batt_observer) { for (var mutation of mutation_list) { if (mutation.target.style.backgroundColor !== "transparent") { mutation.target.style.backgroundColor = "transparent"; } } } var batt_observer = new MutationObserver(batt_remove); var batt_observer_config = {attributes: true, attributeFilter: ["style"]}; batt_element.style.backgroundColor = "transparent"; batt_observer.observe(batt_element, batt_observer_config);