User talk:Ais523/Archive 13

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

I'm not sure if this script is working properly for me. I get the "parse" link when I view the source of {{Film}}, but not when I try to edit {{Film/sandbox}}. Any ideas? PC78 (talk) 15:48, 28 March 2009 (UTC)

Ah wait, I see. I have to click "Show preview" before I get the parse link. PC78 (talk) 15:53, 28 March 2009 (UTC)

Category watchlist

Just a quick question about your very handy user script for adding categories to a watchlist — should it be picking up categories that carry the {{hidden}} tag, or does it not recognize those? Thanks, Mlaffs (talk) 16:41, 9 April 2009 (UTC)

It depends on the categorylinks table, which I think includes hidden links, but I'm not sure. Make sure you bypass your cache (or delete temporary internet files if on IE); that seems to solve most problems with catwatch. --ais523 20:46, 9 April 2009 (UTC)

Whenever there's no change in the watchlisted pages (or no watchlisted pages at all) "watchlistnotifier can't determine whether a watched page has changed" is displayed every time. Is that by default? Can no message be displayed if there's no change? -- Mentifisto 22:16, 15 April 2009 (UTC)

Script

Hi; can I draw your attention to this – a MW update has rendered one of your very useful scripts unoperative. Thanks! ╟─TreasuryTagChancellor of the Duchy of Lancaster─╢ 12:13, 15 June 2009 (UTC)

User:Ais523/adminrights.js color over-ride only partially working

Re: this script ... in my monobook.css file, I have a different color selected for the highlighting to be something other than cyan. However, the code doesn't seem to completely work. It does override for some links - but not for all links. Any idea why this may be the case? It's odd to see about half the links in cyan and the other hald in a different color that I selected. --- Barek (talkcontribs) - 17:27, 19 June 2009 (UTC)

Watchlistnotifier

It appears that I am running into problems with your watchlistnotifier.js when adding categories with HotCat. As part of processing the category addition, it's popping up a dialog box that has to be clicked away before it finishes, and the text of the dialog box seems to be referring to your script. I'm working on a Mac, and the problem has only started occurring since the Safari upgrade to v4.0 (now 4.0.1). I do have a screenshot of the dialog box in a tiff file that I could send you if it would be helpful. Mlaffs (talk) 21:50, 21 June 2009 (UTC)

The clock

What an awesome clock you have! I want to include it to my shop. Do you make more designs of clocks? Maybe you´re interested in a free shoutbox. - Damërung ...ÏìíÏ..._Ξ_ . --  19:51, 24 June 2009 (UTC)

Deletion of the Anoka Abeyrathne page

I think the page should be reinstated. i found a link the festival mentioned.

www.dailynews.lk/2004/02/05/fea05.html

Hamsterlives (talk) 07:15, 7 July 2009 (UTC)

It has suddenly stopped working on my computer can you help? -- Patchy1(talk) 07:37, 16 June 2009 (UTC)

I also have had some recent difficulty with the script. Any insight? ./zro (⠠⠵) 22:00, 14 July 2009 (UTC)
I have edited the script and restored functionality. My seemingly funcitonal version resides here. I dont REALLY know what im doing, but i think it works. Seems that the "stubtagmenurender" funciton was looking for an index in the string response text to display th eloading message. I changed this to check the response state. Also, the string it was looking for (and also splitting on) seems to have changed, which was what i think was breaking it. The response text is not in a plain "<text>" node, but rather the text node contains the property 'xml:space="preserve"'. There are likely better solutions that the one i implemented but funcitonality is restored until i or some one smarter can look a tit again. Let me know. ./zro (⠠⠵) 00:54, 15 July 2009 (UTC)

Adminrights

I made a minor modification to your script to work with https: User:Plastikspork/adminrights.js. If you want the diff, the first version is a cut-and-paste of your script. Thanks! Plastikspork (talk) 01:26, 16 July 2009 (UTC)

Spam links (2)

Dear Sir,

I have received a message from you informing me of the deletion of 'spam links' inserted by me and am very distressed by being termed as such. I think it only proper to clarify my actions as well as know how I can add links without running foul of Wikipedia policy which I can assure you I respect as much as anybody. My goal is to to make quality content available free for use, very much in line with your 'copyleft policy' of which I stronly advocate. I also intend to upload content onto Wikipedia in the near future.

