User talk:Lupin/archive10

This is an old revision of this page, as edited by Kevin B12 (talk | contribs) at 08:35, 4 June 2006 (Can't use the popups in some cases). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 19 years ago by Kevin Breitenstein in topic Can't use the popups in some cases

Archive: 1 2 3 4 5 6 7 8 9

Please add new messages to the bottom of this page. You can do this by using this link.

If you're reporting a problem with a script, please mention which browser you use. You may also like to search on this rather large page to see if your question has already been answered.

I will usually respond on this page.

Oleg's edit summary counter

Hi! Would it be useful to have Oleg's edit summary counter (cgi: [1]) in the popups? I'm not sure if it takes arguments via URLs, but you can at least specify username and project once you're there. --Eddi (Talk) 23:51, 13 April 2006 (UTC)Reply

Unless it's possible to specify the user from a link in the popup, I don't see the point to be honest - a browser bookmark seems more appropriate to me. Lupin|talk|popups 21:35, 14 April 2006 (UTC)Reply
Sorry, I didn't check properly. It takes the language and user name as URL arguments: http://www.math.ucla.edu/~aoleg/wp/rfa/edit_summary.cgi?lang=fr&user=Lupin (your name twin?) --Eddi (Talk) 03:21, 15 April 2006 (UTC)Reply
Hm, the effort of coding this thing seems to outweight the benefit from my perspective - I never find myself hankering after this information :P If you really miss this functionality I could do it, though. Lupin|talk|popups 23:35, 15 May 2006 (UTC)Reply

Feature request for popups: history preview

Hi, I love your popups, thanks a bunch! I have one feature request: when checking my watchlist, I find myself constantly clicking on history links, because the watchlist only shows the last change and I need to know if any earlier changes occurred that I might have missed. It would really help if hovering over the (hist) link would bring up a popup with the article's history. The same should obviously happen for all links that contain "&action=history". Thanks again and cheers, AxelBoldt 16:14, 15 April 2006 (UTC)Reply

This feature is now in the dev version. Let me know if you can see ways to improve it! Lupin|talk|popups 04:09, 27 April 2006 (UTC)Reply
Aahhh!!!! I'm nearly lost for words. Fanquadrilliontastic!! I'll name the next star I discover after you. :) --Eddi (Talk) 00:34, 28 April 2006 (UTC)Reply
Heh, glad you like it :) Actually User:Yurik deserves most of the credit for writing his wonderful query.php extension which made this pretty easy to write, and accounts for its snappiness. Lupin|talk|popups 02:26, 28 April 2006 (UTC)Reply
Thanks a bunch, this is great! Cheers, AxelBoldt 19:48, 5 May 2006 (UTC)Reply

My best to Yurik as well!
I experienced a most bizarre bug while testing the new feature in my watchlist. Part of the watchlist is shown in Image:Histbug1.jpg. At the time, the entry for the Periodic table ("PT") was just above Wikipedia talk:Requests for adminship ("WT:RFA"), and when I hovered over the PT history link [2] I got a popup with the PT title and the WT:RFA history [3]. This is shown in Image:Histbug2.jpg. To say the least I was amazed! Guess you're working on it already... (popupsdev.js, suse 10.0, firefox 1.0.8) --Eddi (Talk) 04:14, 28 April 2006 (UTC)Reply

Thanks, there is certainly something here that is insufficiently robust. Could be awkward to track down, but I'll take a look when I'm feeling motivated. Lupin|talk|popups 01:16, 7 May 2006 (UTC)Reply
Added some more features to the query.php - not everything, but working on it. Let me know what you might find useful (on my talk page). --Yurik 19:05, 8 May 2006 (UTC)Reply
Re revids in query: need more info, see my query talk page. --Yurik 05:12, 12 May 2006 (UTC)Reply
Bug fixed, a few features added (you might like the 'content'). Will go on vacation tomorrow, so no changes for a while. --Yurik 23:51, 20 May 2006 (UTC)Reply
Imagelink was a feature, not a bug. See answer at my page :) --Yurik 17:56, 1 June 2006 (UTC)Reply
One more thing: I will soon submit an update that will allow getting older revisions. The drawback is that i am changing the <rv> element - now the user's comments (that you get with rvcomments parameter) will not be the text of the <rv> element, but an attribute called comment. The new format will look like this:
<rv revid=".." oldid=".." timestamp=".." user=".." comment="..">revision text<rv>. Ideally you can updated your code to check if the "comment" attribute is present, and use that instead of the rv element content. Let me know when you are ready. --Yurik 21:40, 1 June 2006 (UTC)Reply
Thanks for the warning. I've made the changes you suggested, so please go ahead and change query.php. Lupin|talk|popups 02:50, 2 June 2006 (UTC)Reply

Elsewhere

Is it possible to convert this for use on mediawiki projects not on wikimedia's servers? I quite despise them; and have more than a few wikis out there not to mention a rather large project that could much benefit from your javascript. Care to share? ℑilver§ℑide 19:37, 15 April 2006 (UTC)Reply

Please see above: #The use of NP on another wiki. Lupin|talk|popups 23:37, 15 April 2006 (UTC)Reply

Popups problem

Firefox javascript console keeps showing that pg and log are undefined in popups.js. I see that both are defined but via window (window.pg = ...). If you call them instead as window.pg in the script instead of just pg, will that work? --M@thwiz2020 20:50, 15 April 2006 (UTC)Reply

The two forms (with and without window) should be largely equivalent. I don't know what causes this sort of error, it's very irritating. Please try clearing your cache and reloading to see if the problem disappears. Lupin|talk|popups 23:39, 15 April 2006 (UTC)Reply

Arabic Wikipedia

Hi. Does the pop-up navigation tool work in the Arabic Wikipedia? Because I tried it more than once and it doesn't work. Can you please check if it's possible for me to use it there. Thanks. ~MK~ (talk) 01:22, 16 April 2006 (UTC)Reply

It works for me on that wikipedia. What's your browser? Did you clear your cache and reload? Lupin|talk|popups 04:12, 16 April 2006 (UTC)Reply
It works now. :) ~MK~ (talk) 14:29, 16 April 2006 (UTC)Reply

Browser crash with Opera 8.51

Hey, Lupin. I started using the Navigation pop-ups and liked it so much that I translated it to Icelandic, from Eddi's Norwegian Bokmål version. But the problem is that I use Opera 8.51 and it keeps crashing after I started using the pop-ups. I saw farther up that a user changed from 8.52 to 8.51 and solved his crashing-problem. I run Windows ME. Do you have any clue what my problem could be? --Jóna Þórunn 19:27, 17 April 2006 (UTC)Reply

Sorry, I don't know specifically what causes crashes. Since javascript shouldn't be capable of crashing a browser, you're clearly seeing a bug in Opera. I suggest you upgrade to a more recent version. (Incidentally, Opera 9 should cope with the menus, so if you're feeling brave you could try a beta and set popupStructure='menus'). Lupin|talk|popups 23:21, 17 April 2006 (UTC)Reply
Oh, I forgot to say - thanks for the translations, it's much appreciated! Lupin|talk|popups 23:22, 17 April 2006 (UTC)Reply
Well, thanks anyway. I'll wait and see. :) --157.157.161.144 21:34, 19 April 2006 (UTC)Reply

Few more tweaks to tool

Could you put ---- between edits for easier visual flow, and perhaps header info on the bottom of the edit. Latter is not a priority as its only pertinent to big vandalism, which should be reverted via IRC and CDVF anyway. - RoyBoy 800 05:47, 18 April 2006 (UTC)Reply

The vandalism at Limestone was rv by Tawkerbot2 but showed up on the Lupin tool with four updates enabled.
Yes, the tool doesn't guarantee to get this right. It really only omits edits which show up in one of its samples of the RSS feed after the apparent vandalism. Lupin|talk|popups 14:58, 23 April 2006 (UTC)Reply
Also I was wondering if the already reverted behavior could be tweaked to no pop-up. Perhaps if its already reverted, could it simply redirect the pop-up to a Current version like this. That way you could distinguish still between what you reverted and what was taken care of already. Nevermind, pressing enter is easier than closing a bunch of windows. - RoyBoy 800 17:14, 18 April 2006 (UTC)Reply
Oh yeah, and when you click Warn on a user; can the article title be copied to the clipboard, so that when I paste into my warning prompts I don't have to go back to the Lupin window/tab to copy the article title. - RoyBoy 800 17:17, 18 April 2006 (UTC)Reply
There are security restrictions in place which mean that I'd have to get people to do various obscure things with their browsers to make this possible, so it'd be awkward. Lupin|talk|popups 14:58, 23 April 2006 (UTC)Reply
Please exclude Wikipedia Intro page, Sandbox page and other pages anons are encouraged to edit. - RoyBoy 800 03:12, 20 April 2006 (UTC)Reply
Good idea. Going onto my todo list... Lupin|talk|popups 14:58, 23 April 2006 (UTC)Reply

Thank You

It took me some time to get its working but I finally managed it. Popups is really a great tool and makes tedious things quite easy. Good Work! bandan 09:36, 19 April 2006 (UTC)Reply

