User talk:Steinsplitter/tagPersonalityRight.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

At Commons, we have wikiDOM to avoid "wild replace":

mw.loader.using('ext.gadget.libWikiDOM', function () {
	var dom = mw.libs.wikiDOM.parser.text2Obj(text),
		template2Add = '\n{{pr}}';

	if (dom.nodesByType.template) {
		dom.nodesByType.template[dom.nodesByType.template.length - 1].after(template2Add);
		text = mw.libs.wikiDOM.parser.obj2Text(dom);
	} else {
		text += template2Add;
	}
});

-- Rillke(q?) 22:00, 3 August 2013 (UTC)[reply]

Not working on Chrome anymore

[edit]

Since a few moths ago it is not working in Chrome forme anymore. I'm using Version 39.0.2171.94 (64-bit), Plattform 6310.61.0 (Official Build) stable-channel glimmer, Google_Glimmer.5216.198.11.

When I try to use it I get this error in colsole. Any ideas? Ping: Rillke. Josve05a (talk) 17:49, 12 December 2014 (UTC)[reply]

Whoo, trouble! The library throwing the issue is quite universally in use. Thanks for bringing this up! And all the details. Saved me a lot of time. Should be fixed now. -- Rillke(q?) 18:12, 12 December 2014 (UTC)[reply]
Wohoo! Thanks Rillke. Me and s/ has been talking a few times and never come up with a sulution before. Josve05a (talk) 18:20, 12 December 2014 (UTC)[reply]

Fix

[edit]

Script isn't working please replace 'editToken' with 'csrfToken'. -- CptViraj (📧) 05:38, 30 November 2019 (UTC)[reply]

@CptViraj: done. --Steinsplitter (talk) 15:15, 2 December 2019 (UTC)[reply]
Working now, Thankyou. -- CptViraj (📧) 17:10, 2 December 2019 (UTC)[reply]

Empty line

[edit]

Hello!

@Steinsplitter: I think there should be an empty line added here. Can it be fixed?Jonteemil (talk) 03:21, 20 April 2020 (UTC)[reply]