Mine is a personal website on themes on India and "Paintings on Stamps'(Art and Philately being my passion). It is my endevour to make my site an educational reference site, and therefore have taken care to add content from really authentic sources.

You must be aware than content on India and Philately is still very scarce on the internet and needs to be seen in that context. I request you to see my site in detail and then decide if it is unique, different and detailed enough to merit a link. I have added links when I have felt that it genuinly adds value and information from another angle on the page thay are placed on

I do agree that the links that I have added are from my personal site which also bring in more persons to read my contents but that is not the only reason nor the primary one.Although the site has Ads from Google, Amazon, let me assure you the income is very secondary and anyway hardly covers my hosting cost.

While I respect your policy not to make Wikipedia a collection of links and endorse it, I think it would be a mistake to 'throw the baby out with the bath tub'. There must be a way to add genuine links after due scrutiny by experienced editors (as in the case of DMOZ). Please do tell me how I can do so without running foul with Wikipedia policy.

Please get the spam tag off even if it means removing all my links, which I have done without fully understanding Wikipedia policy

I shall be grateful for your time and advice on the matter.

With kind regards,

ID:Vstata timestamp for archivebot 10:08, 8 September 2009 (UTC)

How to make a new signature if you're a new user?

timestamp for archivebot 10:08, 8 September 2009 (UTC)

Tool to see specific revisions the user created?

I noticed your wonderful tool you have on editors contributiuons, and I added to my account.

I am looking for a tool that returns "the specific revisions the user created". Is there a tool for this? Most tools I have found can return the editor's edit summary, time of edit, but I am also interested in the collecting the specific revisions the user created. Thank you. Rumpsenate (talk) 18:04, 24 July 2009 (UTC)

Adminrights

You might not have noticed but, it appears that a new skin is being beta-tested to replace Monotype. Unfortunately, it appears that the Adminrights script doesn't work well on Vector, the beta skin. — The Hand That Feeds You:Bite 19:27, 7 August 2009 (UTC)

Ditto for catwatch, doesn't work at all--Jac16888Talk 01:05, 8 August 2009 (UTC)
Never mind. You'd never guess I was doing a degree on this stuff--Jac16888Talk 01:21, 8 August 2009 (UTC)

Edit Counter

Hi Ais523,

Just wanted to let you know there might be some kind of incompatibility problem with your edit counter and Twinkle. For a long time I'd been having problems with Twinkle – things would freeze whenever I tried to use the restore function or one of the rollback functions. That had been true across multiple versions of Firefox and on different computers. Today I removed the line about your counter from my monobook.js page [1], and I found Twinkle began working correctly again [2].

On the other hand, I'm still having problems with NICE, so it's possible there's some kind of underlying problem with my account. Adrian J. Hunter(talkcontribs) 05:59, 2 September 2009 (UTC)


Speedy deletion of Template:Afd2 new

A tag has been placed on Template:Afd2 new requesting that it be speedily deleted from Wikipedia. This has been done under section T3 of the criteria for speedy deletion, because it is a deprecated or orphaned template. After seven days, if it is still unused and the speedy deletion tag has not been removed, the template will be deleted.

If the template is intended to be substituted, please feel free to remove the speedy deletion tag and please consider putting a note on the template's page indicating that it is substituted so as to avoid any future mistakes ({{transclusionless}}).

Thanks. Plastikspork ―Œ(talk) 15:45, 31 October 2009 (UTC)

Watchlist notifier

Hey, Ais523. Regarding your watchlist notifier script; would it be possible to include the name of the user who made the change? Something like "Title" changed by "user": "summary". I use this very frequently with my Arbitration Committee work, and it's often helpful to know who's recently commented at a glance so I know if it's something I need to deal with immediately. Thanks! Hersfold (t/a/c) 04:27, 2 November 2009 (UTC)

I usually do anyway, but this should still help at a glance. Thanks a lot! Hersfold (t/a/c) 15:04, 3 November 2009 (UTC)