watchlistDumper.js

How does it work? Betacommand 02:33, 20 April 2006 (UTC)Reply

Instructions for usage are at the top of User:Lupin/watchlistDumper.js. Lupin|talk|popups 18:32, 22 April 2006 (UTC)Reply
I tryed that it didn't work can you give me a examle URL or advice? thanks Betacommand 23:22, 22 April 2006 (UTC)Reply
Ah, I omitted .js in the instructions - apologies. Please try again. Lupin|talk|popups 00:55, 23 April 2006 (UTC)Reply
thanks I got it to work but not in FireFox I had to use Internet Explorer StopIE.com :) Betacommand 04:41, 23 April 2006 (UTC)Reply
That's almost certainly due to caching issues. I developed the tool in Firefox, so I believe that it does work in that browser. Lupin|talk|popups 14:52, 23 April 2006 (UTC)Reply

Orphaned & unused dotty maps north of the border

Hello, I thought I would give you a quick run down of the situation for your maps in Scotland. As a result of discussion on infobox map standardisation here a wee while ago your maps are generally not being used now. Rather than just going ahead and putting a lot of maps up for deletion I thought I would let you know first. I don't know if you want them kept for continuity (given the very large number of maps already in the category). There has been some comment on this issue here over the last few months. If you don't have any problems with the IFD then I will just work through the category putting orphaned Scottish maps up for deletion. SFC9394 21:40, 21 April 2006 (UTC)Reply

Could these maps be profitably transwikied to the commons? I've not got any major objections to their deletion if they're orphaned, though. Lupin|talk|popups 18:28, 22 April 2006 (UTC)Reply

Does the popup tool work for Wikia, or is it only for Wikipedia?G.He(Talk!) 23:20, 22 April 2006 (UTC)Reply

It worked with wikicites, so I think it should once I update the name! Lupin|talk|popups 15:01, 23 April 2006 (UTC)Reply

I have not searched through all the talk archives; please feel free to point me there if my question has been answered already. I would, however, recommend that we made a central list of bugs---those discovered/reported, those in the process of being fixed, and those which have been fixed---so as to reduce the amount of questions like this one (or is there such a list already: if so, tell me!). Anyway; thanks for a great tool, which saves me a lot of time checking minor edits on my watchlist!

Yup, I get strange behaviour (with IE) when I let the mouse pointer hover over a link positioned close to the bottom of the browser window: the popup "post-it window" is cut short at the browser window border. This doesn't seem to be a problem with links placed to the extreme right, say---there, one gets the expected behaviour, i.e. the popup is placed into the browser window so that the entire popup window displays OK. Any comments? --Wernher 01:43, 23 April 2006 (UTC)Reply

Known bug that I still haven't fixed... as a workaround, you can shift-drag the popup into the window or possibly scroll down with your mousewheel (works in firefox). Lupin|talk|popups 15:04, 23 April 2006 (UTC)Reply

Pop-ups

Would it be possible in your pop-ups extension to have an automated way to insert {{welcome}} onto a users talk page, just by hovering over their user page link? It would make it easier to welcome users---say you see a contributing user through the revision history. You could then just hover over the link, and select welcome, without ever leaving the page. Is this possible, and would you be willing to add it, if it is?

--Primate#101 01:40, 24 April 2006 (UTC)Reply

Mathwiz2020 has something like this here. It'd need adapting slightly, but I'm sure he'd be happy to help you to do so. Lupin|talk|popups 04:26, 24 April 2006 (UTC)Reply
The pop-ups tool is causeing problems for me. Basicly, it would restart the page while I'm looking at it, or when I click on a link it would come up with "this page cannot be displayed". I have remove it for the time being. The Republican 16:49, 6 May 2006 (UTC)Reply
Which browser, and which OS? Did you observe these problems after clearing your cache? Lupin|talk|popups 01:05, 7 May 2006 (UTC)Reply

Hi Lupin, the popups now contain an "ARIN lookup" function; whould it be possible to use for example http://whois.domaintools.com/ to facilitate lookup of non-ARIN registry IP-adresses? Cheers, NielsFTalk to me.. 17:48, 24 April 2006 (UTC)

Yes, I expect so. Should this replace arin, or be an additional function? Lupin|talk|popups 01:06, 7 May 2006 (UTC)Reply

Problem with popupFixDabs

Hi. I made the translations for the pop-up navigation tool for the Arabic Wikipedia. It's great even though it has some bugs. Anyway, can you tell me how I can use option that fixes the links to disambiguation pages there? It works for the redirection, but not for the actual template. That's what I discovered after using the {{disambig}} instead of it. ~MK~ (talk) 15:10, 25 April 2006 (UTC)Reply

Bug in popups

Hi, I've only now seen your request for bug reports to be filed here, sorry. Could you kindly have a look at this, nevertheless? --DerHerrMigo 09:03, 26 April 2006 (UTC)Reply

proofread request for MediaWiki Javascript instruction

I stumbled onto this rather incomplete passage in my further travels shortly after activating your wonderful navpop.

http://meta.wikimedia.org/wiki/Help:User_style#Javascript

First I pointed out to the originating source that the "hook" for this technique is not presented (it was lost during a content split). You can see my comment here:

http://en.wikipedia.org/wiki/User_talk:Timwi#catsattop.28.29

Then as I learning things while making user JS work on my personal wiki, I added the "system requirements" passage. It's probably full of caca. You're obviously light years ahead of me in your Javascript expertise, perhaps you could proof/fix/gut my contribution or draw attention to someone else who can. MaxEnt 05:14, 27 April 2006 (UTC)Reply

A quick skim through it reveals nothing obviously caca.... Lupin|talk|popups 01:14, 7 May 2006 (UTC)Reply

Horray for history popups

Nice work! Seems to be working fine :).Voice-of-AllT|@|ESP 06:34, 27 April 2006 (UTC)Reply

Auto Edit

I was wondering how you coded the "auto-edit" thing. I have pop-ups installed, and I wanted to be able to create a script to change my status template (eg. I click on "in" and it automatically replaces my current status with "in"). It would make my life a whole lot easier.

Thanks. --Primate#101 00:46, 28 April 2006 (UTC)Reply

I did this for Celestianpower - see User:Lupin/alltalk#2_questions and related discussion on that page. Lupin|talk|popups 01:59, 28 April 2006 (UTC)Reply
Thanks, Lupin. I figured out that by piping the first regexp: http://en.wikipedia.org/wiki/User:Primate/Status?action=edit&autoedit=s_\bin%7Csleeping%7Clater%7Cwikibreak\b_out_&autosummary=Changed%20Status&autoclick=wpSave&autominor=true

I'm able to convert the first occurrence of any of those words to the word I want. That way, even though I have multiple status words, it still works.

Again, thanks!

--Primate#101 03:36, 2 May 2006 (UTC)Reply

P.S. I put the links on my Mozilla Firefox Bookmark Toolbar. On click, and my status is changed!

Improvements for Popups ?

Hi again Lupin, I think I found two bugs or improvements that could be done...

  1. Previewing Anchors with <div id=""> or <span> doesn't work, though it works for the <ref> notes (that generate <a href="">), they only preview the top of the page : example with unworking anchors, example with working notes. Note that in the first example, I can't use the <ref> tag.
  2. When I use the header's anchors, (exemple, see first links), the ''text'' in italics isn't displayed, knowing the words in '''bold''' work. In fact, it seems also not to work half of the time on normal pages.

Do you think there could be any solution concerning these problems ?
And as I stand still, isn't it possible to envisage any solution concerning the diff problem and the second level of links I spoke about ? Thanks. --Henrique Diaz 18:23, 28 April 2006 (UTC)Reply

The previews are designed to extract meaningful information from the top of a wikipedia article. As part of this process, html tags are stripped out and so are leading italic chunks (which are usually not part of the wikipedia article). If you want to change this behaviour, you can comment out the relevant lines in Previewmaker.prototype.makePreview. I think you probably want to lose killHTML() and killChunks().
I'm afraid I've rather lost track of what works and what doesn't for you. Please could you give me a nice short summary of the remaining problems you have? Lupin|talk|popups 01:12, 7 May 2006 (UTC)Reply

The Holy

Here are some awards for editing The Holy.

General Eisenhower 17:52, 29 April 2006 (UTC)Reply

Um, thanks. Lupin|talk|popups 21:45, 29 April 2006 (UTC)Reply

User:Zocky/Search Box

I wrote a new tool for edit pages. Testers and comments welcome :) Zocky | picture popups 21:57, 1 May 2006 (UTC)Reply

Look nice to me! Thanks for letting me know. Lupin|talk|popups 03:45, 4 May 2006 (UTC)Reply

Firefox blocking - for recent edits

After about a dozen updates or so Firefox will start blocking new windows. I have en.wikipedia.org allowed, and have even disabled pop-up blocking entirely and then restarted Firefox. Still does it. This began occurring recently; as before I could use it for hours on end without being blocked. Might have to do with the Firefox 1.5.0.2 update on April 13th? - RoyBoy 800 18:55, 2 May 2006 (UTC)Reply

Does this happen with other websites that open lots of popup windows? Maybe it is connected to the firefox upgrade. Lupin|talk|popups 23:01, 2 May 2006 (UTC)Reply
This is the only instance I've had an issue with the pop-up, but I've never been at a site that required routine pop-ups. Should I try and list it as a bug with Firefox? - RoyBoy 800 21:45, 6 May 2006 (UTC)Reply
Tried the tool with four updates disabled, and it went through 200 updates or so then asked me to continue. No issues thusfar. (caveat, didn't start rolling back till ~40th update as a result of watching BBC news... also didn't enable auto expand until ~40th update) Usually I enable everything before the first update completes. - RoyBoy 800 23:30, 6 May 2006 (UTC)Reply
I find it hard to see how the four updates thing can affect firefox popup blocking, but you never know... do you get the blocking problem at all now? Lupin|talk|popups 01:29, 7 May 2006 (UTC)Reply
Seems to be working, just used it up to update 89; but had blocking entirely disabled still. Will try to re-enable it and allow Wikipedia. - RoyBoy 800 01:41, 15 May 2006 (UTC)Reply

Warn

On your RC filter, what does the warn button do? Great job with it by the way. --pevarnj (t/c/k ) 19:43, 3 May 2006 (UTC)Reply

Please see User:Lupin/alltalk#Warn (Filter Recent Changes) and elsewhere on that page for an explanation. Lupin|talk|popups 03:38, 4 May 2006 (UTC)Reply

Talkpage-archival

As you have a very high-traffic user-talk page, you probably have problems with archival. I've just written and had approved an extension for Werdnabot that will manage and archive any sections older than a preset value to a specified page. For more information as to how to mark your user talk page for archival, please contact me on my user-talk page. Werdna648T/C\@ 01:41, 4 May 2006 (UTC)Reply

Thanks, but I'd prefer to manage this manually. Hm, looks like this page is well overdue for archival... Lupin|talk|popups 03:39, 4 May 2006 (UTC)Reply

re: action=raw to read old versions

Thanks, I didn't know about that. Right now I'm reading the edit screen and pulling out the textarea contents with some regexps, which works ok, but is ugly. I may switch over to using action=raw which seems much nicer. Really though, I think I'm better off putting my script onto the toolserver and have it read the database directly rather than through http. This will have other advantages too. Phr (talk) 04:03, 4 May 2006 (UTC)Reply

Autoedit

Thank you for making my life so much easier. Jude (talk,contribs,email) 06:31, 4 May 2006 (UTC)Reply

User:Lcarsdata/monobook.js

Hi, sorry to bother you but I know you are good with scripts so thought you could help. I am using Mozilla Firefox 1.5.0.1 and have just put a load of new scripts into my monobook but non of them work at all, I have tried bypassing my cache and have purged Wikipedia's cache but it still doesn't work. I did it last night at about 19:00 UTC so I have waited about half a day which has been long enough for every other time. If you need to give me the changes just put it in my sandbox. Thanks Lcarsdata Talk | @ | Contribs 07:09, 5 May 2006 (UTC)Reply

Well I don't see anything obviously wrong. Does your javascript console give you a juicy error message? I'd expect it to if nothing in your monobook.js has any effect - there's probably a syntax error in there somewhere. Lupin|talk|popups 01:26, 7 May 2006 (UTC)Reply

Errors in popups

Hi.

Please diregard previous edit - must have been something on a specifyc page...

If you want to look into that the errors where:

(1) Error: pg is not defined http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s Line: 2985

(2) Error: log is not defined http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s Line: 4356

JS code:

(1)
function checkPopupPosition () { // stop the popup running off the right of the screen
	pg.current.link.navpopup.limitHorizontalPosition();
(2)
	var stableShow = function() {
		log('stableShow called');

If I'll find them again I'll let you know.

Nux talk | faster(pl) talk 14:19, 6 May 2006 (UTC)Reply


Some other errors:

The functions: getDiffSinceMyEdit(), getLastContrib() - doesn't work or I don't know what do they do? It's under the lastContrib and sinceMe. I've checked this with the english version and with Internet Exploder. Normaly I use Firefox and polish version on monobook. Pages with scripts:

Nux talk | faster(pl) talk 14:19, 6 May 2006 (UTC)Reply

PS: BTW I love the idea of popups, thanks! :)

Please clear your cache and reload. I expect these errors will disappear soon. I don't know what causes them, though. Lupin|talk|popups 01:01, 7 May 2006 (UTC)Reply
Nope, still is there. I installed on en.wiki without any problems and even used the polish version here. Still on pl.wiki this functions (with or without the translation) still don't work. Also sometimes I get the errors mentioned earlier (on random pages - don't see anything in common). You might want to open a test account to see for yourself. I've already asked some othere users on pl.wiki and they all had similar results.
To fix some problems you might consider installing Firefox and the webdeveloper along with it. You'll see that there are many warnings (with strict rules) in the script shown by the JS console. They could point to some bugs... If I'll have more time I'll look into that myself. Nux talk | faster(pl) talk 19:58, 7 May 2006 (UTC)Reply
Thanks for the bug reports. I think I've fixed the non-working links in the dev version. I didn't notice the pg or log undefined errors, though. Lupin|talk|popups 00:22, 16 May 2006 (UTC)Reply

Gainsborough is in Lincolnshire

Please move Image:Gainsborough_-_Nottinghamshire_dot.png to Image:Gainsborough_-_Lincolnshire_dot.png. Gainborough is in Lincolnshire, bordering Nottinghamshire by the River Trent, but still in Lincolnshire. Regards, --Asterion talk to me 15:49, 6 May 2006 (UTC)Reply

Is anything preventing you doing it yourself? Lupin|talk|popups 01:20, 7 May 2006 (UTC)Reply
The only way I could do it would be saving it to my computer and re-uploading it under a different name. How do I credit it to you? And how do we get rid of the old one then? --Asterion talk to me 21:57, 7 May 2006 (UTC)Reply
I think the usual way is to write a note on the image page explaining its provenance. Then, if you want to, images for deletion is the place to get images deleted. Lupin|talk|popups 00:23, 16 May 2006 (UTC)Reply

Safari problems w/popups still?

Not for me, anyway. It doesn't crash, but only the main popup shows up. No actions show up, but they can still be performed by looking at the status bar at the bottom and guessing which URL points to revert, view whatever, etc. Kind of silly.

Also, this may be due to other stuff as well, but my Safari LAGS while using WP. Any ideas?

--M1ss1ontomars2k4 23:56, 6 May 2006 (UTC)Reply

Current versions of safari have CSS bugs that make the menus go wonky. Please try either using a nightly webkit build or set popupStructure='original' to turn off the menus.
I don't know why you may be experiencing performance issues with wikipedia - it may well be the popups script. My impression is that safari has a rather slow javascript engine. Lupin|talk|popups 00:58, 7 May 2006 (UTC)Reply
Haha! you're right. I was looking up SVG when I disc'd that there are nightlies for Safari. Should that be mentioned on the popups page? --M1ss1ontomars2k4 05:00, 7 May 2006 (UTC)Reply

Extended revert summary broken?

I used to have extended revert summaries working just fine when reverting edits through the history page, though lately reverts seem to automatically go down to the basic 'Reverting to revision, (number)' summary. I was wondering if there was some option that could have the extended revert summary on by default. I have attempted changing the automated message by adding a more %s tags as done in your .js page, but it did not work. Thanks for your help. Cowman109Talk 00:16, 7 May 2006 (UTC)Reply

What did you try, and what results did you obtain? Have you cleared your cache religiously each time you've changed something? It might help to try again anyway since the script was recently updated. Lupin|talk|popups 01:23, 7 May 2006 (UTC)Reply
I believe the different results actually occurred after the recent changes. I clear my cache each time I alter my monobook.js file as well. Whenever I attempt to revert edits through the history page of an article as I usually do (I hover my mouse over the time of the edit, move to actions, then to revert), the page reverts just fine but the edit summary seems to be default to "(Revert to revision 50945360 using popups)", for example. I used to have extended edit summaries such as "(Revert to revision dated 17:50, April 21, 2006 by Cowman109, oldid 49512438 using popups)". Here's a random short edit history in one of my user subpages to show the differences. [4]. Cowman109Talk 01:27, 7 May 2006 (UTC)Reply
Oh, extended summaries. You have to set something or other to make this work now... ah, yes. You should set popupTimeOffset to your timezone, in hours offset from wikipedia time (GMT, I think). This should activate the extended summaries when you revert from a history page. Lupin|talk|popups 01:35, 7 May 2006 (UTC)Reply
Ahah, that fixed it. I must have messed it up myself when I was playing around with my timezone settings. Thanks a lot! Oh, and I hope you don't mind but I stole your format for storing barnstars in a subpage and displaying them. Thanks for that too! :D Cowman109Talk 01:49, 7 May 2006 (UTC)Reply

Popups "sinceMe" not working with user names with a space

The "sinceMe" command in popups seems to have been broken for a week or so for me. The message displays as "Couldn't find an edit by Doug_Bell..." so I'm thinking the issue is the underscore in my user name. —Doug Bell talkcontrib 15:38, 8 May 2006 (UTC)Reply

Could be. Please could you try setting popupUserName="Doug_Bell" or "Doug Bell" and see which one works, if either one does? Do let me know the results so I can try to fix the script properly.... Lupin|talk|popups 00:25, 16 May 2006 (UTC)Reply

problem with decodeEscapes() for «#...» part of wikilink: not solved yet?

The problem mentioned there is still far from being fixed in the stable version of Navigation popups.

I'd like to suggest the following patched version of decodeEscapes:

Title.prototype.decodeEscapes=function(txt) {
	var split=txt.parenSplit(/([%][0-9A-Fa-f]{2})/);
	var len=split.length;
	for (var i=1; i<len; i=i+2) {
		split[i]=unescape(split[i]);
	}
	
        var hashText = split.join('');

	split=hashText.parenSplit(/([.][0-9A-F]{2})/);
	len=split.length;
	for (var j=1; j<len; j+=2) {
		split[j]=unescape('%' + split[j].slice(1)); //e.g. '.A0'.slice(1) == 'A0'
	}
        return split.join('');
};

Good luck. —62.183.50.164 08:21, 9 May 2006 (UTC)Reply

Excellent, thanks for the code. I'll added something similar to the dev version in a moment. Lupin|talk|popups 23:34, 15 May 2006 (UTC)Reply
Are there any means to see when those dev versions become landed as stable ones? —217.27.43.145 04:58, 24 May 2006 (UTC)Reply
You can watch User:Lupin/popups.js. There's no schedule for this - when I think it's had long enough to reveal nasty bugs, I upgrade that page to the dev version. Lupin|talk|popups 22:17, 24 May 2006 (UTC)Reply

Hello. I am having trouble fixing the links to the page at Law and Order. A lot of links intend the show, which at Law & Order, but the page names with the '&' seem to be a problem: no change gets made and the edit summary shows up as "Disambiguate [[Law and Order]] to [[Law ". Thanks for a great tool -- it just keeps getting better and better! Ewlyahoocom 15:01, 11 May 2006 (UTC)Reply

Monobook.css and changing PopUp appearance bug.

First of all, thanks for the great tool you've provided, it certainly helps me.

The problem I am having is that reading your instructions to change the appearance of the PopUp's, I wanted them to appear blue and in a larger text (so it is easier to read and navigate for me). I am using Mozilla Firefox 1.5.0.3. I edited and saved my monobook.css with the following instructions:

 .navpopup {
   background-color: #d7eeff  !important;
   border-color:     #1e90ff  !important;
   font-size:        small    !important;
 }

Nothing happened. I cleared the cache on Firefox and the problem still persists. So I'm at a bit of a loss of what happened and I hope you can help me. tghe-retford 10:19, 14 May 2006 (UTC)Reply

Ah, I seem to have got it working, my computer can be like that sometimes! tghe-retford 13:22, 14 May 2006 (UTC)Reply

sorry to bother you but on a wiki I use we would like to add two links to the toolbox but can't work out how. I have tried to decipher your code but it still won't work. If you have time please could you tell me, but I will understand if you don't. Lcarsdata Talk | @ | Contribs 07:21, 15 May 2006 (UTC)Reply

You should find instructions for doing that at WP:JS, WP:US or thereabouts. Lupin|talk|popups 00:28, 16 May 2006 (UTC)Reply

I am using IE 6.0.28 and I keep getting a Windows pop-up dialog box that says "Navigation popups error: op or cl is null! something is wrong". If I click "OK", then the box goes away and I can click on the link. The Lupin popup still shows but the pop-up dialog is totally annoying.

At this point, I'd be find getting rid of Lupin popups completely but I can't figure out how to do that. I tried removing everything from my monobook.js but that didn't seem to help.

Don't get me wrong. I love Lupin popups and the prospect of not being able to use them is not a happy one. However, this "navigation popups error" is driving me nuts and I'd rather get rid of Lupin popups than have to live with it any longer.

HELP!

--Richard 19:38, 18 May 2006 (UTC)Reply

Hm, that is annoying. I can't easily test the script on IE, but I'll try... for now, you should stop using the dev version (change all occurrences of popupsdev to popups in your monobook.js file and clear your cache). Lupin|talk|popups 21:35, 18 May 2006 (UTC)Reply
I've done some very limited testing, and I think that this bug was fixed shortly after it appeared. Please try thoroughly cleaning your cache and let me know if it is actually still a problem for you. Lupin|talk|popups 04:19, 19 May 2006 (UTC)Reply
Well, foo. I think I've narrowed down the problem. I removed everything from my monobook.js except for your popups and after doing a ctrl-F5 in IE, I am getting the popups to work without a problem. It appears the problem occurs due to some funny interaction between your code and some other stuff that I had put my monobook.js.
In case you care, here's the code that was breaking things

// [[User:Lupin/popups.js]] // document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // Admin-like RC Patrol tools // document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:VoA/monobook.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // Edit replace // document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Voice_of_All/replacetxt.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

Thanks for taking a look anyway. Sorry to have troubled you.
--Richard 05:21, 19 May 2006 (UTC)Reply

I'm getting the same problem, even after ^F5ing. Want me to have a look at the problem? Yours sincerely, Shinobu 20:28, 19 May 2006 (UTC)Reply

Sure, please do. One way to rule out cache issues should be to enter the url of the script, http://en.wikipedia.org/w/index.php?title=User:Lupin/popupsdev.js&action=raw&ctype=text/javascript&dontcountme=s into your browser and check that the date at the top is the same as the date at the top of User:Lupin/popupsdev.js. Lupin|talk|popups 00:14, 20 May 2006 (UTC)Reply

The dates are the same. That could mean that there really is something wrong. I'll look into it. Shinobu 02:58, 20 May 2006 (UTC)Reply

Oops! This is my fault... human caching if you will (I'm testing a different version of the script to the one I've uploaded). I'll upload the fixed version now. Lupin|talk|popups 03:55, 20 May 2006 (UTC)Reply

Heh. So by now you know what is causing the problem, right? I'll tell you anyway.

In IE a regexp is an object, not a function.

  • Previewmaker.prototype.makeRegexp
    change line:
    • case 'function':
    • case 'function': case 'object':

By the way, to be able to debug the script locally, I had to change the following function too:

  • function setTitleBase
    insert at the start of the function:
    • var location___protocol = "http:";
    • pg.wiki.hostname = "en.wikipedia.org";
    • pg.wiki.wikimedia = true;
    change ___location.protocol to location___protocol:
    • pg.wiki.titlebase = location___protocol + ...
    • pg.wiki.wikibase = location___protocol + ...

Can you make it so that the script detects this? E.g. execute the first three lines only if protocol is file: or something. It'll make debugging easier. Yours sincerely, Shinobu 05:44, 20 May 2006 (UTC)Reply

Barnstar thing

 
I award you this programmers' barnstar for creating so many javascript tools. --GeorgeMoney T·C 01:16, 11 May 2006 (UTC)Reply
File:Popups7.jpg
And, I award you the popups barnstar for creating popups. --GeorgeMoney T·C 01:16, 11 May 2006 (UTC)Reply
Thanks! Lupin|talk|popups 00:16, 20 May 2006 (UTC)Reply

Hello!

Your anti-vandal tool is fanstastic. Anonymous_anonymous_Have a Nice Day_Crusher of Hopes and Dreams 20:57, 19 May 2006 (UTC)Reply

Glad you like it. Lupin|talk|popups 00:17, 20 May 2006 (UTC)Reply

Popups revert problem.

I turned of popupOnlyArticleLinks, which is very cool. But there are some problems with reverting by moving over the history tab.

  1. The text for rev is in it's english version.
  2. Important! When clicking revert in action over the date I get rev to revision previous version (compred to the one I hovered). This is wrong because in all other cases I get rev to revision which I hovered.

As you might notice the second bug my cause reverting to unintended version which might be very bad (I've already seen such cases). Please fix this as soon as possible. Thanks.

Nux talk | faster(pl) talk 11:10, 20 May 2006 (UTC)Reply

Sounds nasty. To fix this, I need to know
  • which version of the script you're running. Typing javascript:alert(popupVersion) into your browser url bar and hitting enter should give you a timestamp. (I tried to fix a similar bug in a previous version of the script, but may not have succeeded).
  • which browser and OS you're using
  • the exact english text you're seeing that should be translated
  • the exact urls of the links which, when hovered over, give you badly behaving revert links.
Thanks! Lupin|talk|popups 14:00, 20 May 2006 (UTC)Reply
  • Version: Thu Apr 27 00:40:52 EDT 2006
  • The text is:
Revert to the revision prior to revision 3382793 using [[:en:Wikipedia:Tools/Navigation_popups|popups]]
  • browser/OS: FF/Windows (don't thinks it's dependent, though)
  • Any page, but you can use this: [5] (I'm giving you en.wiki link as it is the same here)
  • At that page you can test by:
    1. reverting directly form history
    2. reverting through history generated by popups when you hover history tab (this is available with: popupOnlyArticleLinks=false).
  • I think I got it now in the history generated by popups links are with diff=prev [6], the same revision in history generated by wiki is:

[7].

  • I also have popupRevertSummaryPrompt=true, which you might also want to enable for tests.
No problem :).

Nux talk | faster(pl) talk 18:42, 20 May 2006 (UTC)Reply

PS: Have no idea where did that english version come from. Maybe some old/new string that weren't translated? You might check pl-file here if you wish.

Without detailed investigation, I expect that the untranslated string has simply not been added to the polish translation. It has the entirely unbeautiful name 'defaultpopupRevertToPreviousSummary'.
As for the main issue, I think the script is behaving as designed, but I can now see that it is very confusing (especially since the popup hint over the revert link is incorrect - the english edit summary is correct however). This behaviour comes about because:
  1. When hovering over a diff link, the script will try to revert to the older of the two versions being compared.
  2. In the history preview, the dates are diff links showing changes between that version and the previous one, so that you can see what's changed in a subpopup.
This means of course that clicking revert from such a subpopup over a date in a history preview makes you revert to the revision prior to that revision as of that date. If you see the diff preview in the subpopup then this makes sense: you're undoing that edit (and subsequent edits). If you think of the subpopup as just referring to that revision (quite natural) then this doesn't make sense at all.
Probably the simplest thing for me to do would be to separate out the (last) links and the date links in history previews, like the history page itself. The reason I didn't do this before was to save space in the popup. Does this sound like a good idea, or do you have another idea? Lupin|talk|popups 19:03, 20 May 2006 (UTC)Reply
I've made these changes in the dev version. Lupin|talk|popups 20:12, 20 May 2006 (UTC)Reply

The solution seems reasonable, thanks :).

About 'defaultpopupRevertToPreviousSummary' - it's missing in the User:Lupin/strings-draft. I've compared those in the main file and in the draft and there are some not included in the main file and some in other places... Maybe you could just copy over it to save the trouble of comparing?

Anyway as I'm here anyway. Maybe you might want to look at small corrections I've done to the CSS pl:w:Szablon:Navpop/css. This makes actions menu a little bigger so you want accidently go of it. And this reminds me one more thing...

Could you add a setting for the time when the popups disappears? Giving at least half a second would help me sometimes.

Again very grateful for your work, Nux talk | faster(pl) talk 21:14, 20 May 2006 (UTC).Reply

User:Lupin/strings-draft isn't the canonical source for strings - that's the script itself :-) They're quite easy to find, at the bottom of the file.
I like your CSS! I'm not sure I understand the feature request. I think you mean that you want a time period after the popup appears during which it will not disappear even if the mouse exits the popup, which seems quite sensible. Is this correct? Lupin|talk|popups 22:25, 20 May 2006 (UTC)Reply
Or maybe you mean that in order to banish the popup, the mouse has to remain outside it for a fixed length of time? Lupin|talk|popups 22:31, 20 May 2006 (UTC)Reply

I had some problems figuring out what's the difference ;)... But yes, I meant the latter. That is - no matter how much time passed since the popup appeared, if the mouse just goes of it for some time it will still remain visible for that (short) time and I can go back to it to prevent it from disappearing at all. This is to make the popup more stable despite accidental mouse movements. Nux talk | didn't answer? drop a note 13:57, 21 May 2006 (UTC)Reply

I've added something like this to the dev version. It may need tweaking, so let me know what you think. You can control the hide delay with the variable popupHideDelay (in seconds). Lupin|talk|popups 00:03, 26 May 2006 (UTC)Reply

Cool. It works perfectly :). I guess your pretty border of all this thankyous ;), but thanks - all th things I reported now work. I have some other idea but I'll start new topic... Nux talk | didn't answer? drop a note 01:34, 1 June 2006 (UTC)Reply

Smile :)

G.He 23:10, 20 May 2006 (UTC)Reply

Hello! I would like to request a feature to be added for disambiguating links actual articles. A few times, not often, I've been tempted to temporarily replace an article with a dab page while I use your tool to dab the links. I suspect it would be a pain to parse an articles dablinks/hatnotes but maybe it would be possible to add alink to a disambiguation page at e.g. Current article title (disambiguation). Maybe a link could be added to the actions menu when popupFixDabs is true, or maybe just a little green link which could be followed when popupSubpopups is set? And so as to not slow down the tool, the page might not even need to be checked for beforehand. Thanks! Ewlyahoocom 23:37, 23 May 2006 (UTC)Reply

Here's a quick hack:
function dabomatic(data,download) {
  var art=Title.fromURL(download.url).toString();
  if (art.indexOf('(disambiguation)')>-1) { return ''; }
  art = art + ' (disambiguation)';
  return changeLinkTargetLink({ newTarget: art, text: 'Dab to '+art,
	      hint:'Change all these links to '+art, 
	      clickButton:'wpPreview', minor:false });
};
extraPopupFilters=[window.dabomatic];
You can try adding this to your user javascript file (the same place you installed the popups script). Lupin|talk|popups 00:59, 24 May 2006 (UTC)Reply

Popups

Would you mind adding a purge link? http://en.wikipedia.org/w/index.php?title=PAGENAME&action=purge Thanks, Ingoolemo talk 17:14, 25 May 2006 (UTC)Reply

Good idea - this is now in the dev version (if you use the menus, that is). Lupin|talk|popups 21:25, 25 May 2006 (UTC)Reply

Popups

While I like the popups feature, they seem to be getting cluttered with things that one would almost never use/or need to. Can you remove view|simple and null edit|purge please. Perhaps you can have options to turn these off.Voice-of-AllTalk 14:57, 26 May 2006 (UTC)Reply

Yes, this has been worrying me too. I've added a new structure, so if you say popupStructure='shortmenus' then things should be improved. I wonder if this should be the default setting... Lupin|talk|popups 14:33, 27 May 2006 (UTC)Reply

Help me! Help me please!

Wondering if somewhere in your vast javascript knowledge you might have a solution to the automatic edit view produced by redlinks. I find that I'm constantly slowed down, considerably, when doing things like checkuser because my js tabs don't work on edit views, only the regular page view. Any ideas on a way to either stop redlinks from automatically going to an edit view, or to reload nonexistent pages so they are no longer edit views? Any help would be greatly appreciated, as it would cut the time spent checking dramaticallly. Essjay (TalkConnect) 00:34, 27 May 2006 (UTC)Reply

Yeah, that would be great. --GeorgeMoney T·C 00:48, 27 May 2006 (UTC)Reply
This should work, I think.
function stopRedlinksEditing(){ 
    var len=document.links.length;
    for(var i=0; i<len; ++i) {
	var l=document.links[i];
	if (l.className=='new') {
	    l.href=l.href.replace('&action=edit', '');
	}
    }
}
addOnloadHook(stopRedlinksEditing);
Lupin|talk|popups 02:17, 27 May 2006 (UTC)Reply
It works perfectly! --GeorgeMoney T·C 02:27, 27 May 2006 (UTC)Reply
Deeeeeelightful! You are now my official javascripter! <wanders off to think of other tasks, besides the one he has listed at Wikiproject User scripts> Essjay (TalkConnect) 03:08, 27 May 2006 (UTC)Reply

"MISSING formal paramater"

Popups are dead, that is, the error it gives when it crashes at this line:

pg.structures.menus.popupTopLinks = function (x, short)

I don't know what the issue is.Voice-of-AllTalk 21:36, 27 May 2006 (UTC)Reply

Which browser are you using? I haven't seen this problem myself. Lupin|talk|popups 22:52, 27 May 2006 (UTC)Reply
FF/Netscape. I swiched the 90 RC patrollers to regular popups until popupsdev is fixed. Popups no longer work at all due to this.Voice-of-AllTalk 22:57, 27 May 2006 (UTC)Reply
Thanks, it should be fixed now. It's strange that I didn't notice this in firefox, though... Lupin|talk|popups 23:03, 27 May 2006 (UTC)Reply
Heh..I was just about to tell you that is was up again. Good work, now how about that filter recent changes stuff :)?Voice-of-AllTalk 23:04, 27 May 2006 (UTC)Reply

Non-admins

90+ users use script that involves User:VoA/monobook.js. If you look at function AddRevertButtonsnorm(), you will notice that it adds revert links on. Could you make Filter Recent changes add these, and perhaps add something like User:Voice_of_All/Revert/monobook.js to the recent changes tool so that it know when to revert. It would have to have to check if you are using monobook or not. If that is not feasible, I'll try to see if I can somehow edit the filter recent changes page (kind of hard with no real DOM, I don't know...). Thanks.Voice-of-AllTalk 21:54, 27 May 2006 (UTC)Reply

