/**
* SPDX-License-Identifier: CC0-1.0
*
* Copyright (C) 2025 Woj. Kosior <koszko@koszko.org>
*/
/*
#+begin_src manifest-jq
.matches = ["https://amso.eu/*", "https://amso.pl/*"]
#+end_src
*/
if (false) { /* #+begin_src background-js */
blockJsOnUrl("https://amso.eu/*", "https://amso.pl/*");
} /* #+end_src */
/* Make some dynamically-loaded images work and remove non-functional menu with
* preloader. This is just to allow comparing offers, no support for purchasing
* (but they seem to respond to email inquiries and one should be able to
* purchase this way). */
for (const source of document.querySelectorAll("source[data-srcset]"))
source.srcset = source.getAttribute("data-srcset");
for (const img of document.querySelectorAll("img[data-src]"))
img.src = img.getAttribute("data-src");
for (const brokenMenu of document.querySelectorAll("section.additional_menu"))
brokenMenu.remove();