apolagie

i am sorry for rouning peoples pages. —Preceding unsigned comment added by 68.196.220.187 (talk) 21:10, 3 November 2009 (UTC)

For some strange reason, User:Ais523/highlightmyname.js removes all, partial, or no content within the edit textbox when editing certain pages. This occurs using Firefox 3.5 with the Monobook,modern or beta skins. Thanks, ContinueWithCaution (talk) 22:30, 27 November 2009 (UTC).

I see you are aware of this. Maybe a note should be placed in the scirpt? ContinueWithCaution (talk) 22:48, 27 November 2009 (UTC)

Spam?

Hello,

Thank you for helping me get used to Wikipedia with helpful comments. I noticed you marked some things as Spam that I contributed today. My goal was to improve and update the information on pages regarding displays based on my knowledge from the industry and recent reports I've seen. I am not an employee of DisplaySearch and am unsure why my contributions were marked as spam and promotional.

Would you please help explain or tell me how I can contribute recent information without marking it as promotional or spam?

Much appreciated Carolyn Lowe —Preceding unsigned comment added by Carolynlowe (talkcontribs) 22:03, 30 November 2009 (UTC)

RfD nomination of External links

I have nominated External links (edit | talk | history | protect | delete | links | watch | logs | views) for discussion. Your opinions on the matter are welcome; please participate in the discussion by adding your comments at the discussion page. Thank you. Gavia immer (talk) 19:34, 2 January 2010 (UTC)

Adminrights script

Will you add a bureaucrat tag to the script as well? ···日本穣? · 投稿 · Talk to Nihonjoe 00:52, 3 January 2010 (UTC)

Bracket Matching

Hey there - thanks so much for the bracket matching script. I think it's exactly what I need for a wiki I am maintaining.

I cannot, however, seem to get it working. Is there a special trick to making work on a non-wikipedia wiki?

If you have a chance, please respond to justin@justinholmes.com. Again, thanks so much. —Preceding unsigned comment added by RadicalHarmony (talkcontribs) 18:31, 15 February 2010 (UTC)

Hello! I recently created a village pump proposal and request for bot approval for a bot that automatically updates editcounts for use in userboxes, templates and such. We are currently discussing the benefits and drawbacks of such a bot, as well as various different ways in which it could be implemented. Since you are a member of WikiProject edit counter I thought you may be interested in participating, your input at the discussions would be very welcome. - EdoDodo talk 08:01, 13 May 2010 (UTC)

topcontrib.js error

It seems that with the changes that went into effect today, the script is no longer working with popups on Special:Contributions. See WP:VPT#Popups_seems_to_be_broken and WT:Tools/Navigation popups#Not working in Special:Contributions for details. Thanks, Ost (talk) 18:14, 13 May 2010 (UTC)

I think I fixe this problem, please check. —TheDJ (talkcontribs) 18:47, 13 May 2010 (UTC)

Watchlist notifier

Hi Ais523. I love the watchlist notifier. Can I make one small suggestion - to add the parameter wlexcludeuser= (the current user) to the script - this will prevent your own most recent edit from always showing on the page. Looking at the API for the instructions the wlexcludeuser parm is not described there, but it seems like it works (I found it from rvexcludeuser). Thanks.  7  03:56, 4 June 2010 (UTC)

Bug in your "adminrights.js" script (with fix)

Hi. I've been using your "adminrights.js" script for a while now, and I love it. But when I decided to switch to using the secure server (secure.wikimedia.org), the admin user names stopped being highlighted.

I played around with a copy of your script, and I think I managed to come up with a fix. If you take the string "http://en.wikipedia.org" out of all the indexOf() and split() calls -- i.e., if you make the search strings all start with "/wiki/" or "/w/" -- everything appears to work again. See User:Richwales/adminrights.js for my fixed copy.

Actually, it looks like this code could probably be simplified massively by reworking it to use a regular expression encompassing all the possibilities in a single match() call, but I was just trying for the moment to come up with a quick and dirty fix. Richwales (talk) 20:48, 21 June 2010 (UTC)

Watchlist notifier + secure server

Hi there, hope it isn't too much of a bother, but I have a similar issue to the above to report: using the watchlist notifier script from the secure server barfs up an error, "OK: http://en.wikipedia.org/w/api.php?action=query&list=watchlist&wllimit=1&wldir=older&format=xml&wlprop=comment|ids|title|user". Using protocol-relative URLs for the API requests should fix it. Thanks for reading, and thanks for writing this script in the first place - I don't know what I'd do without it. Gavia immer (talk) 22:42, 1 July 2010 (UTC)

What about wgServer? It should let it be used in most wikimedia wikis. --Bachinchi (talk) 00:13, 6 July 2010 (UTC)

Ansi C or C99

Hello,

are you the author of the Ansi C or C99 signature program? Someone send it to me, and I put it on http://www.iwriteiam.nl/SigProgC.html#899 Please respond to my email address given at http://www.iwriteiam.nl/index.html#email

Frans Faase 84.81.99.242 (talk) 07:26, 4 August 2010 (UTC)

topcontribs for secure server?

I often log in via the secure server, and your topcontribs script doesn't work for that, only the HTTP server. Would it be feasible to have the script working for both? Thanks Rjwilmsi 16:12, 19 August 2010 (UTC)

@Ais523: The problem seems to be the extracting of the title from the url. Just use the title-attribute of the first link:

t = li[i].getElementsByTagName("a")[0].title;

should work. If you want, you can look at my version of your script which I'm using at de: de:Benutzer:Schnark/topcontrib.js. --Schnark (talk) 09:14, 20 August 2010 (UTC)

Username highlighter round 2

Howdy.

You may recall I asked you in 2008 about making your script into a gadget (User talk:Ais523/Archive 12#Username highlight). I did propose it, and a couple of editors agreed with the idea (Wikipedia:Gadget/proposals/Archive 1#Username highlight) but it didn't get any further. I'd like to try again, sometime in the next few weeks.

I'd also like to simplify the "install" process for less technically adept users. Eventually, I'd like us to be able to advise users to just add 3 or 4 lines to their user.js, rather than copying out the full content of your script to their userpage, eg:

// Highlight my username. This script highlights all instances of your username 
// on pages by giving them a bright background. It only checks bodyContent, 
// not titles or sidebars, and doesn't change edit windows or Special:Preferences.
importScript('User:ais523/highlightmyname2.js');

My questions here are:

  1. Is there anything that needs to be done to merge User:Ais523/highlightmyname2.js and User:Ais523 non-admin/highlightmyname2.js? (The latter was edited more recently, and includes the new "hmn2username" code) Or are they fundamentally different and incompatible somehow?
  2. Is there an easy way to specify a color for the highlight, either in our user.css, or ideally (just to keep it together) as a supplemental line in the user.js? (I poked at the line "s1.style.backgroundColor=..." in my js and css, but couldn't hack it to work. I am not an expert though, just a dabbler.)

Much thanks. -- Quiddity (talk) 21:12, 2 October 2010 (UTC)

The install process is a simple case of importScript as it is; the reason people kept copying it was that the script had my username in it literally, and they assumed they had to change it. (They don't; I'm avoiding a clash between multiple of my own scripts there, and I use my own username to tag GET parameters unique to my scripts to avoid them clashing with parameters used by other scripts or by MediaWiki itself.) My favoured install method would be something along these lines:
importScript('User:ais523/highlightmyname2.js'); // User:ais523/highlightmyname2.js
which I think is generated by {{subst:js|User:ais523/highlightmyname2.js}}. As to your other points:
  1. The second seems to be a simple replacement for the first; merging them would just be a case of replacing the main account version with the sockpuppet version. (Sorry, I've been on wikibreak for over a year so my memory's somewhat hazy at this point; my guess is that I needed the new features on my sock account at a time when I didn't have access to my usual computer, and so didn't want to enter my main password for security reasons.)
  2. Apparently not, with the current code. The easiest way to customize it is probably to alter the script to make it more customizable; I'll look into that.
I'm actually somewhat surprised that (at least some of) my scripts are still working after all this time. (I should check to see what's up with the edit-counter at some point.) Nice to see people still care about them! --ais523 22:51, 2 October 2010 (UTC)
And  Done; new docs are at User:Ais523/highlightmyname2. Let me know if it works/if there's anything else you want. --ais523 23:23, 2 October 2010 (UTC)
You rock the casbah, that works perfectly. :) I'll re-raise the idea of the gadgetization next week. Thanks again (and yes, we love your scripts :) -- Quiddity (talk) 00:11, 3 October 2010 (UTC)

Admin name highlighter

Hey again ;) Your script is fantastic, but if the color is customized, it needs at least one additional class specified. In history-pages, the username link has class mw-userlinkais523_adminrights_admin (e.g.).

I've also got nonimageais523_adminrights_admin specified in my user.css, but I forget what that was needed for.

You might want to mention that in the User:Ais523/adminrights.js doc/comments. :) That's all. -- Quiddity (talk) 01:15, 3 October 2010 (UTC)

That looks very much like a bug to me, rather than deliberate. (Probably a missing space somewhere.) I'll look into it. --ais523 22:41, 3 October 2010 (UTC)
It was indeed a missing space; ais523_adminrights_admin is now the name consistently everywhere. Thanks again for the bug report! --ais523 22:53, 3 October 2010 (UTC)
Good stuff! Just fyi, I whipped up a mini User:Quiddity/User style customization tutorial with both those scripts in it. Feel free to poke at, or ignore. :) -- Quiddity (talk) 19:08, 5 October 2010 (UTC)

Thanks for the comments

Wikipedia is sort of a mystery so it's great to have experienced users help! Thanks so much. I'm wondering if you'd look at my article for Home Energy Saver It was in my user space, but someone moved it to the live Wikipedia. Is it good enough for there? One of the other volunteer editors suggested I fix the references to the new standard format and I plan to do that today. Thanks for your help. I greatly appreciate it. DianeChojnowski (talk) 17:07, 5 October 2010 (UTC)

Thanks for your feedback

Hi Ais, I really appreciate you taking time to look at my article. I hope to have time to work on this sometime this week. Really appreciate you pointing out where the changes should be made. DianeChojnowski (talk) 21:44, 5 October 2010 (UTC)

FYI

One of your comments at an ongoing RFA is the subject of a discussion here. FYI. –xenotalk 21:01, 6 October 2010 (UTC)

Clean-up templates

Just to let you know that most clean-up templates, like "{{Unreferenced}}", "{{Fact}}" (Citation needed) and "{{Notability}}" etc., are best not "subst"ed . See WP:SUBST for more details. Regards, Rich Farmbrough, 16:33, 11 October 2010 (UTC).

Just thought you should know...

192.225.128.3 (talk · contribs) Is an IP sock of the Banned user Sugar Bear (talk · contribs). It isn't blocked for simple 'vandalism'. Last time I checked, we don't proxy for banned users.— dαlus Contribs 21:08, 29 October 2010 (UTC)

Javascript update

Hey, Ais523. I've noticed a slight issue with your admin-highlighting script (User:Ais523/adminrights.js). While it works just fine in most cases, it doesn't do anything when one is logged into the secure server. I think adding the code below to the rest of your if{} statements should fix the problem, but I wanted to run it by you rather than making the edit myself. Hersfold (t/a/c) 01:13, 9 November 2010 (UTC)

