User talk:Xenocidic/statusChanger2.js

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Soft redirect to:User talk:Xeno
This page is a soft redirect.


Small addition[edit]

I'm sorry but my knowledge of JavaScript seems to be at its limits. Would it be possible to add &action=purge to the links so that the status on the userpage and and usertalk can update? I created a modified statustop that has a button I can click on each page to refresh the status, but it would be cool if the statuschanger could just do that by itself. Hope to hear from you soon. --Kraftlos (Talk | Contrib) 04:18, 4 January 2009 (UTC)

Hrm, I apologize for the delay in answering this. Unfortunately I have to admit I'm not very good with .js myself. I only made minor changes to the script when I stole it from the previous owner =) –xeno (talk) 05:48, 23 January 2009 (UTC)

Other Skins[edit]

Is this intended to work on other skins beside monobook? Lantrix ::Talk::Contrib:: 08:57, 22 July 2009 (UTC)

Again, sorry for the late reply. I've never tried it on other skins... It should work in theory. If not you might post at Wikipedia talk:WikiProject User scripts for assistance... –xenotalk 01:10, 14 August 2009 (UTC)

Additions[edit]

I've made a few improvements to this code User:Kraftlos/statusChanger2.js, I added a link for "sleep" status which was already built into Template:Statustop. I was then presented with the problem of having the rollover text tell me "I'm sleep!". So I fixed it because I didn't want to see engrish every time I used it. Let me know if you find this modification useful! --Kraftlos (Talk | Contrib) 12:28, 23 November 2009 (UTC)

Thanks - synchronized =) –xenotalk 17:38, 18 May 2010 (UTC)

Doesn't work in IE?[edit]

It seems this script doesn't work properly in IE. I think it's because status is a keyword. Changing the line status = statusRegExp.exec(location.href)[1]; into var status = statusRegExp.exec(location.href)[1]; should fix it. Svick (talk) 15:33, 8 May 2010 (UTC)

 Done [1]. –xenotalk 17:48, 18 May 2010 (UTC)

Improvement...[edit]

you know... I think I could make this into something more intuitive, and I am not talking about the end product. But I could give it a home page. Etc. — Preceding unsigned comment added by Abc123456person (talkcontribs) 06:45, 24 February 2012 (UTC)

Legacy JavaScript[edit]

Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... ) needs to be replaced with $( ... ) or $( function() { ... } ) (depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' ); and addPortletLink needs to be called with mw.util.addPortletLink. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (etc) 22:33, 19 January 2015 (UTC)