Wikipedia talk:WikiProject User scripts/Scripts/Twinkle

From Wikipedia, the free encyclopedia

Archive This talk page is automatically archived by Werdnabot
Any sections older than 14 days are automatically archived here.
Archive
Archives
index

Contents

[edit] This program is very helpful

This program is very helpful, but is there a way to change the [rollback] and [vandalism] to just [R] and [V]? My monitor only goes up to 1024x768 resolution.

Also, is there a way I can modify the programmed edit summaries? I would like to remove "Thanks!" as it reads a bit condescending in my opinion. I find this software useful, but would like to make some minor adjustments if at all possible.

Never mind about this, I found the individual programs to modify on my own.

[edit] history problem // using with ZoneAlarm running

I still have a problem with the history, all links stay blue. On the other hand, I'm able to use TW with ZoneAlarm running, for whatever reason. Or has this been fixed in the meantime? —KNcyu38 (talkcontribs) 01:06, 24 March 2007 (UTC)

same thing - I think that the script blocking/monitering option in ZoneAlarm is the problem - but it works for me because I don't need it - yaay for noscript! --Wavemaster447 21:29, 31 March 2007 (UTC)

I fixed the Bug :) disable ZoneAlarm's ad blocking that will fix your problem. Betacommand2 02:55, 2 April 2007 (UTC)

[edit] IE

How well does this tool work in IE to the best of your knowledge? -- The Hybrid 04:43, 26 March 2007 (UTC)

It probably wont work at all in IE6. I cannot tell about IE7 though. AzaToth 05:39, 26 March 2007 (UTC)
Alright, thanks. -- The Hybrid 22:55, 26 March 2007 (UTC)
I've tried, it's no good in IE7 either. I highly recommend Firefox, as it is much better in terms of compatibility with Wikipedia's JavaScript. Pyrospirit Flames Fire 00:47, 27 March 2007 (UTC)
For whatever reason I can't get FF to fire up on my computer. Oh, well. -- The Hybrid 04:25, 27 March 2007 (UTC)
I think that it would be possible to get twinkle to work in IE, if AzaToth installed ActiveX capabilities. Not sure, though. GracenotesT § 06:44, 27 March 2007 (UTC)
Nevermind, apparently sajax_init_object is a custom function. GracenotesT § 19:30, 27 March 2007 (UTC)

I suggest that this template, {{Non-admin fwarn}}, should be part of twinkle's warnings, do you agree with this? — zero » 05:41, 31 March 2007 (UTC)

There's no need. Final warnings should be enough. --KZ Talk Contrib 05:51, 31 March 2007 (UTC)

[edit] Conflict/Compatibility Issues.

Is there a list of scripts which conflict with this script when included together in the monobook.js script? For example are there any reports on known issues with the Navigation popups script or the edit count tool from Interiot? I noticed that the script limits the output generated by the edit count tool, and as such elected to remove it. --Aarktica 22:54, 31 March 2007 (UTC)

[edit] Suggestion: prod

I just wanted to say thanks -- TW is one heckuva a great tool! -- and make a small suggestion: TW already works great for CSDs and I'm not sure how I feel about adding a AfD-at-your-fingertips-o-matic to a popular anti-vandalism script, but how about support for PRODs?

Granted, there are already scripts to (semi-)automatize prod'ing but I like my scripts nice, tidy (well, make that as compatible as possible) and with a side dish of 'a clean interface'. Additionally, I don't really see any downsides: WP assumes its users are familiar with WP and its policies anyway and prods aren't all that fundamentally different from CSDs. In terms of potential abuse, I don't really see any differences either (plus, TW could, and probably should, default to PRODWarn the creator and recent editors of the article in question).

Thanks again and keep up the great work! -- Seed 2.0 16:53, 1 April 2007 (UTC)

Ok, new module, twinkleprod.js AzaToth 01:40, 2 April 2007 (UTC)
Awesome! Thank you. -- Seed 2.0 13:27, 2 April 2007 (UTC)
I just glanced at it, and I think that markProdPagesAsMinor should probably default to false instead of true. WP:PROD specifically says don't mark the edit as minor. Thanks tho! — RevRagnarok Talk Contrib 15:33, 3 April 2007 (UTC)

[edit] Problem with old warnings

As seen here, Twinkle seems to pick up final warnings from months ago and try to report to AIV from them. I'm not entirely sure that this isn't user error, but if it isn't, it's a problem. -Amarkov moore cowbell! 00:02, 2 April 2007 (UTC)

