update 2026-10-25 16:53:21

This commit is contained in:
action committed 2026-10-25 16:53:21 +08:00
1 parent 91f217be10
commit 7fca8e9a3a
74 files changed
+1429 -918

No files matched your search

@@ -411,7 +411,10 @@ function reassertLayerOrder() {
if (_layerStmt) _layerStmt.remove();
_layerStmt = document.createElement('style');
_layerStmt.textContent = LAYER_ORDER;
head.insertBefore(_layerStmt, head.firstChild);
/* before the first sheet, not into <head>: a document_start script (an extension) appends its
* <style> to <html> ahead of <head>, and Firefox then laid Overview out 2125px short at 390px */
const first = document.querySelector('style, link[rel~="stylesheet"]');
first.parentNode.insertBefore(_layerStmt, first);
}
function sweepViewSheets() {
@@ -449,10 +452,4 @@ return baseclass.extend({
documentPoisoned,
scopeToCurrentPage,
watchViewSheets,
/* test-only: the duplicate sweep, the fence rewrite, the owner stamp and the re-host, driven
* directly instead of through a live document walk */
dedupeViewSheets, /* fs:probe */
fenceRules, /* fs:probe */
_owner, /* fs:probe */
rehostIntoThemeLayer, /* fs:probe */
});