Jump to content

Wikipedia:User scripts/Requests/Archive 3

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by DannyS712 (talk | contribs) at 18:41, 28 February 2019 (oops). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 1Archive 2Archive 3Archive 4Archive 5Archive 9

Wanted: Add article onto a 'To Do' list for further action

A script or gadget to automate the addition of article titles (perhaps to a user-defined sub-page) for future monitoring and follow-up action. Effectively, this would be a 'To Do' list. Serving a completely different purpose from a Watch List, it would need to be just as easy to use. As a New Page Patroller and spell-checker, I encounter innumerable articles that need following up in some way. I desire to create a separate list of these pages to work through at some future point - possibly putting forward for deletion, or checking that pages tagged with templates have been actioned. Or I may wish simply to add pages to my 'To Do' list so I can edit them myself later. Because some of these pages rarely get edited again, using a Watch List does not help, and it would weaken the way the Watch List works for monitoring pages of real interest. I have no way of knowing whether such a tool already exists, but having a parallel Watch list for direct editorial action would, I believe, be immensely helpful to many editors. Nick Moyes (talk) 00:23, 16 June 2017 (UTC)

@Nick Moyes: See Wikipedia:User scripts/List § Todo lists. That page is good page to check for "knowing whether such a tool already exists" - Evad37 [talk] 01:56, 16 June 2017 (UTC)
Thanks so much. I had already tried looking, but must have missed the link to that section. But I've now found what I was looking for. I appreciate your assistance. Nick Moyes (talk) 10:39, 16 June 2017 (UTC)

Request for someone to take over User:Kephir/gadgets/rater

The rater tool seems to have been abandoned some years ago, but is an amazing and incredibly useful tool that is used by a lot of New Page Patrollers and other editors that frequently rate articles. Suggestions for improvement on the gadget's talk page go unnoticed by its creator and that is a big shame. Although the tool is amazing, an editor actively improving it could do some tremendous good by taking over maintenance of the tool.

  1. I also know of some wikiprojects that are not currently on its list (I have added some), but I suspect there are a ton more, which makes rating unlisted wikiprojects very difficult for those that are used to using the tool extensively (i.e. the wikiproject list needs updating to add new wikiprojects and remove dead wikiprojects).
  2. The biography wikiproject 'List as' parameter could definitely use autofill based on the most common name format (i.e. strip off any parentheses, then autofill as last, first middle+).

These are just some of the improvements that could be made to the tool. Thanks to whoever decides to help here! — InsertCleverPhraseHere 09:09, 16 July 2017 (UTC)

See User:Evad37/rater. The Transhumanist 13:33, 13 January 2018 (UTC)

Request for page blocking script

HI! I'm facing significant problems because there are many pages that I don't want to see and can cause family problems. A long discussion is taking place at Teahouse regarding this (see Blocking page view). There, it has been asked me to request a user script here which will enable me to block those pages. I request a script by which I can block articles. that I feel are not safe for me. User:Nazim Hussain Pak Sinner (talk) 14:32, 9 August 2017 (UTC)

@Nazim Hussain Pak: How would you like the script to determine what should be blocked? Hiding the content of pages from a list of pages should be fairly easy to create. Going by other criteria would be progressively more difficult, the more subjective the criteria. The Transhumanist 00:21, 5 January 2018 (UTC)

Soccerbase Script