It's all manual reports. AzaToth 00:52, 2 April 2007 (UTC)
Oh. I was told otherwise, and I don't actually have a browser that will run it, so I couldn't test. It's good that it's all manual. -Amarkov moo! 00:56, 2 April 2007 (UTC)
Yeah, all the final decisions are manual, such as clicking "Save page". It'll put in the automatic edit summary and the stuff in the edit box, but it doesn't click the save button for you. Pyrospirit Flames Fire 03:07, 2 April 2007 (UTC)

[edit] Welcome Templates??

Is it possible to add a menu for welcome templates? Wikipedia:Welcome_templates has a lot of different welcomes but we don't need all of them, just one for anon IPs. and new users. -- Hdt83 Chat 04:18, 2 April 2007 (UTC)

WelcomeMenu is good. --TeckWiz ParlateContribs@(Lets go Yankees!) 14:11, 2 April 2007 (UTC)

[edit] Warning users for vandalism

When you use the menus for vandalism warnings, it adds it as a level 3 heading (===). This makes it look like it's a subsection of the previous section. Shouldn't it add it as a level 2 heading (==) instead? Macintosh User 19:46, 2 April 2007 (UTC)

Hmm, it shouldn't add any heading, the only way a heading might appear, is if someone is using section=new. AzaToth 20:02, 3 April 2007 (UTC)
I definitely just did it for a vandal attack AIDS and it puts up a header without hitting the new section button, it was a plain ol' edit to the vandal's talk page. JoeSmack Talk 13:18, 4 April 2007 (UTC)
I've also been wondering how to change this. It puts out level 3 headings for me too (i.e. ===). -- Cielomobile talk / contribs 18:25, 4 April 2007 (UTC)

[edit] experimental afd/xfd module

Have made an experimental xfd module, at the moment, only afd is supported, and I won't "release" it yet, as it might be borked, who knows. If you want to try it, add:

 importScript('User:AzaToth/twinklexfd.js');

and hope for the best. AzaToth 00:23, 3 April 2007 (UTC)

I did a test by nominating the sandbox. It worked good. Thanks AzaToth. For everyone's info this script <advertising> creates the nomination page, lists the page on todays log, puts the notices on the page you put up for AFD, and notifies the creator of the xFD. It does everything for you! What could be better and easier! </advertising> --TeckWiz ParlateContribs@(Lets go Yankees!) 14:15, 3 April 2007 (UTC)
Hey, I havn't added a notification to original user yet, I'll do that soon. :) AzaToth 14:34, 3 April 2007 (UTC)
Oh. Well currently, when the script is xFD'ing a page, it lists notification as a step. --TeckWiz ParlateContribs@(Lets go Yankees!) 14:35, 3 April 2007 (UTC)
My mistake, It was ment as the step listing the afd debate page to the current day. I'll add usernotification asap. AzaToth 15:20, 3 April 2007 (UTC)
Have added first user notification now :) AzaToth 16:28, 3 April 2007 (UTC)
I'm happy to report that the xfd module appears to be working with real AfDs as well. For some reason, the notification routine didn't do its thing though (this is about this AfD). I did reload the script before I listed the AfD so it's definitely the new version. The infobox listed the 'notifying user' step as well, so I don't really know what happened. --Seed 2.0 13:36, 4 April 2007 (UTC)
It seem that it did all the steps, but by some reason it took some times. It should print in the bot a confirmation when the action is done, your actions where:
  1. 2007-04-04T15:20:30 (hist) (diff) m List of university libraries (Nominated for deletion; see Wikipedia:Articles for deletion/List of university libraries. using TW) (top) [rollback]
  2. 2007-04-04T15:20:24 (hist) (diff) m User talk:SimonP (AfD nomination of List of university libraries. using TW)
  3. 2007-04-04T15:19:31 (hist) (diff) m Wikipedia:Articles for deletion/Log/2007 April 4 (Adding Wikipedia:Articles for deletion/List of university libraries. using TW)
  4. 2007-04-04T15:19:10 (hist) (diff) m Wikipedia:Articles for deletion/List of university libraries (Creating deletion discussion page for List of university libraries. using TW) (top) [rollback]

AzaToth 14:24, 4 April 2007 (UTC)

Hi AzaToth, thanks for getting back to me so quickly. I must admit this is a bit odd. I'm on a leased line right now so bandwidth and congestion shouldn't be a problem and I could have sworn there wasn't a AfD warning on the user's talk page when I added it manually (I might very well may just have missed it though). Maybe this (and the long delays between edits you mentioned -- for the record I am usually using FF nightlies but was using FF-stable for this test) was due to some temporary server lag and the userpage edit just failed to go through for some reason. Anyway, I'm glad it's not a problem with TW. :) Take care, -- Seed 2.0 15:32, 4 April 2007 (UTC)

[edit] Some help