Is the idea here to add revert links for non-admins? I don't see a really easy way to use the godmode revert here, but I could probably do something else instead to get that. Lupin|talk|popups 01:09, 28 May 2006 (UTC)Reply
I've added non-admin revert functionality to the script. You have to click a checkbox to use it; hopefully it's self-explanatory. Lupin|talk|popups 02:40, 28 May 2006 (UTC)Reply
Thanks...my idea was to make it so non-admins can still revert instead of having to click "last" and the revert, meanwhile the list piles up.Voice-of-AllTalk 02:48, 28 May 2006 (UTC)Reply
They can do exactly that: when the final checkbox is checked, the rollback link at the end of each line works for non-admins. Lupin|talk|popups 02:51, 28 May 2006 (UTC)Reply
Sweet, the tryrollback() is very similar to my revert script for IE, though my revert script switches to GML for FF/Netscape (after I tried everything to get the parser to work, I just gave up). Either way is fine, though GML has "&token=" for security, as the IE one has "&byuser=". "&byuser" in User:Voice_of_All/Revert/monobook.js makes it hard to make annoying revert links b/c they would only work on a single user. One thing I wonder, how do you get it to rollback for IE? Don't you have to acces the history page and get the first different user? Whenever I do that on IE, it would fail since IE can't parse any XML here, my IE version actually has to briefly go to the history page, since it can't HTTP request, like FF/NetS.Voice-of-AllTalk 02:59, 28 May 2006 (UTC)Reply
I haven't tested with IE at all, as I don't have Windows. I expect it to work, though. I'm not parsing xml; instead, I'm grabbing the history data with the query interface by Yurik. It's great for this sort of thing - it's very fast and its output, JSON, is easy to handle. It's also fairly new, which I imagine is why GML doesn't use it.
There are no edit tokens or anything like that. If the worry is that someone could persuade someone into clicking a malicious link, then I'm afraid that every user of popups is already vulnerable to such an attack. On the other hand, the fix is just another click away, so I'm not terribly concerned about this. Lupin|talk|popups 03:09, 28 May 2006 (UTC)Reply
I'll have to look into the query feauture. On an unrelated topic, I have been planning on making a spell checker for articles in edit mode for some time, and your Live Spellcheck seems quite interesting. Do you have any suggestions for how I should go about this? Will it be a huge list of regex checks that prompt if they are met. Where can I get a good list of commonly misspelled words and there correct spelling?Voice-of-AllTalk 03:13, 28 May 2006 (UTC)Reply
I'm not sure of the best way to do that. Note that Bon Echo already includes a native spellchecker, though, and I believe that there are firefox extensions around to do it in current versions. My "Live spelling" thing does indeed use an enormous regexp, using the data at Wikipedia:Lists_of_common_misspellings/For_machines. It is limited to that wordlist, though, and this approach probably wouldn't scale to a more complete dictionary. Lupin|talk|popups 03:18, 28 May 2006 (UTC)Reply

Asking help

Hello. I'm not a programmer, all I can do is to understand some code, and copy and paste pieces to make things (that's how I could learn some html, copying tables). I was wondering if you know how to make an ... a box to type text like the edit summary's box (to recive an input) and the result beain a link containing that input (i.e. the input is and IP, 22.22.222.222 and the result is being linked to the WHOIS page, or any other identifier)? —Argentino (talk/cont.) 21:11, 28 May 2006 (UTC)Reply

Something like this?
function linkBox(){
    var d=document.createElement('div');
    var t=document.createElement('input');
    var s=document.createElement('span');
    t.type='text'; 
    t.onkeypress=function(){ 
	s.innerHTML='<a href="http://whatever/' + t.value + '">linky linky</a>';
    };
    d.appendChild(t);
    d.appendChild(s);
    var loc=document.getElementsByTagName('h1')[0];
    loc.parentNode.insertBefore(d,loc);
}
addOnloadHook(linkBox);
Lupin|talk|popups 21:34, 28 May 2006 (UTC)Reply

Yes, thankyou a million times! I don't know how to make it work outside preview window but it is much better for me now. —Argentino (talk/cont.) 21:03, 30 May 2006 (UTC)Reply

A Note on Global BL and a Tool Request

I'm not sure whether or not this will effect what you're doing; however, there are a few problems with my current global lists that I will need to correct in the next release. The main problem is that anyone can remove a user from the global list but not from each individual's local list; thus, if Jimbo gets blacklisted, and everyone goes and retrieves the global BL, we can remove Jimbo from the list, but we can't do anything about the next time User:Example uploads his list, with Jimbo on it, back to the global list. My solution is pretty simple: imbed another list inside the current one for removed users that will not allow certain users to be reloaded to the list. I'll likely keep the same basic encryption scheme and stick the list simply within a separate set of brackets, so as long as you merely read the list enclosed by begin/end dump, this shouldn't effect what you're doing--just wanted to give you a heads up.

At the same time, I also have an idea completely unrelated to VandalProof or your anti-vandalism tool that I was going to suggest to you but kept forgetting. You seem to be the definite go-to guy for Wikipedia JS coding, whereas I'm quite a novice in the language, so I thought I'd see if you thought this was do-able. One thing that I would really like would be to have the oldids of each version appended at the end of the date in history views. I wrote a routine to do this in VandalProof, but the only way I knew to do it was to scrape the HTML of the page and write it back, which subsequently disables JavaScript on the page (including popups and the handy-dandy radio buttons). Basically what I want is to see is "08:30, 29 May 2006 (UTC) (99999)" on each item in the history without disabling the JavaScript on the page. Anyway, it's certainly not a high priority, so please don't let it get in the way of the other, much more important work you're doing. But if you could even just generally point me in the direction of some routines or JS commands to do this (or just tell me that it can't be done with Java), it would be much appreciated. Thanks. AmiDaniel (talk) 08:30, 29 May 2006 (UTC)Reply

Thanks for the heads-up on the blacklist. Here's a JS function that should do the job:
function addOldids(){
    var re=/index[.]php[?]title=[^&]*&oldid=(\d+)$/;
    var len=document.links.length;
    for (var i=0; i<len; ++i) {
	var a=document.links[i];
	if (re.test(a.href)) {
	    var m=a.href.match(re);
	    a.innerHTML += ' (' + m[1] + ')';
	}
    }
}
// for testing from monobook.js: addOnloadHook(addOldids);
Possibly unwanted side effects: this will affect all links to oldids with urls like those on the history page, and it'll happily run on any page. (This could be fixed if needed). Lupin|talk|popups 13:27, 29 May 2006 (UTC)Reply
Wow, thanks! I just added "if (window.___location.href.indexOf("&action=history") != -1)" before the addOnloadHook call, and now it works perfectly! That's exactly what I needed. AmiDaniel (talk) 20:40, 29 May 2006 (UTC)Reply

Question about antivandal tool

I have been using your tool for quite a while now and recently, I found new options at the top of the "filter recent changes" page. I was wondering what that new "use non-admin rollback" option does. --Evan Robidoux 19:47, 29 May 2006 (UTC)Reply

