User talk:Aaron Schulz/UsefulJS
Ok I installed this. I like the extra tabs for 2000 and 5000 edit histories a lot. That seems to work great. But the "Edit statistics tab" didn't do much for me. It trundled off a while, changed "major" to Significant in blue, and put numbers (presumably how many edits from top??) on ones that weren't top. Is that what it's supposed to do, or is it also supposed to generate stats somewhere??? I'n not sure I follow how to use it. Maybe a few more hints on what to do? Thanks for creating it though! 18:49, 4 May 2006 (UTC)
- It does generate stats, its just that I have been doing "minor edit" detection changes right now, and that makes it buggy (which is what I am trying to fix). I just had that same error and fixed it, press cntrl-F5.Voice-of-AllT|@|ESP 03:40, 5 May 2006 (UTC)
- Well that would certainly explain it. It's working better for me now, thanks!
- I would appear to be having the same problem - I think? Ctrl/shift Refreshes not doing it... --Dwiki 01:00, 16 May 2006 (UTC)
Some feedback
[edit]Is this the place for feedback? There may still be some bugs in how it calculates things. For this page: (last 1000 of mine) I am getting some not a number results (example of several):
- Oldest edit on: NaNhr (UTC) -- 2006 (hist) (diff) Anna Miller's (put some deleted things back in article, April, not
- Time range: NaN approximate day(s) of edits on this page
Also I think if you could make some of the terms linked that might be nifty. For example
- Quick reverts: 2.5%
Might be nice to make Quick reverts link to some explanation of what a quick revert is. Ditto "significant edits"
Also consider this edit's entry:
- 17:22, 4 May 2006 (hist) (diff) Model (person) (rv edits by Pinkgirlwith) (top) (rv) #1
So... is it top or is it 1 back from the top? what is the #1 telling me? Other entries say top without the #1 appended, so there must be some meaningful difference there that I should know.
Anyway, great tool, thanks for making it available, much appreciated! ++Lar: t/c 14:07, 5 May 2006 (UTC)
- NaN can reasobly appear for edit summary usage if it is 0/0 AKA no article edits at all. However NaN should never appear for the time range. Press cntrl-F5 again. All of the bugs from adding two new features were fixed early this moning (like 3AM :)...). Here is what yours looks like:
--Viewing contribution data for user Lar (over the 1000 edit(s) shown on this page)-- Time range: 31 approximate day(s) of edits on this page Most recent edit on: 18hr (UTC) -- 05, May, 2006 Oldest edit on: 15hr (UTC) -- 5, April, 2006 Overall edit summary use: Major edits: 100% Minor edits: 100% Article edit summary use: Major article edits: 100% Minor article edits: 100% Average edits per day (current): 32.75 Significant article edits (non-minor/reverts): 8.8% Unique pages edited: 402 | Average edits per page: 2.49 | Edits on top: 14.9% Breakdown of edits: All significant edits (non-minor/reverts): 89.6% Minor edits (non reverts): 7.9% Quick reverts: 2.5% Unmarked edits: 0% Edits by Wikipedia namespace: Article: 14.9% | Article talk: 9.8% User: 7.4% | User talk: 33.1% Wikipedia: 16.2% | Wikipedia talk: 13.3% Image: 2.2% Template: 0.7% Category: 0.2% Portal: 0% Help: 0% MediaWiki: 0% Other talk pages: 2.2%
I will link "sig" edits and "quick reverts" to a usersupage to further explain. Sig. edits are non-minor/non-reverts. Reverts marked as minor with "m" are not counted as minor. Non-minor edits reckognized as very likely to be minor are counted as minor (this is done more rigoriously for articles, by looking at summary length too).Voice-of-AllT|@|ESP 18:22, 5 May 2006 (UTC)
Erroring again
[edit]OK I tried it again, this time on another user's contributions page, without first hitting one of the other tabs. It's back to the behaviour of doing the changing of the rows, but not putting up a summary. I have a purge tab added (my monoscript has a lot of stuff, not all of which I claim to understand since I just stuck it in rather than looking closely) but unf, that isn't active on special:contributions pages so I have to try all the different permutations of cntl-shift-r F5 etc to get purging/reloading to happen (I run firefox 1.5 on Win XP). Question, the warning box about it taking a while... that has to be cleared by the user, right? you can't just leave it up? ++Lar: t/c 20:11, 5 May 2006 (UTC) PS I do watch this page, I'll see your replies, no worries, you don't have to note it on my user talk (but thanks for that just the same!) ...
- Heh...try crnl-F5 (purge browser cache) once now to be sure. Clear your java console. Then go back and press "stats". If it just marks some things and stops, go to "java console" in your browser (under "tools" in Mozilla). Tell me what it says. Thanks.Voice-of-AllT|@|ESP 20:39, 5 May 2006 (UTC)
OK here are the entries from my console
Error: LYear has no properties Source File: http://en.wiki.x.io/w/index.php?title=User:Voice_of_All/History/monobook.js&action=raw&ctype=text/javascript&dontcountme=s Line: 480 Error: pg is not defined Source File: http://en.wiki.x.io/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s Line: 183 Error: log is not defined Source File: http://en.wiki.x.io/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s Line: 3020 Error: LYear has no properties Source File: http://en.wiki.x.io/w/index.php?title=User:Voice_of_All/History/monobook.js&action=raw&ctype=text/javascript&dontcountme=s Line: 480
(those are all errors, in the order displayed, in first-last sort order). I was doing this for Mindspillage's page: http://en.wiki.x.io/wiki/Special:Contributions/Mindspillage ... hope that helps... like I said I have a lot of stuff in my monobook, so it could be me. FYI I am not an admin. ++Lar: t/c 01:05, 6 May 2006 (UTC)
- only the first error happens on the special contributions page invocation of "edit statistics", I forgot to clear. The others are from other pages. Sorry for any confusion. ++Lar: t/c 01:25, 6 May 2006 (UTC)
- Hmmm...the middle two error are clearly popups bugs...I get those a lot and they are not harmful. I went to Mindspillage's page and had no problems with contributions. Many other users have this JS, so I think that something in your monobook is buggy. I will likely run and debug it tommorrow, but I need some sleep for now :).Voice-of-AllT|@|ESP 08:39, 6 May 2006 (UTC)
Stats as used on RFA
[edit]I'm sorry, I'm probably being a dunce, but which script generates the edit count and other stats you post on RFA? :) --kingboyk 15:09, 7 May 2006 (UTC)
- The history one. Put the invocation snippet (under the section History and Edit Summary Use Analysis) in your monobook.js and once you've refreshed/purged/reloaded things, it gives you a few new tabs (only when you're looking at someone's special:contributions page)... you can look at 2000 or 5000 contributions as well as the ones there are links for, and there's a tab called edit history. Click it and it trundles off and does all that analysis. Pretty slick. I had it working for a while but I broke it again I think. ++Lar: t/c 16:08, 7 May 2006 (UTC)
- Thanks Lar. I get the tabs, and I can get the edits enumerated, but I don't get any summary stats. Not to worry, it's just a toy :) --kingboyk 16:55, 7 May 2006 (UTC)
- Sounds like maybe you have the same (or similar) problem that I do (see above)? How crufted up is your monobook? is it as bad as mine, packed full with just about every shiny gadget I've ever run across? My suggestion: Do the java console thing... clear it, do one try, and then paste the error you get here for VoA to see, assuming you get one... ++Lar: t/c 17:17, 7 May 2006 (UTC)
- Thanks Lar. I get the tabs, and I can get the edits enumerated, but I don't get any summary stats. Not to worry, it's just a toy :) --kingboyk 16:55, 7 May 2006 (UTC)
Translating scripts to other languages?
[edit]I use a couple of your scripts (the revert script and search and replace) and would like to use them on other projects. I put them in my commons account monobook.js and it works fine. I would use them on the French Wikipedia, except the text for the scripts is in English, which isn't a big deal except the revert script would leave an English edit summary. I could just copy your scripts and then replace all the text with French, but then if you update the scripts, I'd have to do it again. Would you be interested in modifying the scripts so that they read all of their interface text and edit summaries from a separate script? That way, each user could install the language script they want and it would be easy to add new translations later. I could help out with it if you want, although I haven't written much JavaScript in years and I've never worked on any scripts for Wikipedia before. I'm only interested in a French translation myself, so I could try to write one but from your Babel boxes you would be a bit better at that than I would be because I'm at fr-1 and you're fr-2.
Of course, you might want a VoA Scripted Users category on every project where the scripts are used, which would be a lot of categories to keep track of. Anyway, it's an idea. Philbert2.71828 04:35, 11 July 2006 (UTC)
Stat tool
[edit]- thanks for the stats tool. Few notes on how to improve it further: the tool analyzes only edits from current 'view', i.e. 50 edits by default, 500 max. On longer pages (over 500) one has to manually adjust the http adress (I replace 500 with 9999). Perhaps the tool could be automatically set to fetch 9999 (or more?) edits, or we can add the contribution tabs (last x thousands) to the history page view? Also, the minor, superficial, significant, notable and such edits counts would be useful for article's history, too. Further, I wonder how do we define the 'likely older user edits' (and new, and admins). Not the article number treshold (although I wonder what it is for new/older, or is it age of account) but does the tool analyzes the acount age/contribs at the time an edit was made, or now? I would suggest the tool does both and displays both infos, it may show some interesting trends. Also, it would be great if the tool would generate time series data - i.e. number of edits per day, perhaps with some medians, average, etc. Last but not least, it would be great if this could be combined with contrib counter and generate info in columns that could be further used by a stat analysis soft. For example, I would like to know not only when article was edited, but by whom, so we can then plot and analyze trends like 'number of anon edits to article over last year' (growing? falling?), number of old user edits, number of admin edits... Once again, tnx for the current tool, it's a great improvement over what we had! If you are interested in statiscits, you may also want to take a look at meta:General User Survey, a project we are revitalizing now.--Piotr Konieczny aka Prokonsul Piotrus Talk 17:56, 15 July 2006 (UTC)
- PS. My mozilla (latest build) crashes often while analyzing contribs (almost always when I tell it to fetch 5k edits). And is there a way to analyze more then 5k edits? Seems to me like even a trick of editng the html adress doesn't work, all I get is my last 5k edits.--Piotr Konieczny aka Prokonsul Piotrus Talk 20:02, 15 July 2006 (UTC)
- I've added tabs to make this easier. As for crashing, only Netscape crashes (closes). Firefox just stalls and gives "script not responding" messages that you have to click "continue" for. Opera runs this tool MUCH slower, but it does not freeze.Voice-of-All 18:50, 21 August 2006 (UTC)
A few questions on the general admin .js
[edit]I've recently become an admin, and so switched from the non-admin .js to the admin one (the top one that has everything)... have a few questions about features in it. First of all, it seems sometimes the tabs change names, and I can't figure out (and am just curious) when it does so. History becomes revisions, move becomes rename, but not always. Question two, the putting of cite-references in a yellow box. Mostly the question is, is there a way to disable just that one? I just don't see the purpose, and it's.. well, yellow. Last one... I am sitting here not being able to remember. Maybe I'll get back to you on that one. Anyway, thanks for these tools, they're amazing. -Goldom ‽‽‽ ⁂ 02:45, 17 August 2006 (UTC)
- Another question - one thing seems to have vanished in the last few days, showing the admin backlogs at the top of the watchlist. I see you've been editing the specialadmin .js that that feature is in a lot in the last few days, so maybe you're working on it, or maybe that's what broke it and you didn't know, so just letting you know. Also, I was looking around in the scripts to see if I could find out about the yellow thing above, and couldn't find it anywhere. But I also noticed something saying that in the navbox, there's supposed to be links added to CSD, AIV, etc, but I don't have those... -Goldom ‽‽‽ ⁂ 18:16, 21 August 2006 (UTC)
- Ah I'm glad that putting references in a box is just for users of this tool- that 'show/hide' thing doesn't work for everyone, so good that not all users of the site see it! A comment on re-naming of tabs- I assume this is because you prefer them that way, but personally I'd rather just have the default. As above is there a way of turning off just a few bits of your script? (which is otherwise extremely useful, good work!). Petros471 19:57, 21 August 2006 (UTC)
- Currently, I don't have the tabs say "rename/revisions" for article pages anymore, though the standard admin script still does. I've added a notice about the CSS required for when I next update it to be like mine, as it is getting out of date. The reference thing should be a scroll box; its really just experimental now. As for the backlog bar, it should be back.Voice-of-All 03:43, 23 August 2006 (UTC)
- Backlog bar is back indeed. That's good enough for me :). Did get the note about the css too. -Goldom ‽‽‽ ⁂ 20:14, 23 August 2006 (UTC)
More on the admin general
[edit]Hey, I just linked to your monobook, Voice of All, because I liked all the feature you have. Everything works ok, but how do I get it to actually warn vandal users? It says it is opening the user talk page, but nothing shows up in my contribs. Thanks--Kungfu Adam (talk) 03:05, 26 August 2006 (UTC)
- I get the same thing for the non-admin JS. It says opening up user talk, but nothing is saved. Whenever I click on the tabs for warning at the top, it never adds the warning either. All I get is the "if this is a shared ip" bit. -Royalguard11(Talk·Desk) 01:08, 18 September 2006 (UTC)
Happy New Year!
[edit]Happy New Year! Unfortunately, your tool doesn't seem to recognize that it's the new year already. ;-) The "Time Range" calculation is acting as if it's still 2006. Example:
- Time range: 104 approximate day(s) of edits on this page (104 day(s) passed since first edit)
- Current time: Fri, 05 Jan 2007 19:40:15 UTC || Last edit: 13:58, 5 January 2007 || Oldest edit: 16:46, 23 September 2005
- By my math, that should be 469 days, unless today is actually Jan 5 2006, in which case 104 days is dead on. But if today is actually Jan 5 2006, I've got a whole set of different issues. ;-) So I'll assume you've got the year-date hardcoded into it somewhere, which should probably be updated. Thanks for the great tool! --Maelwys 19:45, 5 January 2007 (UTC)
- Hmm, something off in User:Voice_of_All/Dates.js ? Voice-of-All 11:55, 22 November 2007 (UTC)
rollback functionality
[edit]hi hi. i've been using your non-admin rollback for a while, and suddenly yesterday it wouldn't rollback. it would go to the edit box, not fill in a summary and not rollback. i came back here and replaced my monobook blurb with your new AzaToth style rollback, but it itself isn't as good. For instance, you cannot middle-click (open in a new tab) a rollback with the Twinklefluff style rollback (it opens a blank tab as of now), which is vital for cleaning a linkspammer's additions from his contribs page. Any way to get the old VoA style back, or make AzaToth's style able to be opened in a new tab? JoeSmack Talk 17:36, 16 February 2007 (UTC)
using the admin js (no popups) on other wikis
[edit]I have just started using this on en.wb, and I'm just wondering if you can add something that checks what wiki its being used on, and disable WP-only functions. (ie the templates will be different elsewhere, and there are some features that are explicitly WP-only; also some of the stats are WP-only - can those just get skipped?)
Also, revert all uploads (and all the other revert all x features) doesn't work. It consistently tell s me that the operation was aborted after I enter a reason and hit OK. I don't know whether this is because it is not on wp, or if it's something else.
Thanks for any help on this. – Mike.lifeguard | @en.wb 07:08, 20 November 2007 (UTC)
- Ideally, namespaces would be configurable arrays that users can enter in. The code really needs cleanup and structure. I've been talking to AzaToth about making such a version of it. Voice-of-All 22:01, 22 December 2007 (UTC)
- On your suggestion, I grabbed a new version of the scripts, again ripped out WP-only stuff (and a few duplicated features). I think the namespaces were updated to such an array, which I modified.
- I also found and fixed a bug in whatever function is called by the % tab on history pages. Instead of using wgTitle, you must use wgPageName, which includes the namespace. Otherwise it only works in the mainspace, since the namespace prefix gets dropped from the new URL.
- I got the rollback functions (except deleting images) working, but only by entering things like "ERollen2" (and it's different for the different types of rollback). Is this supposed to be the case??
- Found another thing, which may be my fault (what with removing lots of code): on upload rollback, I get a js error "reference to undefined property z" on the line "z += 1;".
- And the last one is "document.innerHTML has no properties" on the line "else if (document.title.indexOf('Rollback failed') == 0 && document.innerHTML.indexOf(' last contributor is the only author of this page') != -1)" I don't know js very well, so I can't do anything with the last 2 things.
- – Mike.lifeguard | @en.wb 17:47, 11 January 2008 (UTC)
non-admin script not working suddenly in firefox?
[edit]So, I've got it in my monobook.js and it's been fine for, a long time. Today I realized that I was missing some of my tabs and options. This is what I've found so far:
- Firefox 2.0.0.11 (all addons disabled, Linux and Windows) - things only show up when I'm editing a page (the tabs at the top, the extra links in the toolbox for Lupin's) - popups are fine though
- IE 6 and Safari (Windows) - things are great
- Firefox 2.0.0.6 (Windows) - things never show up, even when editing pages (no popups either)
- Konqueror 3.5.8 (Linux) - everything's good, except no tabs for easy afd etc at top of page
I'll do so more snooping and tell you what I find. The 2.0.0.6 installation of Firefox is on a different computer, but the others are on my main one, on which it worked at least on Dec. 4.
- Oh, Lupin's links in the toolbox also seem to work on say, Special:Contribs, but not on say WP:CSD
Xiong Chiamiov ::contact:: help! 05:39, 13 December 2007 (UTC)
- Clearing the cache on the other machine with the old firefox made that one act like the others. Xiong Chiamiov ::contact:: help! 05:49, 13 December 2007 (UTC)