Last active
February 20, 2026 17:43
-
-
Save hjdarnel/e39f47019f9397cc6563e2fc69ed1dc3 to your computer and use it in GitHub Desktop.
Removes the Bill of Materials section from MakerWorld model pages.
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 MakerWorld Remove Bill of Materials | |
| // @namespace https://github.com/hjdarnel | |
| // @version 1.0 | |
| // @description Removes the Bill of Materials / materials parts section from MakerWorld model pages | |
| // @author hjdarnel | |
| // @icon https://makerworld.com/favicon_new.png | |
| // @match https://makerworld.com/*/models/* | |
| // @updateURL https://gist.github.com/hjdarnel/e39f47019f9397cc6563e2fc69ed1dc3/raw/remove-bom-makerworld-models.user.js | |
| // @downloadURL https://gist.github.com/hjdarnel/e39f47019f9397cc6563e2fc69ed1dc3/raw/remove-bom-makerworld-models.user.js | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| (function () { | |
| "use strict"; | |
| function removeBOM() { | |
| const elements = document.querySelectorAll("[data-trackid]"); | |
| for (const el of elements) { | |
| if (el.getAttribute("data-trackid").endsWith("materialsPartImpression")) { | |
| el.remove(); | |
| } | |
| } | |
| } | |
| // Run immediately for anything already rendered | |
| removeBOM(); | |
| // MakerWorld is an SPA - observe for dynamically added elements | |
| const observer = new MutationObserver(removeBOM); | |
| observer.observe(document.body, { childList: true, subtree: true }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment