[03:37:49] anyone know how to get all the "permissions" that IPs have on a given wiki? API:Users doesn't accept IP addresses for the "ususers" parameter [03:38:57] It's "*" [03:39:39] https://en.wikipedia.org/wiki/Special:ListGroupRights [03:39:43] Like that [03:39:46] Simple yet so elegant. Thank you [03:40:05] this way I can still query for other users in the same API call [03:40:28] yeah, IPs can't get any custom groups, only the rights assigned to '*' [03:40:29] What are you trying to do, MusikAnimal? [03:41:04] Also: https://en.wikipedia.org/wiki/User:Splarka/sysopdectector.js [03:41:08] Pretty neat [03:41:11] I'm trying to better cross-wiki support for one of my scripts, checking for permissions rather than user groups [03:41:30] Permissions? [03:41:50] Some users will have dozens of permissions, I doubt you want that list. [03:42:01] yes, or "rights" if you wish, terminology seems to vary [03:42:03] no I do [03:42:06] Bsadowski1, neat? that code? [03:42:17] It's a neat tool. [03:42:21] The code is probably dated. [03:42:25] Yeah :p [03:42:34] But it still works, Fiona. [03:42:38] For now! [03:42:46] "User:Bsadowski1 [abusefilter,sysop,*,user,autoconfirmed] " [03:42:48] :P [03:43:01] I made a custom version for someone that showed global rights, IIRC [03:43:10] Yeah, I think I remember that. [03:44:12] my script if you are interested is at https://github.com/MusikAnimal/MoreMenu/blob/master/MoreMenu.js [03:44:22] an older version is currently a gadget on enwiki [03:45:12] Nice. [03:53:03] lol MusikAnimal nice script. ;) [03:54:21] T13|detached: major overhaul! [03:54:27] been working hard on it [03:54:59] I was going to ask you to code review actually, but not yet, still working on it :) [03:55:38] Let me know. :) [04:19:06] Bsadowski1: actually it turns out supplying "*" in the ususers parameter for API:Users gives me the actual User:* [04:19:16] so I'm getting registered users permissions, not IP permissions [04:20:20] I'm guessing I'll need to make a separate API call altogether [04:45:35] IPs don't have permissions... [04:46:12] they do [04:46:27] user rights? it has a special page no? [04:46:36] yes, ListGroupRights [04:46:59] the "(all)" group there ('*' in the software) applies to IPs [04:47:12] http://www.mediawiki.org/wiki/Special:ListGroupRights [04:47:17] What groups are IPs in other than "*" that applies permissions? [04:47:24] none [04:48:09] Yeah, that's what I thought, IPs don't get any extea rights. [04:49:12] they get the rights from '*' though [04:49:46] If you want to get a list of those specific rights on a per wiki basis, you'd have to query them separate whether they are an IP or not. Not an extra query. [04:50:12] Someone is ? [04:51:04] so I'm getting registered users permissions, not IP permissions [04:51:04] I'm guessing I'll need to make a separate API call altogether [04:51:52] The answer is no, you don't need to make a special separate API call just because they're an IP. [10:08:59] Dear Wikimedians, can anyone suggest a tool to create a table with a list of articles whose talk pages are in a certain category? [10:12:08] yurb: wikitable? [10:12:44] Nemo_bis: preferably, but can be csv or html too [10:12:49] Of course you can use http://tools.wmflabs.org/catscan2/ , choose wikitext output, search and replace "Talk" to link the subject page instead [10:13:03] Nemo_bis: thanks! [10:13:06] But if you want something fancier then explain better [10:14:25] Nemo_bis: ideally I'd want the table to include size of the article and its creation date [12:39:04] where I could see all iso languages of Wikipedias sites? [12:39:47] sitematrix? [12:41:05] comets: hash, example 'en' => English [12:42:08] http://commons.wikimedia.org/wiki/Special:SiteMatrix [12:45:06] comets: thanks [13:27:54] བོད་ཡིག [14:02:09] How amusing "Unknown Object (User) added a comment." https://phabricator.wikimedia.org/T67188#701004 [14:04:07] delete user? [14:04:07] deleted* [14:04:20] andre__, ^ [14:04:51] Krenair: yes? [14:08:06] T85203 [14:08:09] Krenair, ^ [15:25:25] https://dumps.wikimedia.org/simple/ returns a 404 when https://en.wikipedia.org/wiki/Wikipedia:Database_download#Other_languages says it should exist. What am I doing wrong? [15:28:36] Betacommand: ^^^ ??? [15:29:15] Technical_13: one sec [15:30:18] my goal is to search the dumps for .js files and see which ones are most commonly used in User space that will fail when legacy js support is gone so I can make updated versions of those scripts I can maintain and others can just import. :) [15:31:05] Technical_13: simple wikipeda? [15:31:30] Yes, I wanted to start on a smaller db so that I can debug my detection of scripts that will fail... [15:31:53] Once I get that all worked out I was going to do it for commons, enwp, meta, etc as well. [15:32:07] Technical_13: https://dumps.wikimedia.org/simplewiki [15:33:00] ahh. I see now. [15:36:35] Technical_13: if you go to the main dump page and just search for the project your looking for you can get there that way too [15:39:17] Betacommand: I don't see a way to search from https://dumps.wikimedia.org/ [15:40:22] Technical_13: see the Database backup dumps link [15:40:36] https://dumps.wikimedia.org/backup-index.html [15:41:03] When I click on that link it brings me back to https://dumps.wikimedia.org/ ? [15:41:18] Your direct URL works though. :) [16:42:45] anyone know anything about the javascript that show/hides tabs based on screen width for the vector skin? [16:42:46] e.g. on a page, at full-size you'll see the "History" tab, size down your browser's window so that that tab wouldn't fit and some JS will move it to the More menu [16:43:16] I'm hoping there's an event triggered when this happens, so that I can listen for it [16:47:32] probably not [16:47:41] MusikAnimal: why do you need to listen to that hypothetical event? [16:48:27] I have a script that adds extra menus and I'd want to move "View history" to this extra menu rather than the "More" menu which is where that JS puts it [16:49:32] MusikAnimal: https://meta.wikimedia.org/wiki/User:Hoo_man/vectorActions.js [16:49:44] I guess you could also use a MutationObserver for that [16:50:01] as it's actually altering the DOM AFIAR [16:50:08] that's not going to have good browser support [16:50:12] huh, there actually is an event fired [16:50:14] but it's something at least [16:50:41] you can listen to 'beforeTabCollapse' and 'beforeTabExpand' on `#p-views ul` [16:50:41] MatmaRex: yeah? do tell [16:50:42] MutationObserver should be in all major browsers for quite some time now [16:50:55] MusikAnimal: but, a simpler way, would be to remove the .collapsible class from the history
  • [16:51:12] it won't be collapsed/expanded then, and you can implement your own magic [16:51:29] MutationObserver is really only a problem with IE, only supports 11 [16:51:35] *only supported in [16:51:36] well, maybe not simpler, depending on what you're doing… but it might be simpler :) [16:52:13] yeah I want the event, thanks for finding it! [18:07:23] anyone know of a "permission" or "right" that I could look for that would tell me whether or the user could view [[Special:UserRights]]? [18:07:50] the permissions "userrights" is part of the steward group but not sysop or epcoordinator, both of which can view Special:UserRights [18:08:14] MusikAnimal: anyone with 'userrights' or who can add/remove groups can view Special:UserRights [18:08:24] latter [18:08:32] add/remove groups [18:08:44] looking at [[Special:ListGroupRights]] on enwiki there's no permission named for this [18:08:51] er, I mean both [18:09:11] the 'userrights' permission lets you change add/remove any group. [18:09:19] but sysops don't have that [18:09:23] or If you can add/remove any group, you have access to Special:UserRights [18:09:43] it appears only stewards have "userrights" [18:09:44] so sysops can grant rollback, confirmed, etc., so they have access to it [18:10:31] I just need to know if the user can view [[Special:UserRights]]. "userrights" doesn't do the trick :( [18:11:20] I'm saying that there isn't a permission you can look for [18:11:33] you have to check if they can add or remove groups [18:11:48] is there any easy way to do that? [18:11:58] is there API endpoint? [18:11:59] well, what specifically are you trying to do? [18:12:40] hit an API endpoint, supplying a user name, and based on the response be able to know if they can access [[Special:UserRights]] on that wiki [18:12:57] no, why do you want to know if they can access Special:UserRights? [18:13:09] it's for [[User:MusikAnimal/MoreMenu]] [18:13:30] I'm improving cross-wiki support, since right now it checks for user groups rather than permissions [18:13:44] ^ link is on enwiki [18:15:31] MusikAnimal: https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=usergroups the 'add' / 'remove' keys indicate what groups they can remove. [18:16:13] dang, so I have to fetch all permissions [18:16:14] so be it! [18:16:19] thank you [18:17:57] legoktm: right now my api call is https://en.wikipedia.org/w/api.php?action=query&format=json&list=users|blocks&ususers=Example&bkusers=Example&usprop=blockinfo|groups&bkprop=id [18:18:13] do you think adding the meta parameter will cause it to be noticeably slower? [18:18:46] MusikAnimal: you could just make the API request once and then cache the result? [18:19:06] the script gets loaded on every page, maybe use local storage? [18:19:34] yeah [18:19:40] yeah, I can hit the meta endpoint once and store that [18:19:45] check if it exists [18:19:51] awesome [18:20:10] I guess for older IE's it'll just have to fetch every time [18:20:40] you can use jStorage I think which has auto-fallback [18:21:48] MusikAnimal: https://www.mediawiki.org/wiki/ResourceLoader/Default_modules#jquery.jStorage [18:22:03] yay! thank you! [18:26:32] legoktm: is jStorage nested in some other object (JS namespace)? $.jStorage is undefined [18:28:11] I'm okay making my own fallback for IE [18:28:25] or browsers that don't support local storage [18:29:37] MusikAnimal: you have load the module, mw.loader.load('jquery.jStorage') or mw.loader.using [18:30:52] awesome! I keep forgetting about all that resource loader stuff [18:44:44] Gosh. http://tools.wmflabs.org/catscan2/reverse_tree.php for "Wikimedia Foundation" on enwiki shows it's categorised in, amongst other things, Category:Tourism in Europe. [18:44:53] Great system we've got here. :-( [18:48:22] Was mw.api() available in MW1.19.23? [18:49:03] It's not specified in docs or on RL/Dm when itwas added [18:49:17] Wiki communities -> … -> Kantianism -> … -> History of Poland (1795–1918) -> … -> Soviet Union -> … -> Syria -> … -> Islamic State of Iraq and the Levant activities -> … -> Presidency of George W. Bush -> … -> American families of Scotch-Irish ancestry -> … -> Ulster -> … -> Tourism in Europe. [18:49:22] Completely insane. [18:51:01] <^d> I love enwiki [18:51:07] why? [18:51:50] https://en.wikipedia.org/wiki/Category_(Kant) [18:51:52] poor kant. [18:52:38] James_F: yeah, en.wp's category tree falls apart after a few levels [18:53:06] some other wikis do better, we made some effort on pl.wp to separate actual tree-like categories from categories grouping X-related articles [18:55:42] MatmaRex: Wikidata-based isA tags and curated auto-intersections as "Categories" could probably solve this. [18:55:46] MatmaRex: Eventually. :-) [18:56:18] James_F: like that's gonna happen in our lifetimes. ;) [18:57:01] MatmaRex: I might make it your special project if you don't watch it. ;-) [18:57:49] apage, apage! [20:35:41] oooooooooodio when I'm deleting spam and mediawiki.org is read/only