New code
      if(n.href.indexOf("https://secure.wikimedia.org/wikipedia/en/wiki/User:")!=-1)
      {
        var u=n.href.split("https://en.wikipedia.org/wiki/User:")[1];
        if(adminrights[u.split("_").join("%20")]==1)
        {
          n.style.backgroundColor="#00FFFF";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_admin";
          else n.className+=" ais523_adminrights_admin";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("https://secure.wikimedia.org/wikipedia/en/wiki/User_talk:")!=-1)
      {
        var u=n.href.split("https://secure.wikimedia.org/wikipedia/en/wiki/User_talk:")[1];
        if(adminrights[u.split("_").join("%20")]==1)
        {
          n.style.backgroundColor="#00FFFF";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_admin";
          else n.className+=" ais523_adminrights_admin";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("https://secure.wikimedia.org/wikipedia/en/wiki/Special:Contributions:")!=-1)
      {
        var u=n.href.split("https://secure.wikimedia.org/wikipedia/en/wiki/Special:Contributions:")[1];
        if(adminrights[u.split("_").join("%20")]==1)
        {
          n.style.backgroundColor="#00FFFF";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_admin";
          else n.className+=" ais523_adminrights_admin";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User:")!=-1)
      {
        var u=n.href.split("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User:")[1];
        if(adminrights[u.split("_").join("%20")]==1)
        {
          n.style.backgroundColor="#00FFFF";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_admin";
          else n.className+=" ais523_adminrights_admin";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User_talk:")!=-1)
      {
        var u=n.href.split("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User_talk:")[1];
        if(adminrights[u.split("_").join("%20")]==1)
        {
          n.style.backgroundColor="#00FFFF";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_admin";
          else n.className+=" ais523_adminrights_admin";
        }
        n=n.nextSibling;
      }
Your code would have worked, but the script was getting long and unmaintainable, so it's probably better for me to rewrite it rather than just add even more cases. I've refactored it so that new cases will be easy to add in future; it now also looks at the page's built-in JavaScript variables to see which server it's on, and aims the links there. (Thus, it won't now highlight links from the insecure to secure server, or vice versa, but will now work on any Wikimedia wiki, not just enwiki.) Thanks for bringing this to my attention! --ais523 15:41, 9 November 2010 (UTC)

Problem with adminrights.js — Firefox 4.0 beta?

I recently started using Firefox 4.0 beta 7 for Linux, and your adminrights.js script stopped working for me. In case it might be relevant, the browser's JavaScript error console shows the following warning: Error in parsing value for 'background-position'. Declaration dropped. http://en.wikipedia.org/wiki/Special:Watchlist Line: 78. There were also a bunch of Empty string passed to getElementById() warnings. NuclearWarfare's "Mark-blocked script.js" script still works fine (crossing out blocked users). And when I display my watchlist in Opera (9.27 for Linux), the admins are highlighted as expected. Any ideas? Richwales (talk · contribs) 07:30, 17 November 2010 (UTC)

Hmm, that's strange. I suspect the two warnings you saw were irrelevant (the first definitely is, the second merely probably is), and I can't think of anything obvious that would be causing it. Could you try again, under the following conditions: a) having the script in question as the only script in your monobook.js/vector.js (bypass your cache afterwards); b) clearing the error console before visiting the page, to avoid errors from other pages; c) on a page other than your watchlist (my talk page would do fine, as it has your signature on to make a sensible test case)? (I can't easily install the Firefox 4 beta to test, as my regular browser is a distro-managed Firefox 3.) --ais523 15:24, 17 November 2010 (UTC)
Thanks. I'll try this test later today and let you know what happens. I'm not an admin, but you've got two or three comments on your talk page right now from people who apparently are, so viewing your talk page should provide a reasonable test case. Richwales (talk · contribs) 15:45, 17 November 2010 (UTC)
OK, I did the above just now. Your script still isn't highlighting administrator user names when I view your talk page in FF 4.0b7. It does work just fine in Opera. My JavaScript error console contains one (and only one) instance of the "Empty string passed to getElementById()" warning, but without any indication of where this happened. Richwales (talk · contribs) 17:38, 17 November 2010 (UTC)
And I might also mention that your script works fine in Google Chrome for Linux. It seems clear that something has changed in FF 4; whether this is a bug in the FF beta, or a nonstandard thing in your script that the FF 4 developers decided not to support any more, may still be an open question. Richwales (talk · contribs) 17:59, 17 November 2010 (UTC)
Hmm, I wonder if it's an issue with script importing? If you type javascript:alert(adminrights["7"]) (to pick an admin with a short name) in your address bar, what comes up in the dialog box (1 or undefined)? --ais523 18:04, 17 November 2010 (UTC)
The dialog box says "1" (which I believe is what you want). So, no, I would guess that it's something else — possibly a bug in the execution of your highlightadmins_inner() function? Richwales (talk · contribs) 18:23, 17 November 2010 (UTC)
I just installed Firebug (the new version for FF 4), and when I located and inspected the "Rich" in "Rich Farmbrough", I did not see any background colour or class name attributes — as I believe should have been set in your highlightadmins_inner() function. I also ran DOM Inspector on your talk page; the DOM output is about 130K bytes, but I can e-mail it to you if you want (you would probably want me to e-mail it directly rather than go through the Wikipedia e-mail GUI, though, since said GUI doesn't seem to have provisions for including attachments; send me e-mail with your e-mail address if you want me to do this but don't want to publicize your e-mail address). Richwales (talk · contribs) 18:35, 17 November 2010 (UTC)
Do you get the getElementById() warning without my script installed? At this point, I can't think of much else to check other than adding debug statements to the script to see where it's going wrong, and that's something that's rather hard to do indirectly via talking to someone. It would be nice to know which bits of the script are running and which aren't; for instance, you could try putting an alert() in the bit of the script that sets the class on an element to see if it comes up. (Sending the DOM likely won't be particularly helpful, as my guess is that it will show that nothing's changed, but not why.) --ais523 20:42, 17 November 2010 (UTC)

OK, I made my own local copy of your script and added alert()s for the case that a user is, or is not, an admin. If I do that, it works — admins do get highlighted as they should. The strange thing, though, is that this works only if I post an alert() in either case. If I do an alert() if a user is an admin, but don't do an alert() if a user isn't an admin, no one gets highlighted. I tried adding "else { }" after the adminrights test, but without an alert() inside, and no one gets highlighted. In fact, if an admin gets highlighted, and I check the box in the alert() dialog saying not to show any more dialogs, any additional admins on the page do not get highlighted. This makes no sense to me at all; is it a weird JavaScript misfeature, or is it a sign of a bug in FF4's handling of JavaScript? Richwales (talk · contribs) 21:45, 17 November 2010 (UTC)

It seems very like an FF4 bug to me; JavaScript itself is a relatively sane language (although its API for interacting with web pages isn't). Still, that doesn't mean it wouldn't be useful to work around it. alert()s are obviously out of the question, but I wonder if there's something else that would prevent the bug occurring? --ais523 09:20, 18 November 2010 (UTC)
I agree, it does look like a bug in the Firefox 4 beta. Pinpointing the bug and convincing developers to fix it — or, for that matter, devising a workaround (or telling if a workaround is possible) — will presumably require a minimalist example of HTML and JavaScript that unarguably illustrates the problem. I tried creating a tiny web page last night that I hoped would display the problem, but this first effort worked just fine (!), so I'm going to have to try harder. Richwales (talk · contribs) 14:56, 18 November 2010 (UTC)
I've reported this problem as Mozilla bug #613220.
Since User:NuclearWarfare/Mark-blocked script.js works fine, I took a look at that script and (in my own copy of your script) decided to try adding appendCSS('.ais523_adminrights_admin { background: #00FFFF }\n'); to your onload hook function, instead of setting n.style.backgroundColor inside the loop later on. However, this didn't help any.
One other possible clue. Using Firebug, I can see that the user links (whether admins or not) have style="" in them — presumably not what you want. I can't readily see where this came from. This might be the smoking gun. Richwales (talk · contribs) 17:07, 18 November 2010 (UTC)
I removed everything from my monobook.js except the import of your script; this did NOT fix the problem. I also moved the import of your script to the very end of my monobook.js; that didn't fix the problem either. Richwales (talk · contribs) 17:17, 18 November 2010 (UTC)
BTW, I've got your talk page on my watchlist, so no need to put talkback notices on my talk page for this any more. Richwales (talk · contribs) 17:26, 18 November 2010 (UTC)

Hi again. I tried some more things just now — no luck. No matter what I do, the highlighting of admin links in FF4 happens only if I have alert()s in the loops. I compared this broken result with the same page in Opera, and it works fine in Opera either with or without the alert()s. My best observation so far is that NiclearWinter's "strikethrough blocked users" script (the original of which appears to be here) works fine in FF4. Richwales (talk · contribs) 03:43, 20 November 2010 (UTC)

I'm afraid I don't have a clue what's going on at this point. I'd like to help, but can't think of anything more to try. --ais523 19:20, 21 November 2010 (UTC)