mirror of
https://github.com/Andre-Bzk/rin-mobile-userscript.git
synced 2026-11-15 15:43:07 +01:00
docs: point loader path at the renamed project folder
The project directory no longer carries the name it had when the loader was written. A @require that does not resolve makes Tampermonkey skip the script silently, which is indistinguishable from it never having been installed — so a stale path here costs a debugging session before anyone suspects the path. The README carried the same path in its setup instructions, and its title still described a collection of scripts rather than the single one that remains.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# iOS Safari Userscripts — cs.rin.ru
|
||||
# RIN Mobile — cs.rin.ru for iOS Safari
|
||||
|
||||
[English](#english) | [Deutsch](#deutsch)
|
||||
|
||||
@@ -89,7 +89,7 @@ Tampermonkey.
|
||||
The loader in `dev/` references the script by **absolute path**:
|
||||
|
||||
```js
|
||||
// @require file:///C:/Projekte/ios_safari_userscripts/rin-mobile.user.js
|
||||
// @require file:///C:/Projekte/rin-mobile-userscript/rin-mobile.user.js
|
||||
```
|
||||
|
||||
This path is hardcoded and only valid on the machine it was written for. After
|
||||
@@ -97,7 +97,7 @@ cloning the repository or moving the project folder, adjust the `@require` line
|
||||
in `dev/rin-mobile.dev.user.js` to your own location.
|
||||
|
||||
Use forward slashes and the `file:///` prefix, including the drive letter —
|
||||
`file:///D:/projects/ios_safari_userscripts/rin-mobile.user.js`. A `@require`
|
||||
`file:///D:/projects/rin-mobile-userscript/rin-mobile.user.js`. A `@require`
|
||||
that cannot be resolved causes Tampermonkey to skip the script **entirely and
|
||||
without an error message on the page**, which looks exactly like the script not
|
||||
being installed at all.
|
||||
@@ -288,7 +288,7 @@ laden — keine Neuinstallation in Tampermonkey nötig.
|
||||
Der Loader in `dev/` verweist mit einem **absoluten Pfad** auf das Script:
|
||||
|
||||
```js
|
||||
// @require file:///C:/Projekte/ios_safari_userscripts/rin-mobile.user.js
|
||||
// @require file:///C:/Projekte/rin-mobile-userscript/rin-mobile.user.js
|
||||
```
|
||||
|
||||
Dieser Pfad ist fest eingetragen und gilt nur auf dem Rechner, für den er
|
||||
@@ -297,7 +297,7 @@ Projektordners muss die `@require`-Zeile in `dev/rin-mobile.dev.user.js` auf den
|
||||
eigenen Ablageort angepasst werden.
|
||||
|
||||
Dabei Schrägstriche und das Präfix `file:///` inklusive Laufwerksbuchstaben
|
||||
verwenden — `file:///D:/projekte/ios_safari_userscripts/rin-mobile.user.js`.
|
||||
verwenden — `file:///D:/projekte/rin-mobile-userscript/rin-mobile.user.js`.
|
||||
Ein `@require`, das nicht aufgelöst werden kann, führt dazu, dass Tampermonkey
|
||||
das Script **komplett und ohne Fehlermeldung auf der Seite** überspringt. Das
|
||||
sieht exakt so aus, als wäre gar kein Script installiert.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// @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
|
||||
// @require file:///C:/Projekte/rin-mobile-userscript/rin-mobile.user.js
|
||||
// @run-at document-start
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
Reference in New Issue
Block a user