Struway2 has made this Template:Soccerbase season page, however, this will take a lot of time to use the copy and paste and changing the ID and year parameter to every football article with the longer code version to display the references. A script would get things done easier and quicker to do. For example, changing the content from this {{Cite web| title = Games played by Matthew Lowton in 2011/2012| url = http://www.soccerbase.com/players/player.sd?player_id=53439&season_id=141| publisher = Soccerbase| accessdate = 23 June 2015}} to this {{Soccerbase season|id=53439|season=2011|name=Matthew Lowton|accessdate=23 June 2015}} would take a long time for the same user to do for every page. Iggy (talk) 11:11, 16 September 2017 (UTC)

@Iggy the Swan: is this still needed? I'm not saying, that I will do this, but... --Edgars2007 (talk/contribs) 06:41, 6 March 2018 (UTC)
@Edgars2007: - a bot has already converted the work so this is no longer needed. I'd forgotten I posted this, Iggy (Swan) 18:03, 6 March 2018 (UTC)

Tabber Script

I wish to have something like this. Artix (Message wall) 23:55, 14 October 2017 (UTC)

also, how to highlight own name in history? Artix Kreiger (talk) 21:17, 26 October 2017 (UTC)
Use Template:Page tabs --Danski454 (talk) 16:34, 3 August 2018 (UTC)

Request for Hyperlinks to other articles to show an article preview when hovering over them

I think it'd be great if, when you hover over a hyperlink to another Wikipedia article, a small box pops up giving you the first few lines and maybe the lead picture of that article. It'd sort of look like when you hover over a citation number now. I have no idea how to do this, but I think it'd be awesome if there was just a term or something that someone didn't know, that they could just hover over the link instead of having to open a new tab. — Preceding unsigned comment added by BenJenkins (talkcontribs)

@BenJenkins: Go to your preferences, select the appearances tab, and choose the "page previews" option; that should do what you want. There's also navigation popups in the gadgets section, but that's for more advanced editing features. ~ Amory (utc) 00:49, 26 March 2018 (UTC)
For a more advanced alternative to Amorymeltzer's suggestion that shows previews for non-article pages, try the Navigation Popups gadget. It's under the gadgets tab in Preferences. — pythoncoder  (talk | contribs) 22:44, 27 April 2018 (UTC)

Resource limit?

I have a simple script on meta:User:Bdijkstra/global.js to do some text replacement for visual aesthetics. On short pages it works fine, but on longer pages it seems that the script stops running after a certain point. Is there some sort of resource limit that I am hitting? --bdijkstra (talk) 16:11, 18 June 2018 (UTC)

Never mind. It turns out that the jQuery selector doesn't wait for the page to finish loading, so the script often finished execution before all content was loaded. --bdijkstra (talk) 11:53, 21 June 2018 (UTC)

Is there a script that turns all links in a category to something you might see with {{pagelinks}}? For example, instead of seeing

in a category, you would see

Does such a script exist? (Similar to User:Equazcion/CatListMainTalkLinks.) If not, I'd be happy to write it up, I just wanted to check beforehand. Cheers. -- AlexTW 02:28, 15 August 2018 (UTC)

 Done Did it myself. -- AlexTW 11:39, 28 August 2018 (UTC)

Hotcat-like searchable stub sorting/stub tagging script, with hierarchy searching

There isn't currently a great script for stub sorting and stub tagging, the best I have found is User:Ais523/stubtagtab2.js, ideally we would have a hotcat-like searchable field for stub tagging. This would be useful to both New Page Reviewers, as well as to Wikipedia:WikiProject Stub sorting.

Ideally it would work as a hierarchy system somehow, using the hierarchy system at Wikipedia:WikiProject_Stub_sorting/Stub_types. For example; you would put 'school' into the field, then when you select School stubs, it would populate a scroll-able list suggesting the next level of hierarchy down (e.g. African school stubs, Asian school stubs, etc), then when you select African school stubs, it would populate a scroll-able list suggesting the next level of hierarchy down (e.g. Algerian school stubs, Kenyan school stubs, etc), and so on until you reach the bottom of the hierarchy tree. You should also be able to use the search tree to search for any stub tag, (e.g. jump directly to Kenyan school stubs).

At minimum a hotcat-like search field that you can just search in would be great, but a hierarchy system would be way better at minimising generic stub choices (a hierarchy sytem for Hotcat would also be really awesome, but that is another job entirely.

Please ping me if responding to this post. Cheers! — Insertcleverphrasehere (or here) 10:39, 16 October 2018 (UTC)

Working on it --Danski454 (talk) 14:06, 24 October 2018 (UTC)
@Insertcleverphrasehere: done: User:Danski454/stubsearch.js (doc) --Danski454 (talk) 09:49, 25 October 2018 (UTC)
Amazing! Thanks very much. — Insertcleverphrasehere (or here) 10:02, 25 October 2018 (UTC)

This script is great for adding stub categories, thanks both to @Insertcleverphrasehere: and @Danski454:! Any chance the script could make it easy to remove stub templates that are currently on the page? A common task is to remove a more general stub template and apply a more specific one. -Furicorn (talk) 19:18, 26 October 2018 (UTC)

@Furicorn: I've added a button which replaces all stub tags on the page with the selected tag, then loads the diff. --Danski454 (talk) 21:09, 26 October 2018 (UTC)
@Danski454: wow, thanks for the incredibly quick turnaround. I noticed something weird - I was trying to test it on Roman Catholic Diocese of Qinzhou by adding {{PRChina-RC-diocese-stub}} and searched "roman catholic diocese stubs". I then selected Asian Roman Catholic diocese stubs, which has two subcategories, Chinese Roman Catholic diocese stubs and Indian Roman Catholic diocese stubs. However, only Indian Roman Catholic diocese stubs shows up in the script search results, and I also get no results when I directly search for Chinese Roman Catholic diocese stubs. Any thoughts? -Furicorn (talk) 03:45, 27 October 2018 (UTC)
@Furicorn: for some reason, Chinese Roman Catholic diocese stubs was not listed on Wikipedia:WikiProject_Stub_sorting/Stub_types, (Permalink), I am adding it now. --Danski454 (talk) 09:32, 27 October 2018 (UTC)
@Danski454: thanks, I'll make sure to check that next time. -Furicorn (talk) 10:21, 27 October 2018 (UTC)

Contribs and user groups

Hddty., would WP:POPUPS work? That way, you can hover over their signature and see both of these things. Enterprisey (talk!) 09:50, 18 November 2018 (UTC)
@Enterprisey: Thanks, I didn't know that. Hddty. (talk) 02:37, 19 November 2018 (UTC)

Minimise sections

This is needed for desktop mode, since it is already there in mobile mode. This way, I can hide the plot section to avoid unintentionally reading spoilers. --Kailash29792 (talk) 09:23, 27 April 2018 (UTC)

@Kailash29792: does User:BethNaught/hideSectionDesktop.js help? It does not auto-collapse the sections (although it could be so modified) but you can use it to hide a plot section. BethNaught (talk) 11:06, 12 July 2018 (UTC)
So I just copy it onto my skin.js page and that's it? Because that's just what I've done now. --Kailash29792 (talk) 11:11, 12 July 2018 (UTC)
Now I put it on my common.js page, and voila! Thank you very much BethNaught. It now doesn't have to be on the skin page, does it? --Kailash29792 (talk) 11:20, 12 July 2018 (UTC)
No, it doesn't. BethNaught (talk) 11:34, 12 July 2018 (UTC)

AutoRollbacker

A script that would rollback automatically a persistent vandal until an admin blocks him. To prevent abuse, maybe the script would work only if the user is reported to AIV. L293D ( • ) 18:35, 6 May 2018 (UTC)

I've always wanted a script that puts the number of new edits made by a user at the beginning of the tab title (in the browser window), so that I can look over new ones as they come in. Maybe this is a more general solution. Enterprisey (talk!) 09:51, 18 November 2018 (UTC)
L293D, User:Bellezzasolo/Scripts/meganuke.js might do the trick. Flooded with them hundreds 10:46, 24 November 2018 (UTC)

Auto Copyvio check for unreviewed pages (for new page reviewers)

A script that automatically pops up a small box whenever you navigate to an unreviewed main-space page (ideally pinned to the bottom right side of the window and scrolls with the page to stay out of the way of the reviewer, similar to the Page Curation tools), in which it runs a search in Earwig's copyvio detector. This box would be grey at first (while the search is running), but would then display the confidence % result of the copyvio report and change colour to Green/Yellow/Red (depending on the confidence %). Clicking on the box would either A) 'expand' it in a window without navigating away from the page, allowing the reviewer to click on the box to expand the copyvio report, or click it again to minimise it and display only the colour coded confidence% result (ideally), or B) link to the full copyvio report page and open it in a new tab (probably much easier, but it would be better not to have to navigate away form the page).

Option to have it be not automatic would be nice (instead only launching it manually like most other scripts). It should also be able to be launched manually on articles that are already marked as 'reviewed', but this should be by default not automatic. And it should also be configurable for manual or automatic use on AfC drafts (probably default as automatic). — Insertcleverphrasehere (or here) 22:41, 19 October 2018 (UTC)

Please ping me if responding to this request. Cheers! — Insertcleverphrasehere (or here) 11:39, 16 October 2018 (UTC)

Insertcleverphrasehere, I created a script at User:FR30799386/copyvio-check.js which basically displays the cpvio percentage within the info menu of the NPP toolset. — fr 09:52, 2 January 2019 (UTC)
I like it! This will be really useful, thanks. Any chance yu could put together a brief info page for the script? It would be good to know; Does it start calculating when the page is opened, or only after you click the info button? (it seems from testing to be when the page opens, which is great). — Insertcleverphrasehere (or here)(click me!) 10:04, 2 January 2019 (UTC)
Just created a info page. The search starts when the menu of icons get fully loaded. — fr 11:03, 2 January 2019 (UTC)

Wanted:Show WikiData Q number on Wiki Articles

I'd like to see the WikiData Q number for a given article (I know its available by clicking on the Wiki link in the sidebar.) The primary reason is to speed up using the WikiData Mix-n-Match process. I often end up using an external search engine to identify the correct Wiki article, but then I have to click again to get the Q number that I need to make the association. (It would be extra nice if it worked on more than 1 language Wiki ;-) Thanks. Dcheney (talk) 05:29, 3 December 2018 (UTC)

@Dcheney: I've written something that adds the Q number to the title (similar to those on wikidata). To install on all wikis add mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Danski454/wikidata_Qnum.js&action=raw&ctype=text/javascript' ); to your global.js. Danski454 (talk) 18:20, 3 December 2018 (UTC)
Perfect! Thank you, especially for the fast response! --Dcheney (talk) 22:51, 3 December 2018 (UTC)

Undo move

Clicking the Undo button for a move on a history page goes to "The edit appears to have already been undone. You may have attempted to undo a page move, protection action or import action; these cannot be undone this way." I need a script that could make the Undo button on a history page work like the Revert button in the Move log (clicking it goes to the Special:MovePage to undo the move.) Flooded with them hundreds 14:41, 19 December 2018 (UTC)

@Flooded with them hundreds: I've written this. Danski454 (talk) 18:16, 19 December 2018 (UTC)
Incredible! Great work, it works smoothly. Thanks! Flooded with them hundreds 11:18, 20 December 2018 (UTC)

"RCpage" user script

I would like a user script that when used, creates a subpage of the user's page called RCpage (like User:Username/RCpage) and pastes the contents of User:PorkchopGMX/RCpage default onto that page. If it were a gadget I would want to call it RCpage but i'm not wanting this to be a gadget. An example of a customized version would be this. Thanks! PorkchopGMX 17:32, 24 October 2018 (UTC)

@PorkchopGMX: could you not just use {{subst:User:PorkchopGMX/RCpage default}}? --Danski454 (talk) 09:56, 25 October 2018 (UTC)

User:Bility/convert24hourtime.js

Would anyone be able to revise User:Bility/convert24hourtime.js? It hasn’t been updated in seven years and it’s quite buggy. The thanks button shows up differently, conflicts with the blocked template in Contributions page, and doesn’t work when looking at diff. -- 1989 (talk) 00:51, 10 January 2019 (UTC)

Auto-classifying bot

There is a huge backlog within most Wikipedia Projects of unclassified articles. I've been recently assessing a number of these for the Politics Project, and have noticed a few patterns that I believe could be automated to heavily reduce this backlog.

  • At the moment I believe there is a bot that goes around and updates quality tags if another tag on the project has had it's quality increased. However, it appears to only do this if there is currently a quality tag for the project. I believe this can and should be updated to do this regardless of whether there is such a tag for a project. If, for instance, it finds a page like this Talk:1842 New York gubernatorial election it should update the Politics and Election & Referendum templates for that article with the stub class tag, in the process removing that article from the list of articles that the Politics Project needs to work on - and this is not an isolated occurrence. I don't have the numbers, but I have seen this sort of thing numerous times.
  • It is also sometimes possible to discern the importance of a article with excellent accuracy from the assessment of surrounding projects. For instance, in this article Talk:1844 United States presidential election in New York it would be reasonable to take the assessment from the US/Government/PresElections taskforce, if such an assessment is low, and apply it to the politics one, because the Politics project is never going to consider an article that said taskforce considers low importance any higher than that. As such, a bot that projects could instruct to duplicate the tag of certain other taskforces or sub-taskforces, up to a certain tag, to their own taskforce is what I am proposing. Alongside the above proposal, this should drastically reduce the backlog across numerous projects that are willing to set up the instruction page for it.

And of course, if we can heavily reduce the backlog like this, we will make attempting the remaining tasks that must be classified by hand less daunting, and thus more likely to be done. It is true that the second part of this proposal will sometimes result in incorrect classification, but the criteria will be up for each taskforce to determine and so I don't believe that risk should prevent this bot being created - and even if they are incorrectly assessed, a few incorrect assessments are better than numerous unassessed articles.

If no one is interested in taking this up then I do intend to get around to it at some point - unless someone is able to explain why it is stupid/unnecessary, though I think the first part of this proposal would be better as a modification to the existing tag-update bot.

-- NoCOBOL (talk) 07:12, 25 January 2019 (UTC)

@NoCOBOL: This page is for user scripts, not bots. Your request would be best handled at WP:BOTREQ Danski454 (talk) 07:23, 25 January 2019 (UTC)
Oops. Created there. Feel free to delete from here if that would be appropriate. -- NoCOBOL (talk) 07:51, 25 January 2019 (UTC)

I just found and fixed an article with two Wikipedia links to two articles that were nothing but redirects back to it, and apparently that's all they had ever been. [1] Can you make a bot to check all Wikipedia links that point to pages that are redirects, then checks to see if that redirect points back to the page its coming from, and then remove the brackets around it so it doesn't link there anymore? If the link has a | in it, then keep what's after that and ditch the rest. Dream Focus 15:49, 26 January 2019 (UTC)

@Dream Focus: If you want a bot to make fully automated edits, you need to ask at WP:BOTREQ. If you just want a tool to help you during editing, or to make semi-automated edits to a particular page when you tell it to, that would be possible with a userscript. - Evad37 [talk] 16:11, 26 January 2019 (UTC)
Whoops! At Wikipedia:Bots it links to here at the top. I'll go post in the proper area. Dream Focus 16:28, 26 January 2019 (UTC)