Skip to content

Instantly share code, notes, and snippets.

@hjdarnel
Last active February 20, 2026 17:43
Show Gist options
  • Select an option

  • Save hjdarnel/e39f47019f9397cc6563e2fc69ed1dc3 to your computer and use it in GitHub Desktop.

Select an option

Save hjdarnel/e39f47019f9397cc6563e2fc69ed1dc3 to your computer and use it in GitHub Desktop.
Removes the Bill of Materials section from MakerWorld model pages.
// ==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