User talk:Topaz/Archive3

From Wikipedia, the free encyclopedia

Archive This page is an archive. Please do not edit the contents of this page. Direct any additional comments to the current talk page.

Contents

New Feature

Hello again Topaz (I am back! ;-) I have another request for you if it isn't too much. This code returns whois results when a checkuser is run. I was wondering if it is possible to modify it, so that when I click the 'block' button in my user functions tab it would display this info at the very end of the block page. And if that is possible, if it could also display the name of the host in parenthesis after the block field? I don't know how much modification would be required (particularly when requests like this are run that generate two results (the bottom should be loaded in all cases, but I am confidant that if it is possible, you are the one to do it! I can give you any element IDs you may need (I semi-know what I am doing in javascript now) Thanks, Prodego talk 20:36, 1 January 2007 (UTC)

Hm, I seem to have gone missing for a while. You can always feel free to just Special:Emailuser me if I seem to have fallen off the planet. Anyway, the first thing I'll need is a working sample of this code in action. Since I can't do a checkuser myself, I'll need another way. Ideas? If all you need to do is get the result of an http request, we might be able to home-grow a more lightweight whois library to drop in results from. ~Topaz 20:38, 18 January 2007 (UTC)
Hmm, you could host your own wiki (the Mediawiki software is free), and test it there, but that probably is too cumbersome. Obviously I don't have checkuser either, and I am not even sure it will work with a regular checkuser installation, since it is design to work with VoA's personal version(w/ picture in action). Based on the picture, it looks like the script adds to the top and bottom of the page, perhaps it might be possible to reverse engineer just enough to replicate the function on a regular page (with a manual list)? Also, I am not tied to that code, that is just the inspiration, so if you have a simpler way to do it that would be fine as well. And I didn't e-mail you because I didn't want to bother you by throwing requests at your face. You deserve your breaks, you do excellent work. Prodego talk 22:24, 18 January 2007 (UTC)
It seems to be in User:Voice of All/CheckUser/monobook.js and User:Voice of All/Specialadmin/monobook.js as well. Note the activation instructions. Prodego talk 16:56, 27 January 2007 (UTC)

Code error

My talk page

Mono book

How do I enter some thing in my Mono book? An aquaintence told me that to do a certian action I would have to enter it into my monobook. --D.H. ( T | C ) 21:05, 25 January 2007 (UTC)

Edit your monobook.js, similiar to a normal page. Cheers! Yuser31415 (Editor review two!) 21:11, 25 January 2007 (UTC)
Okay, a few of possible bugs (I'm not sure if they matter, but this is how I wrote it):
  1. You have to put "inc" (without the quotes) before each opening parenthese
  2. The spaces between the "inc"s should be deleted.
  3. There should be a closing semicolon after the last "inc".
  4. Did you do a hard refresh? Follow the instructions at the top of your monobook.js for instructions.
  5. To see the difference, you should slightly change the part of the script in your usermessagechanger.js that says 'You have <a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&redirect=no" title="User talk:'+topaz.wputil.username()+'">new messages</a> (<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&diff=cur" title="User talk:'+topaz.wputil.username()+'">last change</a>).';
    For simplicity, just change the "you" to "youu", or something else minor.
  6. Um, delete that part at the bottom of your monobook.js. It could actually mess up the script.
After doing those things, log out (or create an alternate account), edit your talk page, and log back in. The "You have new messages bar" should change. –Llama man 22:03, 25 January 2007 (UTC)
Oh, and don't link the "inc"s. –Llama man 22:07, 25 January 2007 (UTC)
Um, could you please rephrase your question, and try to stay cool? (It took me about a month to get these scripts right, and was extremely frustrating, so I know what it feels like.) –Llama man 19:43, 26 January 2007 (UTC)
Unfortunately, only administrators and yourself can edit any subpage you have ending with ".js". So I can't edit your script. My only suggestion would be to revert to the first version of your monobook; hopefully, that will work. If it still doesn't try asking Topaz about it, as I'd be stumped. –Llama man 20:29, 26 January 2007 (UTC)

What is the problem? Prodego talk 20:53, 26 January 2007 (UTC)

whistling. Actually, what you need to do is purge your page cache, which will make the page look correct. However, if the page isn't working there is something wrong with the code. Which is the case? Prodego talk 21:00, 26 January 2007 (UTC)
Click here. I removed the pre tag for you, all you need to do is click that to fix it. Prodego talk 21:04, 26 January 2007 (UTC)
Do a hard refresh of this (press ctrl-F5), and purge that page cache as well. That should fix it. Prodego talk 21:10, 26 January 2007 (UTC)
You need to do a hard refresh of User:Darkest Hour/usermessagechanger.js as well. What browser do you use? Prodego talk 21:16, 26 January 2007 (UTC)
Do you have the same DOM inspector as firefox? Prodego talk 21:19, 26 January 2007 (UTC)
OK, hold on there might be a much much easier way to do this. Prodego talk 21:28, 26 January 2007 (UTC)

Give me a new message please. Prodego talk 21:30, 26 January 2007 (UTC)

Contact Topaz. There may be something wrong with the code. Prodego talk 21:34, 26 January 2007 (UTC)


Admins talk page

Nothing now

My gurdian angel led me to the way. Hmm. How did the <pre> tags get there in the first place? I wa sraging then turned my back and they were there. Could someone be editing under my name? --D.H. ( T | C ) 20:57, 26 January 2007 (UTC)

I( do not know. Should I remove the pre tags then purge? And the Message box still stays the same even though I added diff to the end. (last change) in stead of (diff)

Still dont work...

**

Mozilla-not firefox

dunno. Cant find dom. used to know where it was.

Maybe yu should just clear it.

Hammer is sitting next to me.

Thank you

Thank you for your assistance. --D.H. ( T | C ) 21:38, 26 January 2007 (UTC)


--END OF LINE--

--D.H. ( T | C ) 21:44, 26 January 2007 (UTC)

I know that something is wrong, but I don't know what. That is the error. ;-). What is it Topaz? Prodego talk 21:46, 26 January 2007 (UTC)
Wow, I see I've got a squad of javascript bug fighters hanging out on my talk page now! I'm honored!
On Darkest Hour's monobook.js, there are square brackets in his inc() calls. They shouldn't be there. Have a look at my monobook.js and compare. ~Topaz 23:48, 26 January 2007 (UTC)
Oh yes, that would be it.... How did I miss that? :-P Prodego talk 01:53, 27 January 2007 (UTC)

Hum

What is wrong with my script? It still will not work. --D.H. • (TextMe)•(MyPage)•(MyWork)•(Escape) 23:56, 1 February 2007 (UTC)

Try changing the spaces in the inc() call to underscores. ~Topaz 02:28, 2 February 2007 (UTC)

My admin powers asplode!

My revert buttons won't work. It just says "Cannot rollback: The last editor was <>, not <>. The user may already have been reverted." no matter what I try to revert. Even on a page where it's completely impossible that someone would have rolled that back. ~ Flameviper Who's a Peach? 13:57, 2 February 2007 (UTC)

Flameviper is not an admin. I think he/she must be referring to a javascript rollback. Prodego talk 20:37, 2 February 2007 (UTC)
It is the standard 'undo' bug, a[3] needs to be a[4] in the fetch username call. Prodego talk 20:39, 2 February 2007 (UTC)
Thanks, Prodego! ~Topaz 07:52, 4 February 2007 (UTC)

What is wrong?

topaz.usermessagechanger = new Object();

/* configuration */
// this will replace the old message
topaz.usermessagechanger.newmessage = 'You have<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&redirect=no" title="User talk:'+topaz.wputil.username()+'">mail.</a> (<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&diff=cur" title="User talk:'+topaz.wputil.username()+'">read</a>).';
/* end configuration */

topaz.usermessagechanger.oldonload = window.onload;
window.onload = function() {
  if (typeof topaz.usermessagechanger.oldonload == "function") topaz.usermessagechanger.oldonload();
  var divlist = topaz.util.getobj("bodyContent").getElementsByTagName("div");
  var divid;
  if (divlist[1] && divlist[1].className=="usermessage" && (divid=1) ||
      divlist[2] && divlist[0].className=="tz-primarySection" && divlist[2].className=="usermessage" && (divid=2)) {
    divlist[divid].innerHTML = topaz.usermessagechanger.newmessage;
  }
};

I changed this to a new message. What did I do wrong. --D.H.(TextMe)•(MyWork) 21:23, 5 February 2007 (UTC)

Never mind

Clear the Wikicookies.

Go to cookie info clear the wikipedia cookie. It should say at end of session under date.

Okay wrong again

topaz.usermessagechanger = new Object();

/* configuration */
// this will replace the old message
topaz.usermessagechanger.newmessage = 'You've got<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&redirect=no" title="User talk:'+topaz.wputil.username()+'"> mail.</a> (<a href="/w/index.php?title=User_talk:'+topaz.wputil.username()+'&diff=cur" title="User talk:'+topaz.wputil.username()+'">♦</a>)';
/* end configuration */

topaz.usermessagechanger.oldonload = window.onload;
window.onload = function() {
  if (typeof topaz.usermessagechanger.oldonload == "function") topaz.usermessagechanger.oldonload();
  var divlist = topaz.util.getobj("bodyContent").getElementsByTagName("div");
  var divid;
  if (divlist[1] && divlist[1].className=="usermessage" && (divid=1) ||
      divlist[2] && divlist[0].className=="tz-primarySection" && divlist[2].className=="usermessage" && (divid=2)) {
    divlist[divid].innerHTML = topaz.usermessagechanger.newmessage;
  }
};

Could you compare mine to yours and find out what is wrong? --Darkest Hour¿? 02:02, 6 February 2007 (UTC)


Crud

I deleted it

—The preceding unsigned comment was added by Darkest Hour (talkcontribs) 02:40, 6 February 2007 (UTC).

Slow down; you deleted what? What do you want me to compare? The script you posted against my copy? ~Topaz 03:10, 7 February 2007 (UTC)

Statuschanger problem

YES I have read all the installation guides. It seems to be working well. My status is at User:Goyston/Status as planned, but when I…transclude it? Is that the right word? Anyway, when I put that page on my userpage, it loads the image as it should, and then after a half second it changes it to [[Image:Online_Lights.png]] or whatever the name of the image is. It is loading it as text! The relevant bit of my code is:

topaz.statuschanger.statuscode = {
  online:'[[Image:Online Lights.png]]',
  around:'[[Image:Around Lights.png]]',
  offline:'[[Image:Offline Lights.png]]',
  wikibreak:'[[Image:Wikibreak Lights.png]]'
};

if that helps. Thanks so much for an otherwise-fantastic script! (To see the problem IN ACTION, I have left the messed up thing on my actual user page. It's at the top, centred, in a table. =)) Goyston talk, contribs, play 04:01, 14 February 2007 (UTC)

PS: I use Firefox on a Mac, by the by. And if it is something stupid on my actual user page, you have my express permission to edit my user page to fix it. Also, my monobook.js source can be viewed here and my statuschanger.js right here if that makes your life easier. Thanks so much! Goyston talk, contribs, play 04:06, 14 February 2007 (UTC)
Update update: I just realized it works fine when I'm not signed in. As long as I'm not signed in, it appears as an image. But when I am signed in, it switches to the text. This is now just a minor annoyance, but if you have a brilliant solution, I'd be more than happy to hear it. Or even a moderately clever solution. =) Goyston talk, contribs, play 13:34, 14 February 2007 (UTC)
Note the setting in the configuration to fix this:
// this will make wikimarkup work in your stauscodes but will disable auto-updating 
topaz.statuschanger.enablewikimarkup = false;
Set that to true and you should be all set. ~Topaz 13:30, 15 February 2007 (UTC)
Woohoo! Thanks so much, Topaz! It works great now. I don't know why I didn't notice that variable before...ah well. Great work! If you don't mind, I might write up a Total Idiot's Guide to installing your scripts (of course full attributed to you, etc.). It's what I need, and I am sure there are other stupid people like me who can't follow your own (already pretty darn clear) instructions. Is that okay with you? Goyston talk, contribs, play 14:52, 15 February 2007 (UTC)
Sure! It's a wiki, after all... ~Topaz 18:38, 15 February 2007 (UTC)

Hey Topaz! I've put together The Layman's Guide To Installing The Status Changer Script for people like me who have no idea what we are doing. Hope you like it! Feel free to let me know if you think anything needs to be changed (or, of course, edit it yourself). Link to it if you want. =) Goyston talk, contribs, play 00:42, 16 February 2007 (UTC)

Inlining just the topaz.statuschanger.statuscode block is fine; otherwise, don't make a copy of sourcecode for the tutorial. Always link to the linked from my wikiscripts page - that way, everyone always grabs the most up-to-date version. Other than that, looks okay; maybe have Prodego have a look, too... ~Topaz 01:23, 16 February 2007 (UTC)
And suddenly I appear. You might want to include instructions on how to purge the server cache as well. When that is done, the page won't look messed up anymore. Prodego talk 01:31, 16 February 2007 (UTC)
You're.... kinda creepy, Prodego. Can you hear your name called an internet away? ~Topaz 01:34, 16 February 2007 (UTC)
No, no... Wait I think I hear someone on <insert other website here> calling me! Uh, I will be right back! Indeed, I see all. Prodego talk 01:38, 16 February 2007 (UTC)
Is that what you two want? I hope so! If not, just let me know. Goyston talk, contribs, play 02:47, 16 February 2007 (UTC)

Suggestion for script

Here's one I'd like: sometimes I go on mad spell-checking sprees, where I search for a common typo, like "neccessary" for "necessary". Every edit I make I have to type in to the edit summary box "typo" or "sp". I'd like a switch in the bar at the top for turning on a script that automatically sets your edit summary to "typo" or whatever. Not sure if this is at all possible, as I am no expert at js. But if it can, I wouldn't imagine it to be too hard. Also, if anybody knows of an existing tool that does this, that'd be great too! Goyston talk, contribs, play 22:58, 15 February 2007 (UTC)

I'd be more afraid of accidental incorrect edit summaries that way. It's not that much to type, and if it really becomes a problem it'd almost just be safer to put your message on the clipboard and paste it in the summary field for each save. I think it's better not to get out of the habit of putting them in. ~Topaz 23:19, 15 February 2007 (UTC)
I suppose that is a good point. *sigh* Thanks anyway! —The preceding unsigned comment was added by Goyston (talkcontribs) 00:39, 16 February 2007 (UTC).

Java Scripting

Well my status changer works fine but in the status changer monobook it looks a bit weird meaning that I have updated it but it is not in Javascript format and I still get that Ugly grey box on my pages and Pliz Lupin can You fix my Status changer for me..Thank You--Cometstyles 05:56, 16 February 2007 (UTC)

First of all, you should consider following instructions in my monobook.js that say things like
// ### do not copy below this line ###
because the things below that line are all debugging declarations. Beyond that, though, I'm not sure I understand your question. Perhaps you'll find the answer to your question in my installation manual or Goyston's Status Changer Installation tutorial. ~Topaz 13:39, 16 February 2007 (UTC)
Nahhh..Its Fixed..Only thing I cant get rid of is your Ugly Grey Warning Box. That Box doesnt appear when I use Mozilla but does with IE. I have already updated but the box doesnt want to go..--Cometstyles 06:07, 17 February 2007 (UTC)
It looks like you also have a copy of User:Flameviper's statuschanger in your monobook.js - that's probably causing problems. You're probably going to want to start over; take out the stuff you got from me and the statuschanger from Flameviper and retry following the script installation manual. ~Topaz 03:05, 18 February 2007 (UTC)
I have decided to Dump IE6 and because Iam on Windows XP Service Pack 1, I can not upgrade to IE7 even though I have the installation so I have decided to stick with Mozilla from now on becoz its faster and the screen doesnt freeze up when you use the popups (It does in IE6).Thanks Anywayz (Topaz)--Cometstyles 03:47, 18 February 2007 (UTC).

Another request

Hi Topaz, I have another one for you. I added a 'rights' tab to my 'user functions' dropdown, which loads up Special:Listusers for that user. But there is a problem. I think editlk variable gives "Joe Schmo" for User:Joe Schmo. This is then turned into "Joe_Schmo" when it is added to the url. But anyway, the user list needs the format "Joe+Schmo", and although I tried to get that output, I was unable to. Is this something that you could quickly do for me? I don't think it would be two hard, just one more variable, right? Prodego talk 17:13, 19 February 2007 (UTC)

One more argument to the function? Yeah, that'd be my guess. Show me where the function is and I'll take a look. ~Topaz 20:16, 19 February 2007 (UTC)
Right above the user functions code. Just search for 'editlk'. Prodego talk 20:21, 19 February 2007 (UTC)
I'll assume you mean your monobook.js, then... ~Topaz 20:22, 19 February 2007 (UTC)
Oh, yes. Prodego talk 20:25, 19 February 2007 (UTC)
Well, I think you should be able to just do this instead:
addlilink(userf, '/w/index.php?title=Special:Listusers&limit=1&username=' + editlk.replace("_","+"), 'rights', '');
However, I'm not sure how it'll act if the username has weird symbols in it. ~Topaz 20:28, 19 February 2007 (UTC)

Are you sure about the underscore? I think a space is encoded as a space when it is entered in URL, then once the page is loaded, it converts to an underscore (just like if you type it). But you're the expert. I will test it on User:Maury Markowitz, and my favorite pagemove vandal, User:☁. :-). Prodego talk 20:35, 19 February 2007 (UTC)

I'm not especially sure; it looked to me like it was loading the username from an href on the page - if that's the case, the username would have been pre-formatted into a URL and would include things like underscores instead of spaces. ~Topaz 20:37, 19 February 2007 (UTC)

Yes, it works, always trust the experts. And yes, seriously, ☁. It inspired me to create the page . :) Prodego talk 21:06, 19 February 2007 (UTC)

Script change for you

I upgraded User:Topaz/usermessagechanger.js to be more efficient, and not require 'wputil'. It should work, but I have not tested it. It is nice to do something for you for once :) Prodego talk 00:00, 25 February 2007 (UTC)

Yeah, I saw that mediawiki started providing those values as variables, and I've been considering changing over to that for a while. I still think it's safer to use a function there in case mediawiki decides to rename the variables out from under us later - in that case, we only have to change the code in one place (in the function) instead of everywhere they're used. ~Topaz 02:42, 26 February 2007 (UTC)
I am pretty sure they won't, they tend to keep things backwards compatible. Prodego talk 21:23, 26 February 2007 (UTC)
I would like to think so... can we at least find some document somewhere saying something about those variables so I don't feel like they're something I accidentally tripped on one day? ~Topaz 02:28, 27 February 2007 (UTC)

Another script request

On Catalan Wikipedia the policy to delete a page requests that the discussion goes to the same page of all proposed deletions: ca:Viquipèdia:Esborrar pàgines/Propostes. I am making a function to put in the wanted page the deletion advice, and then this function would create in ca:Viquipèdia:Esborrar pàgines/Propostes the corresponding declaration for somebody can discuss about its deletion or keeping. For this action I'll need a function that add the new content without deleted the old one.

For exemple:

  • Manually:
    • ca:Jordi Baijet i Vidal is an article without notability.
    • GillesV proposes it for deletion.
      1. He put in it the template {{Esborrar1|not notable}}
      2. He goes to ca:Viquipèdia:Esborrar pàgines/Propostes and there he put at the buttom of the page the {{Esborrar2|Jordi Baijet i Vidal|not notable}}
      3. And finally he must go to the page of the article creator and he put {{Esborrar3|Jordi Baijet i Vidal}}

What I want is to make a function that put in the article the {{Esborrar2}} and immediately after it modifies the content of ca:Viquipèdia:Esborrar pàgines/Propostes and it add the {{Esborrar3}} (always wiith its corresponding parametres).

I thought in a new function: topaz.wputil.addpagecontent, but my script doesnt work. Maybe you can make anything. Pasqual (ca) · CUT 19:23, 4 March 2007 (UTC)

I believe I've found the error! In this page some signatures have a syntax including an ampersand, and this breaks the function topaz.wputil.getpagecontent. For example, with the signature:
--[[User:SMP|SMP]]​·[[User talk:SMP|d]]​·<span class=plainlinks>[{{fullurl:User talk:SMP|action=edit&section=new}} +]</span> 17:02, 6 març 2007 (CET)
The reading breaks at the & sign.
I dont know how I can arrange it. Pasqual (ca) · CUT 22:41, 14 March 2007 (UTC)
That might cause a number of different problems. I'm not sure what context you're using that string in, but ampersands commonly break in XML (where they need to be written &amp;) and query strings (where they need to be written %26). ~Topaz 02:14, 15 March 2007 (UTC)
Thanks, that works fine!!! But I think that you must add on your functions the replace
  • content = content.replace(/\&/gi, "%26");
And also maybe you can change
content = content.replace(/\&amp\;/gi, "&");
by content = content.replace(/\&amp\;/gi, "%26");
Pasqual (ca) · CUT 23:04, 15 March 2007 (UTC)

Your beta

Mind if I beta test your new scripts? I would really like that. --[[ year2000prob ]] 06:45, 18 March 2007 (UTC)

I think I'll do it anyway until you answer this. —The preceding unsigned comment was added by Year2000Prob (talkcontribs) 07:23, 18 March 2007 (UTC).
Sure, I suppose. I don't even remember where I left off on that project and there are no guarantees that your computer won't go on a murderous rampage when you're using it, but if you really feel like it, by all means, go ahead. If you include my beta.js directly, keep in mind that it's a very volatile script where I do my testing and that things will start acting really weird if I'm developing while you have it directly included. ~Topaz 19:58, 18 March 2007 (UTC)
Maybe you should just edit it when you know it won't make the script any more volatile than it is now. [[ year2000prob ]] 02:27, 20 March 2007 (UTC)
Erm, could you rephrase that? Do you mean I shouldn't make changes unless I know they won't cause issues? ~Topaz 15:25, 20 March 2007 (UTC)
Exactly. And to help you with this, there's a certain bookmarklet you can use to test new functionality. --[[ year2000prob ]] 07:52, 27 March 2007 (UTC)
When I test scripts, I need to test them in Wikipedia's full environment, not a testing sandbox. That's what beta.js is for - I can throw in code and tweak it until it works. It's not a set of cutting edge of features for you to use; those would be in one of the released scripts. ~Topaz 03:44, 29 March 2007 (UTC)

What is the point of a beta release of something you know works anyway? Prodego talk 11:11, 29 March 2007 (UTC)

It's neither a release nor something I know works. It's a testbed; a development platform to write code in. ~Topaz 03:33, 19 April 2007 (UTC)

To read Special pages

Hi,

How could be the action to read a spacename like a Special page, for example to get the content of Special:Listusers/sysop, an &action=edit doesnt work. Pasqual (ca) · CUT 20:38, 22 March 2007 (UTC)

Seems &action=raw would be better then edit for regular pages. But neither work for Special pages. Prodego talk 21:21, 22 March 2007 (UTC)
Since special pages don't have a wikisource, you'd have to pull data from their HTML representations instead. The closest you'll get is &action=view and deal with what comes back through DOM manipulations. ~Topaz 02:15, 23 March 2007 (UTC)
But http://ca.wikipedia.org/wiki/Especial:Listusers/sysop&action=view doesn't show anything. Do you thing it'll be able that you include this work on your to-do, I'm not a good programmer. Pasqual (ca) · CUT 15:12, 23 March 2007 (UTC)
Use a full url: http://ca.wikipedia.org/w/index.php?title=Especial:Listusers/sysop&action=view ~Topaz 21:36, 26 March 2007 (UTC)
I have found the manner to read a Special page (see my getspecialpagecontent function). Pasqual (ca) · CUT 23:45, 9 May 2007 (UTC)

question

Can you make this into an automated version? Its only a skeleton right now. It needs some flesh to them bones! Thanks, — Darkest Hour 17:18, 29 March 2007 (UTC)

What is it supposed to automate? I see a list of regexes; what are they for? ~Topaz 03:35, 19 April 2007 (UTC)
Sounds like a job for the AWB actually. Prodego talk 19:35, 19 April 2007 (UTC)
It is but I use an ancient laptop and Firefox 1.0.6. I cant get a lot of scripts to work. Also I can't afford to buy a new computer. I was just wondering if this can be made into a script that my computer can wrap its logic around. The list is for spelling errors.  Razorclaw ⊚ 20070420200817
Why not just upgrade to the latest version of Firefox? Also, you still haven't told me what the script is supposed to do or even where the data you have came from; does it fix your spelling errors in editor boxes when you hit some special button, perhaps? Be specific. ~Topaz 21:24, 20 April 2007 (UTC)
It fixes your spelling errors in editor boxes when you hit some special button. The Data came from autowiki browser code. And I don't need it any more because I updated firefox and installed WikEd. But someone who doesen't want all the bells and whistles can use this. —The preceding unsigned comment was added by Razorclaw (talkcontribs) 15:29, 25 April 2007 (UTC).

JS quicky

I can't seem to get wgAction == 'x' to work in my monobook. I tried double quotes to be sure, but it won't work. What is wrong? Prodego talk 21:17, 20 April 2007 (UTC)

Well, it's global, so that should work just fine... which part of your monobook isn't working in particular? Try putting alert(wgAction); in front of it to see if it actually has the value you expect at that point in your code. ~Topaz 21:23, 20 April 2007 (UTC)
Warning tabs, deletion tabs, ect, anything with wgAction in the if(). The current version has double quotes, but the single quotes didn't work. I will do that. Prodego talk 21:26, 20 April 2007 (UTC)
Single and double quotes are identical in JavaScript - they exist so you can do "'" or '"' or to quote while in an onevent handler more easily (that is, without escaping). Also, your reply speed consistently frightens me. :D ~Topaz 21:28, 20 April 2007 (UTC)
So does yours, you answered in under 5 minutes, and you are way less active then I am. :). Actually, I just am constantly looking at my watchlist for noticeboard discussion, so I see your change right away. Anyway, the messages look ok to me. Prodego talk 21:30, 20 April 2007 (UTC)

Pfft. That code is a mess, I have been trying to clean it up, but... There are so many duplicate things in there. Prodego talk 21:55, 20 April 2007 (UTC)

You found the bug? You should consider modularizing your code so it's easier to keep track of... ~Topaz 17:22, 22 April 2007 (UTC)
I really should. (and yes, that was it). I am afraid I will break more then I will fix though. Prodego talk 00:36, 24 April 2007 (UTC)
Do a small modularization test to play with it and get comfortable with how it works before you chop all of your code up into modules. In the end, files you include using my method just end up in the global namespace anyway, so you shouldn't break much. (This is why my modules each live in their own Object.) Once you're comfortable with things, slowly move things into their own boxes. It'll probably be worth it in the end. ~Topaz 20:54, 24 April 2007 (UTC)
Thanks for the advice. One last thing though, could you create some javascript that, given a string (the title of a page) will check if it matches an IP form? I can't quite manage the seperations at the periods part. It would check that the beginning to period 1, periods 1-2, period 3 to the end, are all numbers between 1 and 255. Sorry to bother you, Prodego talk 22:26, 4 May 2007 (UTC)
Got it! It could be a lot nicer I am sure, but it works! Prodego talk 23:59, 4 May 2007 (UTC)
Have a read about Javascript regular expressions. They'll make your string-parsing live a million times easier. ~Topaz 04:08, 7 May 2007 (UTC)

Orphaned non-free image (Image:Ub-voads.png)

Thanks for uploading Image:Ub-voads.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-princesstutu.png)

Thanks for uploading Image:Ub-princesstutu.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-nausicaa.png)

Thanks for uploading Image:Ub-nausicaa.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-mononoke.png)

Thanks for uploading Image:Ub-mononoke.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-kino.png)

Thanks for uploading Image:Ub-kino.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-hellsing-seras.png)

Thanks for uploading Image:Ub-hellsing-seras.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-haibanerenmei.png)

Thanks for uploading Image:Ub-haibanerenmei.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-hacksign.png)

Thanks for uploading Image:Ub-hacksign.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-cowboybebop-ed.png)

Thanks for uploading Image:Ub-cowboybebop-ed.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:07, 14 May 2007 (UTC)

Orphaned non-free image (Image:Ub-azumangadaioh.png)

Thanks for uploading Image:Ub-azumangadaioh.png. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'image' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "Image" from the dropdown box. Note that any non-free images not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. BetacommandBot 01:08, 14 May 2007 (UTC)