mirror of
https://github.com/Andre-Bzk/rin-mobile-userscript.git
synced 2026-11-15 09:33:08 +01:00
Both documents had drifted away from the repository they describe: they pointed at fixtures and a helper script that are not present, documented a local-server workflow that is no longer used, and filed one page type under the wrong view. Following them meant setting up things that cannot work while trusting claims that no longer held. The README also explained every design decision before showing a single result, so the question a reader asks first — what does this actually look like — took the longest to answer. Screenshots and a short feature list now carry that job. The reasoning stays where it is needed, next to the code. Restricting the dev loader to the live site closes a side effect that only surfaced locally: its patterns matched page names common enough that the stylesheet would have leaked into unrelated local projects. The version number existed in two places and had already drifted apart. Reading it back from the metadata block leaves one place to change it.
19 lines
760 B
JavaScript
19 lines
760 B
JavaScript
// ==UserScript==
|
|
// @name [DEV] RIN Mobile
|
|
// @namespace rin-dev
|
|
// @description Dev-Loader: laedt rin-mobile.user.js live von der Platte
|
|
// @version 2.1
|
|
// @match *://cs.rin.ru/forum/*
|
|
// @require file:///C:/Projekte/ios_safari_userscripts/rin-mobile.user.js
|
|
// @run-at document-start
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
// Der eigentliche Code steckt in der @require-Datei.
|
|
// Aenderungen dort greifen nach einem Reload der Seite.
|
|
//
|
|
// Der Loader laeuft nur auf der echten Seite. Die Fixtures unter dev/ sind
|
|
// Markup-Vorlagen fuer das jsdom-Harness, keine Seiten zum Anschauen im
|
|
// Browser — dafuer braeuchte es einen lokalen Server und passende
|
|
// @include-Zeilen, die auf localhost zu breit streuen wuerden.
|