I'm trying to figure out how to use Twinkle without the script adding everything to my watchlist because it gets flooded I tried following directions but it did not work any suggestions please? thank you. Lakers 10:30, 3 April 2007 (UTC)

Hi. According to the history of your monobook.js, it looks like you forgot to edit, or in your case, nullstring the watchRevertedPages variable.

Adding

TwinkleConfig = {
       watchRevertedPages              :       [ ],
        };

to your monobook.js file should do the trick but still keep speedies in your watchlist. Please note, however, that watching previously vandalized pages can help tremendously if you're doing anti-vandalism work (ie. the 'more eyes approach'). Cheers, -- Seed 2.0 11:25, 3 April 2007 (UTC)

Hi do I put the code in my monobook? I tried it and did not work again, well I revert alot of vandalism and I can't see other important pages I edit so its important for both, I always double check the articles I revert, or the anons who vandalize I watch there contributions for a while to catch them vandalizing again, or look at my contributions I have reverted, thanks for your help. Lakers 20:02, 3 April 2007 (UTC)
No problem. :) Yes, the code needs to go into your monobook.js file (provided that you're not using a different skin). Your userfile looks fine though, so that doesn't appear the be the source of the problem. I assume you have reloaded the file as recommended. From the looks of it, you also don't seem to be running any other scripts which takes care of script incompatibilities. I also don't know of any Firefox plugins that break TW. What browser are you using, if you don't mind me asking? --Seed 2.0 21:30, 3 April 2007 (UTC)
I'm currently using FireFox. Lakers 01:11, 4 April 2007 (UTC)
Alright, thanks. If this turns out to be a Firefox-specific bug (which I don't think it is at this point), I can probably help get it fixed quickly or even see if I can fix it myself. If the problem you describe still occurs, I'll try to look into it as soon as I have time and access to a workstation with some proper tools (time being the real problem here ;). Cheers, -- Seed 2.0 02:12, 4 April 2007 (UTC)
Hi thanks for your help it seems it worked, thanks alot. Lakers 03:25, 5 April 2007 (UTC)
No problem. I'm glad to hear it works now. :) Cheers, -- Seed 2.0 12:35, 6 April 2007 (UTC)

[edit] Requested addition

Azatoth, would you consider adding the "UsernameConcern" template to the single-level warnings menu in Twinkle? Thanks... RJASE1 Talk 14:44, 3 April 2007 (UTC)

[edit] Watchlist problems

I don't know if this is a bug in Twinkle or if it's me, but every time I revert a change using Twinkle, it adjusts my watchlist. If it's a watchlisted page, it takes it off my watchlist. If it's not on my watchlist, it puts it on there. I believe I set my monobook.js file (User:Schuminweb/monobook.js) to not mess with my watchlist, but it's still adjusting my watchlist. Does anyone know what's wrong? Is this a Twinkle bug, or is it the way I have my Monobook file set? SchuminWeb (Talk) 23:14, 3 April 2007 (UTC)

[edit] ZoneAlarm

As an FYI, it seems to be working on my second machine now - the one with ZoneAlarm. Dunno what's changed... — RevRagnarok Talk Contrib 00:57, 4 April 2007 (UTC)

[edit] Issues with script

This script often seems to be having bad effects on my computer. Often times, it has caused my browser to crash, whether on Linux or Windows.

Worse, things often don't work right; they always used to work correctly. The AIV reporter hasn't worked correctly for me since twinkle was started; it always gets stuck on the last step. And right now a lot of the buttons aren't working at all: I have no rollback button. Patstuarttalk·edits 16:13, 4 April 2007 (UTC)

It might be a problem when combining twinkle with some of VoA's stuff, but it shouldn't crash the computer. AzaToth 17:46, 4 April 2007 (UTC)
I tried removing that and refreshing browser; still not working. I am manually reverting all vandalism. Patstuarttalk·edits 18:40, 4 April 2007 (UTC)

[edit] Use with non-en site

How do I use twinkle with my es.wikipedia.org account? In sum, for User: how do I specify to grab it from an en:user?

importScript('User:AzaToth/morebits.js');

Thanks. Jebba 16:28, 4 April 2007 (UTC)

I use this code:

//

// [[w:es:Usuario:Axxgreazz/monobook-suite.js]]

document.write('<'+'script src="http://es.wikipedia.org/w/index.php?' 
+  'title=Usuario:Axxgreazz/monobook-suite.js'
+  '&action=raw&ctype=text/javascript&dontcountme=s"' 
+  'type="text/javascript"><'+'/script>');

//

Patstuarttalk·edits 16:42, 4 April 2007 (UTC)

That's cool, but it doesn't add twinkle itself. Are you suggesting I do something like this for each .js?
// [[w:en:User:AzaThoth/morebits.js]]

document.write('<'+'script src="http://en.wikipedia.org/w/index.php?' 
+  'title=User:AzaThoth/morebits.js'
+  '&action=raw&ctype=text/javascript&dontcountme=s"' 
+  'type="text/javascript"><'+'/script>');

//

Jebba 16:56, 4 April 2007 (UTC)


Ok, I couldn't get it to work that way, so I just copied over all the Twinkle files to my Usuario: (User:) page on es.wikipedia.org. So if someone wants to use it in the es.wiki namespace they can use this. Note it won't be up-to-date like AzaToth's if there are changes and it's in English. If someone knows a better way to do this, please ping me on my user page. Thanks to Gracenotes and FrancoGG who helped on IRC.
importScript('Usuario:Jebba/morebits.js');
importScript('Usuario:Jebba/twinklefluff.js');
importScript('Usuario:Jebba/Add LI menu');
importStylesheet('Usuario:Jebba/Add LI menu/css');
importScript('Usuario:Jebba/twinklewarn.js');
importScript('Usuario:Jebba/twinklearv.js');
importScript('Usuario:Jebba/twinklespeedy.js');
importScript('Usuario:Jebba/twinklediff.js');
importScript('Usuario:Jebba/twinkleprotect.js');
importScript('Usuario:Jebba/twinkleprod.js');

Jebba 18:07, 4 April 2007 (UTC)

[edit] User:Moreschi/monobook.js

I installed Twinkle, refreshed my browser cache, am running Firefox, and nothing. Any idea why? Moreschi Request a recording? 18:26, 4 April 2007 (UTC)

Not working for me at the moment either. Patstuarttalk·edits 18:40, 4 April 2007 (UTC)
Ditto. HornandsoccerTalk 01:32, 5 April 2007 (UTC)

Patstuart: It looks like you haven't added the LI menu stylesheet. You need to do that for the script to work properly.
Hornandsoccer: You only need to import the script once. ;) Moreschi, at this time your monobook.js file looks fine. Are you still experiencing problems (if so, please be sure to properly reload the script before you report any potential bugs -- thanks). -- Seed 2.0 02:28, 5 April 2007 (UTC)

Ok, I've removed one set of the code (good catch ;)). However, nothing changed...forgive me, I'm not very good with monobook stuff. Thanks for the help HornandsoccerTalk 03:21, 5 April 2007 (UTC)
What version of Firefox? A few days ago Twinkle stopped working on my university account, where they're still running Firefox 1.5. At home with Firefox 2.0 it works perfectly. --Pekaje 07:27, 5 April 2007 (UTC)
Hornandsoccer, try removing the assessment code on your monobook. It could possibly be interfering with twinkle. --KZ Talk Contribs 07:40, 5 April 2007 (UTC)
Still didn't work, so I put in Voice-of-All's rollback script, a version of Twinkle, which works fine. Not sure why Twinkle proper isn't working for me, but never mind. Moreschi Request a recording? 12:50, 5 April 2007 (UTC)
Those for whom Twinkle proper isn't working might like to copy my monobook, which works fine. Moreschi Request a recording? 12:51, 5 April 2007 (UTC)
I tried removing the assessment code, but it didn't do anything. I put VoA's script, and it works fine. HornandsoccerTalk 16:12, 5 April 2007 (UTC)

[edit] "Minor" warnings

It looks like Twinkle automatically marks vandalism warnings as "minor". This is a problem because marking messages on user talk pages as minor prevents the "new messages" banner from coming up. Could we get this fixed? —Remember the dot (talk) 22:15, 5 April 2007 (UTC)

As I understand, only minor edits made by bots don't get noticed. Also, it's configurable. AzaToth 23:04, 5 April 2007 (UTC)
Oh. Thanks for correcting me. —Remember the dot (talk) 17:01, 6 April 2007 (UTC)


[edit] Custom Templates

Is there any way to add custom templates? for instance, if we wanted to add {{subst:Non-admin fwarn}} to our own custom list, is there a way to do that?--Wavemaster447 22:35, 8 April 2007 (UTC)

[edit] Headline levels

Hello! I find this script very useful, but can I make a suggestion? I think that it would be better to include a level two header <nowkik>(== Headline text ==)</nowiki> instead of a level three. ONe user got mad at me because it messed up his/her TOC, because the header went under another header (so it was 2.1 instead of 3). Am I being clear enough? --Cremepuff222 (talk, review me!) 01:36, 9 April 2007 (UTC)

Yeah, that can happen (see here, for example). I wonder (not critizing, just honestly curious), is there a reason why 2L is preferable? -- Seed 2.0 02:19, 9 April 2007 (UTC)