refactor: merge the two userscripts into one

The list script matched the whole forum, thread pages included, and injected its
stylesheet there before bailing out of its own build. Both stylesheets were
therefore live on every thread, and rules sharing a class name resolved by
userscript load order rather than by intent — a layout that could differ between
two machines with the same files installed. One of those clashes was already
costing the clearance behind the fixed bar.

A single script picks its view from the page type instead, which turns the
shared class namespace from a hazard into a plain fact of the file, resolved
with a modifier on the root element. Pages outside either view now stay
untouched, where before they still received a full stylesheet.

Two things the merge brought to light: the global image rule was overriding the
avatar dimensions, which only went unnoticed because square avatars happen to
scale to the same result, and a zero-width space had been sitting in the source
as a literal character rather than an escape.

Installations carrying the old thread script have to remove it; the remaining
one keeps its name and updates in place.

Claude-Session: https://claude.ai/code/session_0158owAAsXAfFiT3hGkQt1Xk
This commit is contained in:
Andre
2026-08-02 14:24:29 +02:00
parent bd4fc85d38
commit eff957ed07
6 changed files with 634 additions and 665 deletions
+3 -1
View File
@@ -2,10 +2,12 @@
// @name [DEV] RIN Mobile
// @namespace rin-dev
// @description Dev-Loader: laedt rin-mobile.user.js live von der Platte
// @version 1.0
// @version 2.0
// @match *://cs.rin.ru/forum/*
// @include http://localhost:*/*viewforum*
// @include http://127.0.0.1:*/*viewforum*
// @include http://localhost:*/*viewtopic*
// @include http://127.0.0.1:*/*viewtopic*
// @require file:///C:/Projekte/ios_safari_userscripts/rin-mobile.user.js
// @run-at document-start
// @grant none