Window.customElements unimplemented

Discussion of bugs in Seamonkey
Post Reply
zulc22
New Member
Posts: 1
Joined: September 18th, 2022, 8:13 pm

Window.customElements unimplemented

Post by zulc22 »

The Window.customElements API is unimplemented in SeaMonkey 2.53.13, specifially breaking GitHub release pages, removing the ability to view any assets (most of the time?)

Userscript fix for fixing GitHub specifically in case anyone else wants it -

Code: Select all

// ==UserScript==
// @name        Fix GH Releases for SeaMonkey
// @description zulc22, 2022. Only use if you see errors related to window.customElements in the console on GitHub. 0BSD
// @include     https://github.com/*/releases
// @version     1
// @grant       none
// ==/UserScript==

function getFragments() {
	[...document.getElementsByTagName("include-fragment")].forEach(async i => {
		if (!i.hasAttribute("loaded")) {
			src = i.getAttribute("src")
			console.log(src)
			i.innerHTML = await (await window.fetch(src)).text()
			i.setAttribute("loaded", "")
		}
	})
}

setInterval(getFragments, 1000)
frg
Posts: 1361
Joined: December 15th, 2015, 1:20 pm

Re: Window.customElements unimplemented

Post by frg »

2.53.14 and up have some more stuff in. Set dom.webcomponents.customelements.enabled and dom.webcomponents.enabled to true temporary. Helps with gitlab too and most stuff is ok. Seems they don't need shadow dom much or even for anything right now. Disable afterwards.

FRG
Post Reply