Seite 1 von 1

Modding

Verfasst: Mo 20. Jul 2020, 22:13
von john Sheppard
Schiffe und Planeten moding(Offline)

Mit diese Script könne Schiffe und planeten Personalsiert werden

Instation:

https://www.tampermonkey.net

????= Deine schiffs id
!!!!= Rumpf id
IMG= deine neues schiff
bei style.width und style.height kannst du die größe einstellen
pro schiff müssen 2 scripte erstelt werden je nach code unten

Code: Alles auswählen

// ==UserScript==
// @name         ship ????
// @namespace    https://stuniverse.de/ship.php*
// @namespace    https://stuniverse.de/colony.php*
// @version      0.1
// @description  enter something useful
// @author       You
// @match        https://stuniverse.de/ship.php*
// @match        https://stuniverse.de/colony.php*
// @grant        none
// ==/UserScript==



document.querySelector('a[href="ship.php?SHOW_SHIP=1&id=????"] img[src*="/ships/!!!!.png"]').src = 'IMG';
document.querySelector('a[href="ship.php?SHOW_SHIP=1&id=????"] img[src*="IMG"]').style.width ='200px';
document.querySelector('a[href="ship.php?SHOW_SHIP=1&id=????"] img[src*="IMG"]').style.height ='50px';

Code: Alles auswählen

// ==UserScript==
// @name         ship ????img
// @namespace    https://stuniverse.de/ship.php?SHOW_SHIP=1&id=????*
// @namespace    https://stuniverse.de/ship.php?B_MOVE=1&id=????*
// @version      0.1
// @description  enter something useful
// @author       You
// @match        https://stuniverse.de/ship.php?SHOW_SHIP=1&id=????*
// @match        https://stuniverse.de/ship.php?B_MOVE=1&id=????*
// @grant        none
// @require     
// ==/UserScript==



document.querySelector('img[src*="/ships/!!!.png"]').src = 'IMG';
document.querySelector('img[src*="IMG"]').style.width ='200px';
document.querySelector('img[src*="IMG"]').style.height ='50px';

Grafiken werden unter DC Grafik Pool gesamelt

Re: Modding

Verfasst: Mi 23. Sep 2020, 06:51
von Saboti
Danke Dir für die Anleitung.
Im Firefox habe ich das auf Anhieb so hinbekommen.
Im Chrome hatte es gar nicht geklappt bei mir :(

Gruß Saboti

Re: Modding

Verfasst: Sa 12. Dez 2020, 14:58
von john Sheppard
Chrome muss ich auch mall alles installieren, vl is da was anders, ich habe dafür immer Opera genommen.

Nachtrag: Habe das mal auf crome getestet, bei mir funzt, kannst du mir den Code mal zeigen falls du ihn noch hast?