It makes the rollback links work for users who are not admins, provided they have suitable javascript support. If they don't, then clicking any rollback link should tell them how to get it. (Admins can use this too if they want, but there's probably not much point). Lupin|talk|popups 01:21, 30 May 2006 (UTC)Reply
Could you clarify what is meant by javascript support? Do users who use popups have the capability to make use of that rollback feature, for example? Cowman109Talk 01:35, 30 May 2006 (UTC)Reply
Yes, they do. People who don't want popups can still get this support by adding {{subst:js|User:Lupin/autoedit.js}} to their user javascript file, but popups users don't have to do anything. (I haven't tested this standalone autoedit.js in a while, though). Lupin|talk|popups 01:37, 30 May 2006 (UTC)Reply

Aniki

I tried your tool on http://www.aniki.info/, but it doesn't work for me in either Firefox 1.5.0.3 or IExplorer 6. Cache was cleared.

It works on the german wikipedia and here. -- Ninjamask 18:40, 30 May 2006 (UTC)Reply

Which tool? Lupin|talk|popups 19:03, 30 May 2006 (UTC)Reply
By the way, you should check that user javascript and css are enabled on that wiki. Ask your site admins if unsure. Lupin|talk|popups 21:07, 31 May 2006 (UTC)Reply

Problem with recent changes filter

For some reason the word "penis" is no longer being considered a "badword" by the filter even though it appears to be listed. I made a dummy edit to Penis and though the word "penis" is in the article, it was not caught. You may want to look into this.--Conrad Devonshire Talk 01:59, 31 May 2006 (UTC)Reply

Thanks. There was a missing slash at the end of the line in the badwords list. (Regexp lines must start and end with a slash or they won't work). Note however that the tool is not guaranteed to examine every edit, as it only takes periodic samples from the RSS feed, which itself is not guaranteed to record every edit. Lupin|talk|popups 02:30, 31 May 2006 (UTC)Reply

good work

I must say, good job24.13.187.217 04:24, 31 May 2006 (UTC)Reply

Popups feature request: deletion log

Hi, and thanks for your excellent WP:POP tool. I wonder if you could add the deletion log to the actions menu for an article. I may be wrong, but there appears to be no one-click way of otherwise accessing it from the standard interface. Thanks for giving it consideration! Best, Sandstein 04:25, 31 May 2006 (UTC)Reply

Lupin.

Hello, Lupin. It's easy to remember your ID. Lupin is character that appears in Harry Potter story, Movie. I'm Harry Potter fan too. I think that you are also big Harry Potter fan. Anyways, when I checked your sandbox. There are many weired worlds in your sandbox as I observed your sandbox. But, you already reverted it back to past one. Anyways, I would like to ask you about something. How could I create my own sandbox? Please, Reply on my talk-page. I understand you don't like to reply on someone's discussion page. Anyways, I hope you could send me message. Cheers~!! Daniel5127, 06:09, 31 May 2006 (UTC)Reply

replied on his talk. --GeorgeMoney T·C 06:27, 31 May 2006 (UTC)Reply

Yadav

You are invited to discuss your claims on yadav page.Holywarrior 14:00, 31 May 2006 (UTC)Reply

Which claims? Lupin|talk|popups 14:05, 31 May 2006 (UTC)Reply

WarWiki

We have a budding wiki. Can you bring your tool to it?-GangstaEB (at war)-15:05, 31 May 2006 (UTC)Reply

You mean the popups tool? It should work on wikia wikis (let me know if not). If you want to install it for all users you could try adding it to the global monobook.js on that wiki. The query.php extension doesn't seem to be installed on that wiki, so you should set popupUseQueryInterface=false (which will disable some functionality) or get it installed. Lupin|talk|popups 19:49, 31 May 2006 (UTC)Reply
No. I mean the Wikipedia-famous anti-vandal tool(No sarcasm intented). We have one admin who ain't around 90% of the time. We're afraid Willy will be browsing wikis and see ours. We need something to stop him quick because WE HAVE (BASICALLY) NO ADMIN TO BLOCK HIM!!!-User:Gangsta-Easter-Bunny/Sig--13:02, 1 June 2006 (UTC)

Sorry I could trace it(in response to MY edit on yadav)

I am really sorry for not having done enough exercise to find out the real person behind mischief.I am 4 months old user on wikipedia and really ashamed of having done the damage unknowingly.I think you will forgive me for the mistake.Infact I have build up most part of the article and ppl who edit it without discussing makes me lose temper and it has happened twice in succession.I admit I should have done more exercise before pointing fingures at you or anybody.Holywarrior 15:08, 31 May 2006 (UTC)Reply

That's OK, no harm done. Lupin|talk|popups 19:49, 31 May 2006 (UTC)Reply

Popups

Hey Lupin, is it possible to turn off the edit links popups add to diffs? It breaks some of the other things in my monobook. (My monobook has this other bug too, if you have time to look at it....) Prodego talk 19:09, 31 May 2006 (UTC)Reply

If you want to disable diff previews, set popupPreviewDiffs=false. Is that what you mean by edit links? Lupin|talk|popups 19:51, 31 May 2006 (UTC)Reply
No, when I open up I diff, I see an edit link next to the revision date (a very new feature?), I think I narrowed it down to being in popups. Is this not a popups issue? Prodego talk 19:54, 31 May 2006 (UTC)Reply
Nope, not popups. Nothing should be altered in the way the page appears by the script. Lupin|talk|popups 19:59, 31 May 2006 (UTC)Reply
Well I still get it with only popups in my monobook, and I even get it with nothing in my monobook. No relevent changes to the global pages though. Do you see this as well? Prodego talk 20:04, 31 May 2006 (UTC)Reply
Nope. Must be caching issues. Solution: view source and go to the exact url used by your browser to grab the monobook.js file (it should have action=raw in it somewhere). Reload that until it corresponds with the current version. Lupin|talk|popups 20:06, 31 May 2006 (UTC)Reply

I cleared my cashe and cleared the monobook files. I still get the links.

Prodego talk 20:10, 31 May 2006 (UTC)Reply

You're right - so do I! It probably is a new mediawiki feature. Lupin|talk|popups 20:13, 31 May 2006 (UTC)Reply
Oh, I am glad itisn't just me. So could you possibly figure out why this breaks my monobook.js? It is "the warn tab", which appears on diff pages. It now links to User:Edit rather then the person who made the edit. There is also a much more complex bug that no one seems to be able to figure out how to fix. Prodego talk 20:20, 31 May 2006 (UTC)Reply
I haven't looked at the code, but I fail to see why you need a device to "userify" links. There are already links to editors' user pages on diff pages. What are you expecting to see? Lupin|talk|popups 21:06, 31 May 2006 (UTC)Reply
It enables you to leave a test message linking to the article name. Prodego talk 21:08, 31 May 2006 (UTC)Reply
OK, I think I have the solution. Try changing
      var vandalname = rcol.getElementsByTagName('a')[1].innerHTML;
to
      var vandalname = rcol.getElementsByTagName('a')[2].innerHTML;
Lupin|talk|popups 21:25, 31 May 2006 (UTC)Reply
That's it, thanks very much! Now if you want challenge here is the big bug. It is either in the monobook.css or .js and the bug is: Essjay's User functions tab limits the number of tabs I can add to a page to 6. This causes a problem on deletion pages, where I want about a dozen tabs. Feel free to not look at this one, but if you do know the problem help would be appreciated. (I think it is the css file, do you know how to program that?) Prodego talk 21:41, 31 May 2006 (UTC)Reply

Popups in de:

In the german wikipedia I'got never ending errors like this:

error: log is not defined
line: 4407
error: pg is not defined
line: 1209
error: Drag is not defined
line: 4640

and the most

error: pg is not defined
line: 2960

But my needed funktions seems to work (I can't see an malfunktion). ps. I use FF and I don't think that's crashed with my other scripts. Best regards --Olliminatore 20:44, 31 May 2006 (UTC)Reply

Never ending, eh? I get these occasionally. I don't know what causes them, though. Please let me know if you can figure it out! Lupin|talk|popups 21:03, 31 May 2006 (UTC)Reply

I've been thinking about that and I belive this is because popups is quite huge ;). The size of the file might be causing browsers to parse it as the last one that is updated. I don't have any proves of such behavior, but it usually happens when wiki is getting slow or very slow. So maybe there just isn't any solution to this? Or you could add some additional if-s around lines that gives errors? --Nux talk | didn't answer? drop a note 02:10, 1 June 2006 (UTC)Reply

Here's an idea for you

Your vandal tools are stunning. I especially like "filter recent changes". However what I desperately want is this: a page that looks exactly like Recent Changes, but simply updates.

So a carbon copy of RC that scrolls as changes are made. THAT would be awesome. (Esp. for RC patrolling!) Simplest way to do this is just to somehow load RC onto a special User:Lupin/RC realtime page and then force it to keep re-checking the information (refreshing if need be). -- Alfakim --  talk  21:43, 31 May 2006 (UTC)Reply

Like User:Lupin/All recent changes? Lupin|talk|popups 22:13, 31 May 2006 (UTC)Reply
Yes like that - but rather than in the current "scroll down" form, new updates appear at the TOP - like it's a live feed. t'would also be nice to have the normal RC format. The problem with the current thing you have there is that, left alone, it quickly clogs up and becomes useless (too much data). Perhaps a checkbox - "New content replaces old". The idea i'm thinking of is like an RC page but where the content is ALWAYS the actual recent changes. this would be great as RC is faster (your pages, although more functional, are slower to work - especially on certain browsers). -- Alfakim --  talk  22:29, 31 May 2006 (UTC)Reply
Continuous updates would be possible, but may lead to an unacceptable strain on the servers, I'm not sure. I don't really see how this would be more usable than the All recent changes page, since the edits would come thick and fast (more than 1 per second). You can get that in scroll down form by typing javascript:void(recent2.outputPosition='top') in the address bar while viewing that page and hitting enter, but the problem is that the new content move old stuff down, which is not so practical. Lupin|talk|popups 03:19, 4 June 2006 (UTC)Reply

Inkscape

Hi Lupin, I replied here. --Flominator 23:00, 31 May 2006 (UTC)Reply

Popups-light

Have you ever thought of popups-light? It would be nice if some of the code would be incorporated with wiki also for guests (IPs). For example one could go over some inner-link and get quick info about some article whout actualy going in this article. The problem is usually with all sorts of abbreviations and such and this could even be good to wikiservers (user wouldn't click to the article). In addition I belive that wiki php-programers could work on a way to determin header infromation of some article and that way popups wouldn't load whole article (it does that now, correct?). --Nux talk | didn't answer? drop a note 01:57, 1 June 2006 (UTC)Reply

This is a nice idea. As a start, I've made a version of the script which does previews and nothing else in 111K (77K with comments and whitespace stripped). This could certainly be reduced if the script was written from the bottom up with a view to small code size, but I've set things up so that I can produce a lite version from the full version which means less code to maintain.
Hm... I was hoping it could be smaller. I guess the size is because of there's a lot of parsing the wikicode there?
Well the main problem is that the code is pretty crufty. However, it's good to remember that the servers automatically gzip everything they send, so that 77K gives a download of closer to 25K. Lupin|talk|popups 23:36, 2 June 2006 (UTC)Reply
You're right about the script fetching full versions of articles each time. However, I don't know if the devs would be happy to add ways to get the start of an article to mediawiki since this involves heuristic guesswork which depends on the conventions of the wiki (do you count the bit which says "go here for the disambig page"? do you count taxoboxes? etc etc). Still it'd be nice to get them to do this stuff serverside... Lupin|talk|popups 12:51, 1 June 2006 (UTC)Reply
I think a version like "everything until first header" would be nice to start with. It should work in most (all?) cases. This usually contain some boxes, but I think they could be left alone so you can choose to parse/include them or not. Nux talk | didn't answer? drop a note 22:41, 2 June 2006 (UTC)Reply
I'll experiment with adding a mode to the script which has this behaviour to see if there are pages which would preview badly. For example, many new pages start with a heading, so these wouldn't look so good, but there may be workarounds there. Lupin|talk|popups 23:37, 2 June 2006 (UTC)Reply

Turning off popups

Is there a way to temporarly disable some functions of popups? Like somewhere to click to temporarly (just for currently viewed page) to disable loading of preview of an article. --Nux talk | didn't answer? drop a note 01:57, 1 June 2006 (UTC)Reply

No, not currently. The main issue is figuring out a nice ui for this... any ideas? The script is currently skin-agnostic and I like it that way, so I'd prefer not to have to add a toolbox link or tab; keeping everything inside a popup would be good. Lupin|talk|popups 12:53, 1 June 2006 (UTC)Reply
Hm... Maybe some dropdown menu in the "p-personal"? You could even have some kind of checkboxes in it I think... Nux talk | didn't answer? drop a note 22:41, 2 June 2006 (UTC)Reply
I've added an extra menu inside the popup for this sort of thing, which seems to work OK. I'll upload this to the dev version before long. Lupin|talk|popups 23:39, 2 June 2006 (UTC)Reply

Popups-easy

I remebered one more... I was thinking of working on some javascript add-on that would generate JS code from an easy to fill HTML form. Some first version would simply be an easy way to configure popups in that manner. What do you think about it? --Nux talk | didn't answer? drop a note 01:57, 1 June 2006 (UTC)Reply

I think this sounds great! Lupin|talk|popups 12:54, 1 June 2006 (UTC)Reply

This would be quite easy if done outside of Wikipedia, but I'm not sure if this can be done inside...

To make it inside I'm thinking of creating some simple table with listed options and possible values. In that table there would be some span elements with title that would be the code to add. Those spans would have to have onclick event added (spans would have some specific class). Then when a user would click some submit-like link the text would somehow appear in the edit textarea... Not sure if the last is doable at all... Another problem would be - what if a user would have some previously set options? The text would already be in his .js... Or maybe this shouldn't be done so simple and user would simple have to copy paste some generated text. Nux talk | didn't answer? drop a note 22:41, 2 June 2006 (UTC)Reply

If you can create a nice UI for me, that'd be a big first step. We don't even need the copy paste - the user could click a button and the tool could alter his js file in the background. Probably it'd be simplest to detect existing customization and abort if we find any. We'd also have to be able to recognize prior customization blocks added by the tool and parse them, but again this is quite doable. Lupin|talk|popups 23:42, 2 June 2006 (UTC)Reply

Popups - warnings

Sorry to spam you with all sorts of things at one time, but this might be important.

I've mentioned some problems with warnings in JavaScript console and then you said you don't have any. I also saw none and thought this was fixed, but I've simply forgot that I enabled strict mode of JS...

Any way the warnings are still there. If you have webdeveloper then just go to:

Web Developer Options -> Miscellaneous -> Enable strict warning

And now reload and watch the yellow triangle appear and get used to it as almost all pages on the net have it ;). Most of warnings are probably not dangerous, but some might be or may point you to solving some unsolved problem (might even get popups to fully work under Opera and IE). Most of the warnings are:

  • does not always return a value (probably not important, but it could)
  • assignment to undeclared variable (usually just some "var" keyword is missing)
  • reference to undefined property (if this didn't generate an error then is usually OK).

Just recently I've made some JS algorithm test page that worked on FF, but not on both Opera and IE. Finally I've run Opera JavaConsole and found that there were some errors not shown in FF console. This in particular were:

const OUTPUT_ELEMENT_ID = 'output'; // not working (string can't be const?)

and

var OUTPUT_ELEMENT_ID = 'output';

But I also had some issues with innerHTML (had to use createElement func.).

Hope this will be of any help, Nux talk | didn't answer? drop a note 02:47, 1 June 2006 (UTC).Reply

Thanks, I found one "assignment to unassignment variable" which wasn't a red herring :) Lupin|talk|popups 13:09, 1 June 2006 (UTC)Reply

Bots.

Hello, Lupin. Again, Someone already responded my message yesterday. I'm so curious about wikipedian bots right now. Lupin, When I checked article for vandalism, there are some wikipedian bots who put another version language. Such bots User:YurikBot. In my opinion, Bots are usually fix the spelling, grammar mistakes in article, and put another language version from the source of article. To Arabic, Hebrew, Korean, Japanese, Chinese, French, Spanish, Italian, Russian, Armenian, German, Chinese etc. I personally think that some bots usually fight with vandalism. Lupin, I just visited Chinese Wikipedia, (P.S I'm Chinese Wikipedian), I saw that YurikBot added language form in Chinese Wikipedia. Does Wikipedian Bot know every language version because I really want to know about Bots. Does Wikipedian make an extra ID for Bots? Is making Bot ID for only admin? What do they use their own Bots ID for? Just explain to me in my discussion's page. I understand you don't like to respond in my talk-page. But please, Reply on my talk-page. Thanks. Daniel5127, 06:21, June 02 2006(UTC)

Replace tab

I was playing around with regexps on Wikisource a few days and eventually got the point where I was running a monotonous search/replace using the Replace tab from here. I decided to use the AddLiMenu function to create a dropdown of regexps, so that you could just click and have them done, instead of clicking and pasting the regexp into the "Search", then hitting enter and typing the replace into "Replace".

I got it working with a simple regexp: (\n), replace with $1$1, which doubles the whitespace (used it extensively when converting the Bible texts from HTML to templates). One of our latest projects is converting a rather ugly HTML header (found here) into a simple template. The main issue is that, despite escaping the backslashes in the regexp, jumping through several hoops, dancing naked in the moonlight, etc, I can't get it to work. The regexp <div[\\s\\S\\n\\R ]*\\[\\[EBD1897:([^|]*)\\|[^\\]]*\\]\\][\\s\\S\\n\\R ]*\\[\\[EBD1897:([^|]*)\\|[^\\]]*\\]\\][\\s\\S\\n\\R ]*\\[\\[w:([^|]*)\\|[^\\]]*\\]\\][\\s\\S\\n\\R ]*</div> seems to work fine when simply applying it to the page, but as an actual function, like this, it doesn't work. Any idea on how I might get it to work? Jude (talk) 07:24, 2 June 2006 (UTC)Reply

I'm not sure - quoting issues are often hairy. I'd suggest sidestepping them with something like this:
<nowiki>
// global scope
function replWS(){
  replace2(/whatever/, '$1$1');
}
function moonlitReplace(){
  replace2(/nasty regexp/, 'nasty replacement');
}
function setupReplacements() {
  var tabs= ...;
  addlimenu(...);
  var replf=...;
  addlilink(replf, 'javascript:replWS()', 'foo', 'bar');
  addlilink(replf, 'javascript:moonlitReplace()', 'baz', 'quux');
}
addOnloadHook(setupReplacements);

</nowiki>

Lupin|talk|popups 12:18, 2 June 2006 (UTC)Reply
Thanks for the suggestion! The /regexp/ didn't work (broke everything, actually), and quoting it with both " and 's doesn't work either... It dies with a "Error: unmatched ) in regular expression" (from the Firefox JavaScript console). I tweaked it so that instead of replacing that regexp, it prompted for it, and pasted it in, and it worked on that occasion... But eh. Perhaps I'll just keep it on the clipboard :) Thanks for your suggestions. :) Jude (talk) 13:59, 2 June 2006 (UTC)Reply
Did you try changing all the double backslashes to single backslashes? Lupin|talk|popups 14:51, 2 June 2006 (UTC)Reply

thanks for popups

congrats for your script - this is sooo cool ! — MFH:Talk 14:19, 2 June 2006 (UTC)Reply
(PS: sorry for this unproductive edit, but I felt the urge...)

Yes, thanks from me too - and the latest changes to make the actions/user menus nicer is much appreciated. -Joshuapaquin 02:52, 4 June 2006 (UTC)Reply

Can't use the popups in some cases

Check out this bit of vandalism. [8]

When I hover over the action link, the menu popup where I can revert has a space between it and the position of my mouse cursor. Since the popup disappears the moment I'm not hovering on action or the menu itself, it disappears when I go to it due the spacing inbetween the menu and the actin link. It even does this when hovering over that external link. Kevin_b_er 08:35, 4 June 2006 (UTC)Reply