Diskussionen » Entwicklungsanfragen

Austausch von Hintergrundbildern

§
Veröffentlicht: 09.10.2015
Bearbeitet: 09.10.2015

Austausch von Hintergrundbildern

Hallo,

ich habe einen kleinen code zum ändern des Hintergrundbildes in einem Forum. Mein Problem ist das er bei Tampermonkey funktioniert aber nicht in greasemonkey was mach ich falch bzw was vergesse ich? Kann mir bitte jemand helfen? Danke ich schon mal im Voraus.

// ==UserScript==
// @name     Replace Background
// @namespace  http://localhost/
// @description   hintergrund ersetzen
// @include   http://*board.de.metin2.gameforge.com*/*
// @grant GM_addStle
//  ==/UserScript==


(function(){

GM_addStyle('body,html {background:url(http://abload.de/img/habitchesqtsdl.png)' + 'no-repeat fixed ! important;}');

})()
woxxomMod
§
Veröffentlicht: 09.10.2015

@grant GM_addStle ----------------> @grant GM_addStyle

§
Veröffentlicht: 09.10.2015

Sorry for german my english is not so goot. Thanks for the correction but its don't work on Greasemonkey only on Tampermonkey.

woxxomMod
§
Veröffentlicht: 09.10.2015
Bearbeitet: 09.10.2015

Huh, your English is excellent, especially comparing to google-TL I've used to read your first message :D

Greasemonkey is more strict/stupid and your code has two spaces in // ==/UserScript==, should be one space: // ==/UserScript==

If it won't work again, please post a URL of the page where I can test it.

§
Veröffentlicht: 09.10.2015

Realy a space? Now its work, thx. :D

Antwort schreiben

Anmelden um eine Antwort zu senden.