Wikipedia talk:WikiProject User scripts/Scripts/Twinkle/Archive Mar 2007
From Wikipedia, the free encyclopedia
[edit] Compatibility with other tools
Is Twinklefluff compatible with WikiEd or Lupin's Popups? -Joshuapaquin 02:55, 1 February 2007 (UTC)
- Well, you could try it and see... ― GrimRevenant 03:45, 1 February 2007 (UTC)
- I have a long history of breaking things in my monobook.css through incompatibilities. And then I can't fix them, even when I revert, because browsers hate me. But I guess I'll give it a shot. -Joshuapaquin 05:51, 1 February 2007 (UTC)
- Well, it seems to work mostly, though there are some bugs. I don't know whether those are compatibility issues with other monobook.js tools, or whether they're just general browser issues. -Joshuapaquin 01:07, 5 February 2007 (UTC)
- I have a long history of breaking things in my monobook.css through incompatibilities. And then I can't fix them, even when I revert, because browsers hate me. But I guess I'll give it a shot. -Joshuapaquin 05:51, 1 February 2007 (UTC)
So here's an incompatibility issue with WikiEd: The warning/caution/etc tabs don't insert the appropriate text into a WikiEd editing box, only a standard editing box. The edit summary does work. -Joshuapaquin 22:00, 15 February 2007 (UTC)
I've only been testing a little while, but it does seem to be compatible with Lupin's popups and Anti-Vandal Tool. Danski14 18:21, 17 February 2007 (UTC)
[edit] WP:TWINKLE in edit summary
How can I remove TWINKLE from my edit summaries? The cfg option to remove it worked before, but now no longer. -- Stbalbach 22:44, 17 February 2007 (UTC)
Here are my relevant cfg settings:
-
- addAdToSummary : false,
- addAdToDeletionSummary : false,
- deletionSummaryAd : ""
- SummaryAd : ""
-- Stbalbach 22:46, 17 February 2007 (UTC)
-
- Changing the "summaryAd" and "deletionSummaryAd" from their default "TWINKLE" should work. Worked for me at least.Wikidudeman (talk) 00:19, 18 February 2007 (UTC)
[edit] Signature
My sig shows up as ffm on 2007-02-19 22:01
22:01, 19 February 2007 (UTC) (~~~~) when it should be ffm on 2007-02-19 22:01
(~~~). Can I change a varriable in TF to fix this? ffm on 2007-02-19 22:01
- I would suggest not using such type of signature, as it interfere with automatic bot-archiving. →AzaToth 06:20, 20 February 2007 (UTC)
[edit] Not Working
For some reason my monobook isn't working correctly with the script. It doesn't even look right. Anyone know the problem? --K.Z Talk • Vandal • Contrib 09:42, 20 February 2007 (UTC)
-
- It's conflicting with your other tools. You need to get rid of the edit counters.Wikidudeman (talk) 20:00, 20 February 2007 (UTC)
[edit] Getting Started with Scripts
I noticed you trying out some scripts on Wikipedia:Sandbox, so I thought you'd be a good person to ask a question. I'm a professional coder with a fair knowledge of Javascript and was thinking of trying out a few things with scripts within Wikipedia. I was wondering if you might know where I can look to find:
- A tutorial on user scripts
- Some information on how to release a script with a useful feature for general use.
Thanks. --KNHaw (talk) 22:09, 28 February 2007 (UTC)
- Mostly I'm using http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference as a reference, not really using any tutorials. →AzaToth 13:12, 1 March 2007 (UTC)
[edit] Twinkle dies in Konq
when trying to use "restore this version" in Konqueror, I get
Error: TypeError: Value undefined (result of expression revertXML.overrideMimeType) is not an object. Cannot be called.
--MindlessXD 21:56, 1 March 2007 (UTC)
[edit] {{db-autobio}}
It appears there is consensus to delete this template, and it will be going by the wayside within the next few days: Wikipedia:Templates_for_deletion/Log/2007_February_21#Template:Db-autobio. You might like to change the speedy deletion script to show as much. Part Deux 20:28, 25 February 2007 (UTC)
[edit] Help!
I tryed it out but it does not do anything. What did I do wrong? User:Mschel/monobook.js -Mschel 14:46, 5 March 2007 (UTC)
[edit] Nothing works!
None of the features of Twinkle work on my computer. I'm using Firefox 2.0.0.2, having downloaded it just a few days ago because I was tired of IE7 breaking all my Wikipedia JavaScript. All my other scripts finally work, but Twinkle still does nothing. Here's the error messages I get when I try to use it:
When I click [restore this version]:
-
Querying revision...........Grabbing edit form.................Updating the textbox...couldn't grab element "editform", aborting, this could indicate failed respons from the server
When I click any rollback button from twinkle (normal, agf, or vandal):
- Querying revisions.....
Evaluating revisions to see if rollback is the last contributor...Finding last good revision...We where to revert zero revisions. As that makes no sense, we'll stop reverting this time. It could be that the edit already have been reverted, but the revision id was still the same.
CSD and AIV give similar messages, and the warning buttons never appear.
Any idea why this script doesn't work? Take a look at my monobook.js if it will help at all. Thanks, Pyrospirit Flames Fire 21:20, 5 March 2007 (UTC)
- Could it be that you are using ZoneAlarm? →AzaToth 21:29, 5 March 2007 (UTC)
- I checked in the Start menu, add or remove programs, and C:\Program files. No mention whatsoever of any ZoneAlarm program. I use Norton as my firewall. Pyrospirit Flames Fire 21:43, 5 March 2007 (UTC)
- Another note: The warning and restore this version features worked on a school computer that used Firefox 1.0. However, the rest still didn't work, and none of it works on my computer. Pyrospirit Flames Fire 21:48, 5 March 2007 (UTC)
- The "no editform" is usually a result of something hijacking the http stream and adding data to the html rendering it non-valid xml. Check the source of a page to see if something strange has moved in.→AzaToth 22:01, 5 March 2007 (UTC)
- I know pretty much nothing about html code, so I really don't know what to look for. Could you be more specific? Also, this isn't just happening on one page; it's happened every time. Pyrospirit Flames Fire 22:06, 5 March 2007 (UTC)
- I think it has something to do with the browser, because some of the features work on Firefox 1, but not on Firefox 2. Pyrospirit Flames Fire 21:36, 6 March 2007 (UTC)
- The "no editform" is usually a result of something hijacking the http stream and adding data to the html rendering it non-valid xml. Check the source of a page to see if something strange has moved in.→AzaToth 22:01, 5 March 2007 (UTC)
[edit] I think I have a problem
OK, so I added this into my monobook (which is also a jumble of scripts from User:VoA) and I refreshed my browser etc. But when I went to try out the features, I found that there was no difference whatsoever made.
I'm using Firefox 2.0.0.2 and I don't have ZoneAlarm on the computer. So what's up? I'd be a lot happier if someone could actually add the scripts to my Monobook as I am sure I'd do something wrong. Thanks! - Erebus555 19:24, 7 March 2007 (UTC)
- Ooh, if only I was an admin, I'd simply copy my installation to your monobook.js file, but I'm not. Try asking an administrator to do it, like Eagle_101, Lupin, or Where; you can find a full list at Wikipedia:List of administrators. I'd be happy to do it, but only admins can edit other users' JS files. — Tuvok[T@lk/Improve me] 23:25, 7 March 2007 (UTC)
[edit] Incompatible with Firefox 2?
I have determined that Twinkle is incompatible, at least in part, with Firefox 2.002. I found this out by logging in to Wikipedia using Firefox 1.0, then updating the program to 2.002. Using 1.0, the [restore this version], reporting, and warning functions all worked. However, after upgrading to 2.002, these functions stopped working.
The rollback buttons didn't work in any version. This appears to be an error in the script itself that causes it to search for the last editor with the name "rollback", and since it obviously can't find one, it tries to revert to zero revisions, thus giving the error message I mentioned above. I have almost no knowledge of how JavaScript works, so this might not be right, but it makes sense given the error message. Pyrospirit Flames Fire 22:56, 7 March 2007 (UTC)
- I'm using firefox 2.0 →AzaToth 23:12, 7 March 2007 (UTC)
- As am I; no problems here. (Side note: Firefox 2 seems to be the most standards-compliant browser available for Windows, as evidenced by browser support tests on my website... So it is probably a conflict with one of your extensions.) — Tuvok[T@lk/Improve me] 23:19, 7 March 2007 (UTC)
- I'll try uninstalling all my other scripts, then see if it works. Pyrospirit Flames Fire 23:29, 7 March 2007 (UTC)
- I uninstalled all my other scripts, and the rollback doesn't crash anymore, but it still gives the couldn't grab element "editform", aborting, this could indicate failed respons from the server error message whenever I try to do anything with it. I still don't quite understand what you said about this earlier with the html and xml, though. Could you try to explain that so that maybe I can fix this? Pyrospirit Flames Fire 23:41, 7 March 2007 (UTC)
- Also, my only extension according to Firefox is the default Talkback that sends messages about program crashes to Mozilla, and it's not enabled. Pyrospirit Flames Fire 23:44, 7 March 2007 (UTC)
- I'll try uninstalling all my other scripts, then see if it works. Pyrospirit Flames Fire 23:29, 7 March 2007 (UTC)
- As am I; no problems here. (Side note: Firefox 2 seems to be the most standards-compliant browser available for Windows, as evidenced by browser support tests on my website... So it is probably a conflict with one of your extensions.) — Tuvok[T@lk/Improve me] 23:19, 7 March 2007 (UTC)
- I can't do it too. Cocoaguy ここがいい contribstalkTodays Pick 01:30, 8 March 2007 (UTC)
It works for me with 2.0 Try starting FF in safe mode Start > Programs > Mosilla FireFox > FireFox (Safe Mode). You will get a dialog where you can diable add-ons and reset various settings. See Safe Mode for more info. --Gadget850 ( Ed) 00:17, 8 March 2007 (UTC)
- Trying this now. By the way, I reinstalled all the scripts that I still wanted, and it seems the imcompatible script was one of the ones I didn't want. Go figure. :) Pyrospirit Flames Fire 00:24, 8 March 2007 (UTC)
- I'm running in safe mode, and I tested it on some vandalism in Recent Changes. Still can't grab the "editform", so the functions still don't work. On a related note, I found the code that generates this error message. It's in User:AzaToth/twinklefluff.js on lines 670 and 495 (using the syntax highlighter script on 1024 by 768 screen resolution). Pyrospirit Flames Fire 00:32, 8 March 2007 (UTC)
Could you open an edit page and check the source coude for that page, see if there is some tags before or after the html tags. →AzaToth 01:37, 8 March 2007 (UTC)
- I found the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html blah blah blah> blah blah blah code etc </blah></etc></html> <script language="JavaScript"> <!-- var SymRealOnLoad; var SymRealOnUnload; function SymOnUnload() { window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload(); } function SymOnLoad() { if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload; } SymRealOnLoad = window.onload; window.onload = SymOnLoad; //--> </script>
- As you can see, there's nothing but a brief comment before the html tag, but there's some sort of JavaScript after the closing html tag. I'm clueless as to what it means, but perhaps you can make out something of the problem from it? Pyrospirit Flames Fire 02:05, 8 March 2007 (UTC)
- I don't know what it is, but it is the root of the problem. Because if that script, the text isn't "well formed" Xml, and thus unparseable. →AzaToth 02:06, 8 March 2007 (UTC)
- By googling a bit, I found out it's problably Symantec who is destroying your code, if you dissable Norton/Symantec, it should probably work. →AzaToth 02:08, 8 March 2007 (UTC)
- Do you know of any way around that? Because getting Twinkle working isn't worth getting a virus, so I'm not disabling my virus protection entirely. Pyrospirit Flames Fire 02:22, 8 March 2007 (UTC)
- WoOTness, I finally got rid of that code. Unfortunately, I had to disable popup blocking *grumble*, but oh well, it's worth it. It all seems to work now. Thanks for all your help! Pyrospirit Flames Fire 02:54, 8 March 2007 (UTC)
Now that I look, I have en.wikipedia.org as a exception to pop-up blocking. Tools > Options > Content > Block pop-up windows > Exceptions. --Gadget850 ( Ed) 10:49, 8 March 2007 (UTC)
[edit] Error with the "chat" button
see User talk:128.59.63.68 It renders as Talk:Talk:Pagename. ffm yes? 20:30, 6 March 2007 (UTC)
- That a "bug" in the template, I think I'm going to remove the "Talk:" fro the chat-templates, as they are rather non-neede (discussion pages must not alway be "talk" pages. →AzaToth 17:44, 8 March 2007 (UTC)
[edit] Userbox
Here is a userbox I created. Tell me what you think.
This user fights vandalism with TWINKLE |
-Mschel 01:50, 10 March 2007 (UTC)
We always have the more "gaylish"
This user is a recent changes patroller with WP:TWINKLE! |
→AzaToth 01:56, 10 March 2007 (UTC)
Oops, I did not know we all ready had one. -Mschel 02:04, 10 March 2007 (UTC)
[edit] new module; twinkleprotect
This module will, for non-admins, request page protection via WP:RFPP. For admins will will protect the page accordingly to what specified, it will also add appropriate template (or remove is action is unprotect). Please tell me if there are something wrong, or missing. →AzaToth 22:18, 10 March 2007 (UTC)
[edit] WikiEd compatability issue
I currently use twinkle, but wikiEd breaks it while it is on. I use Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010Firefox/2.0rfiyrf . TW breaks when it tries to paste in the text area,like when warning a user. TW rollback still works, strangly enough. Errors:
Error: this[id] has no properties Source File: http://en.wikipedia.org/w/index.php?title=User:Firefoxman/monobook.js&action=raw&ctype=text/javascript&dontcountme=s Line: 354
Warning: Unknown property 'column-count'. Declaration dropped. Source File: http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400 Line: 38
Also this might help in some way. ffm yes? 13:01, 8 March 2007 (UTC)
- Have added that patch to twinklewarn now, hope it solves the problem, also, the error is in your own monobook file, this.setText = function( id, txt ) { this[ id ].getElementsByTagName( 'a' )[ 0 ].firstChild.data = txt }, nothing I can do anything about, the warning is just the usual column-count warning, ignore that one. →AzaToth 17:42, 8 March 2007 (UTC)
-
- Nope, still doent work. Yes, I did refresh my cache. ffm yes? 16:28, 11 March 2007 (UTC)
- Even with a correct Twinkle installation the text pasting does not work (without an error message). It might matter that the wpTextbox1 is hidden (wpTextbox1 style.display = none;). I have updated wikEd so that changes no longer disrupt the undo history. The "compatibility code" from the wikEd homepage has not been changed. AzaToth: If you need help or have questions about wikEd please drop me a note. Cacycle 00:23, 12 March 2007 (UTC)
- Nope, still doent work. Yes, I did refresh my cache. ffm yes? 16:28, 11 March 2007 (UTC)
Whoops, forgot to update both functions, test now. →AzaToth 00:47, 12 March 2007 (UTC)
- Thanks, it seems to work fine :-) Cacycle 03:36, 12 March 2007 (UTC)
[edit] not auto-watching warned talk pages - question
Would someone mind looking at my monobook quick and let me know what settings for TW will make so that User talk pages I tag aren't set to auto watch? Some days I tag a bunch and might forget to remove them, and every couple days I end up having to manually remove dozens of random IP talk pages or throwaway SPA vandal accounts... - Denny 15:51, 11 March 2007 (UTC)
- If you don't want to force watching of pages you have reverted on, then remove the unvanted actions from
watchRevertedPages : [ 'agf', 'norm', 'vand', 'torev'],
- If you don't want to watch anything, set the query to
watchRevertedPages : [],
- Remember though that default per settings is always applied in that case, so if you per settings is watching everything, then it will still be added to watchlist. shamelessly copied from above by ffm yes? on 14:24, 12 March 2007 (UTC).
[edit] Problem with twinklewarn
Twinklewarn doesn't work right, the warning tabs (1)/(2) at the top of user-talk pages aren't there 98% of the time. I have successfully warned only one user who's talk page was empty, but when I try to warn other users who's talk pages have something in them, the tabs at the top of the page are not there. Could the contents of a user talk page have something to do with this?--DanMP5 | C 16:27, 13 March 2007 (UTC)
- If oyu only see [1] and [2], it could be the problem that you have a too small window, as there should also be [3], [4] and [s] (and [b] for admins). →AzaToth 16:30, 13 March 2007 (UTC)
If you are talking about my moniter it's 800 x 600.--DanMP5 | C 16:39, 13 March 2007 (UTC)
Mine doesn't look anything like that, it doesn't have any warning tabs.--DanMP5 | C 16:53, 13 March 2007 (UTC)
- After looking into your monobook.js, I would say you should have them. do you get any JS errors? →AzaToth 16:55, 13 March 2007 (UTC)
Never have.--DanMP5 | C 16:58, 13 March 2007 (UTC)
Firefox 2.0--DanMP5 | C 17:02, 13 March 2007 (UTC)
All I have is the standard edit page, +, history, move.--DanMP5 | C 17:09, 13 March 2007 (UTC)
I've purged it at least ten times since i installed twinkle.--DanMP5 | C 17:16, 13 March 2007 (UTC)
I have found the problem, My screen size was 800 x 600, I changed it to 1024 x 768 and warnings [1]-[3] were visible, but everything was way to small so I had to change it back, and now non of the warnings are visible.--DanMP5 | C 19:04, 13 March 2007 (UTC)
[edit] Script error
Hey guys. Some new change is causing a script error in IE and TWINKLE isn't working. I wouldn't care, since I generally use Firefox, but now VandalProof, which relies on IE, displays a script error every page it loads. Can you try to see what's doing this? I've only noticed it Sunday but I haven't been on Wikipedia since Friday. -- Robert See Hear Speak 06:36, 12 March 2007 (UTC)
- please give me the particular error, so I have some chance finding the problem. →AzaToth 12:59, 12 March 2007 (UTC)
- Line: 11
- Char: 1
- Error: Object doesn't support this property or method
- Code: 0
- URL: (all Wikipedia URLs)
- -- Robert See Hear Speak 04:36, 13 March 2007 (UTC)
- Line 11, character 1 in what file? →AzaToth 13:18, 13 March 2007 (UTC)
- Where does it say the file? The only details the IE box gives are Line, Char, Error, Code, and URL; for URL, any Wikipedia URL produces the same error. -- Robert See Hear Speak 03:08, 14 March 2007 (UTC)
- Okay, wait a minute now, I was a bit mixed up, sorry. Now I've got only the TWINKLE script in my monobook (I thought I did before but I was mistaken), and the IE error message is Line: 52, Char: 6, Error: Unexpected call to method or property access., Code: 0, and URL again is whatever page I'm on. Sorry for mixing up earlier. Now, where can I find what file? -- Robert See Hear Speak 03:26, 14 March 2007 (UTC)
- Line 11, character 1 in what file? →AzaToth 13:18, 13 March 2007 (UTC)
I had the same problem, here's how to fix it. First, put the following code into your monobook.js:
var detect = navigator.userAgent.toLowerCase(); var IE; var place = detect.indexOf('msie') + 1; if (place) IE=true; if (!IE) { /* Scripts go here */ }
Then, put any scripts that are incompatible with Internet Explorer under "scripts go here", within the brackets. Any scripts you put in there won't be executed in Internet Explorer. I use this on almost all my scripts, and I almost never get the script error. Pyrospirit Flames Fire 15:47, 13 March 2007 (UTC)
- Thanks, that seems to be a very effective workaround (I'd still like to see the problem fixed, though). -- Robert See Hear Speak
[edit] uw templates and subst=subst: trick
There is an issue (probably a bug with MediaWiki) that breaks the uw templates if you don't add the Article parameter and use the subst=subst: parameter. It works smoothly if you add the article parameter or if you remove the subst one. Could it be possible not to put subst=subst: at the end of the templates if you don't provide any article? -- lucasbfr talk 10:21, 15 March 2007 (UTC)
- Have made that change now. There is a fix for that particular bug, bug it hasn't been implemented yet per reason I don't know. →AzaToth 13:05, 15 March 2007 (UTC)
- see bugzilla:5678 →AzaToth 13:11, 15 March 2007 (UTC)
[edit] March 16 crash?
- Twinkle was working fine for me, up until this morning when I started to get the same errors. I have tried on two machines, both firefox (osx tiger and xp). Any one else have suggestions? Cheers, Richard Thompson 12:03, 16 March 2007 (UTC)
-
- I'm having the same problem. -- TedFrank 12:22, 16 March 2007 (UTC)
- I was afraid it was a firewall again for me too. :( I feel nekkid without it! Something about failing to get a revision ID... and of course it worked that time and I just wiped this page. — RevRagnarok Talk Contrib 12:34, 16 March 2007 (UTC)
- Hmm, is it still borked? The script requirest that the variable wgCurRevisionId is sat in the document, perhaps there was some temporary hickup, of some scap etc... →AzaToth 13:18, 16 March 2007 (UTC)
- Working now. -- TedFrank 13:24, 16 March 2007 (UTC)