wikishia:WikiProject User scripts/Old requests

From wikishia

Really old unfullfiled user scripts requests are moved to this page.

If you have a solution for any of these requests, please contact the user who made a request.


Add pages to shared watchlists

A one click way to add pages to shared watchlists, i.e. like the ones under Wikipedia:Watch in the same way as pages can be added to the private watchlist. JesseW 19:51, 18 August 2005 (UTC)

Add descriptions to pages on the private watchlist

A way to add descriptions to pages on the private watchlist. i.e. "watch for vandalism", "watch for replies to my comment", "watch until the end of December", etc. JesseW 19:51, 18 August 2005 (UTC)

Improved image upload box

Improved image upload box(see VP discussion for more details) JesseW 23:01, 24 August 2005 (UTC)

Highlight watched articles by category

A way to highlight articles on your watchlist which are in a specific category(in this case, Category:Proposed deletion) JesseW, the juggling janitor 07:58, 12 February 2006 (UTC)

Open unvisited watchlist diffs in tabs

A way to open up in tabs all diffs on one's watchlist that haven't been visited. I guess this would probably be a browser-specific thing, but I waste so much time just clicking on links to open up diffs on my watchlist, almost as much as I do checking! --maru (talk) contribs 05:24, 21 March 2006 (UTC)

The adah extension could probably handle that. --Gwern (contribs) 01:39 18 September 2007 (GMT)

Featured picture candidates nomination

A tool to help with nominating images for commons:COM:FPC, which at the moment is inordinately hard due to nesting of templates needed to allow multilingual versions of pages. In fact, anyone interested in developing stuff for the Commons would be very welcome to contact me. Thanks, pfctdayelise (translate?) 00:58, 1 April 2006 (UTC)

History of a single section of a page

This request is related to the one above about the watchlist. A way to only see the history for that section. It would be hard to search the whole page's history for one little change in one section. --GeorgeMoneyTalk  Contribs 22:21, 21 April 2006 (UTC)

Add footnotes using dialog box

A script to aid adding footnotes. Computerjoe's talk 11:57, 30 April 2006 (UTC)

That's rather vague... -rayluT 19:24, 30 April 2006 (UTC)
A script which adds a button to allow footnotes to be added through a JS dialog box. Computerjoe's talk 15:58, 1 May 2006 (UTC)
How about User:AndyZ/monobook.js/footnotehelper.js? As of now, it simplifies the process of creating web footnotes; I'll take care of the book footnotes later. Andy t 01:47, 10 June 2006 (UTC)

Universal "new messages" notification

A universal or global 'new messages' notification system (or in the simpler case: a Commons: 'new messages' notification system, that tells you on en.wp when you have new messages on the Commons). This is needed so that people are informed of image deletion warnings which are placed on their Commons talk pages. Also if the universal login is implemented, something like this would be super handy, although it hasn't been official proposed AFAIK. If en.wp's free uploads are RDRed to Commons (as mooted on wikien-l), we would really want this. Thanks. pfctdayelise (translate?) 11:37, 4 May 2006 (UTC)

Scratch this: Brion has indicated it will be part of the universal login system. pfctdayelise (translate?) 02:53, 5 May 2006 (UTC)
The ULS still is not implemented though. For the record. t is possible, check the last script in my monobook User:Voice of All/monobook.js, and you will find a cross-site XML request system and instructions. I use a similar code to check Commons images licenses and a normal XML request script to inform me of all admin backlogs just like new messages. What you are asking for could be created by merging those ideas and applying it to al relavent wikis (though you would have to be logged into them).Voice-of-All 20:17, 3 July 2006 (UTC)

Rename "edit this page" tab to "edit"

A way to turn the "edit this page" link to "edit". --GeorgeMoney (talk) 00:15, 6 May 2006 (UTC)

I don't know if this is the best way to do it, but it works:
addOnloadHook(function(){ document.getElementById("ca-edit").firstChild.innerHTML = "edit";});

~MDD4696 02:44, 6 May 2006 (UTC)

That doesn't work under my blue colgne skin. --maru (talk) contribs 04:18, 6 May 2006 (UTC)
An equivalent script in Cologne Blue is significantly more complicated. ~MDD4696 00:18, 8 May 2006 (UTC)
How about this: User:Ilmari Karonen/cologneblue/shorteditlinks.js? —Ilmari Karonen (talk) 16:09, 8 May 2006 (UTC).
That works nicely, thank you. --maru (talk) contribs 04:30, 17 May 2006 (UTC)
It works in monobook, but it seems to contradict with the popups script. --GeorgeMoneyTalk  Contribs 04:33, 6 May 2006 (UTC)
Can you indicate in what way it breaks? Shinobu 02:18, 13 December 2006 (UTC)

Copyvio helper script

This may well already exist, but I'd like a simple way to deal with copyvios. Specifically, I should be able to click one link which will open a tab (or tabs, if editing more than one page is needed) editing the relevant page, with a skeleton copyvio notice in there. Bonus points for being able to add the url easily. It'd also be nice to be able to notify the authors of the page of the listing by clicking links on the history page. Lupin|talk|popups 03:06, 6 June 2006 (UTC)

Check out commons:MediaWiki:Quick-delete.js. [ælfəks] 04:11, 2 October 2006 (UTC)
Can you please clarify? Do you mean a way to easily tag copyvios and notify the contributors? GeorgeMoney (talk) 01:35, 8 October 2006 (UTC)

Watchlist watcher

Watchlist watcher: I want a function to blink the watchlist link (change it to color #FFCC00 my watchlist) at 20% duty cycle (250 ms on, then 1000 ms off) whenever a page on my watchlist has changed. The alert should reset whenever the watchlist is accessed. I know there's Lupin's anti-vandal tool (which I have actually changed to show the most recent edits first), but I want to patrol my watchlist while I'm reading Wikipedia. (The watched pages don't change before 15 minutes usually.) Invitatious 17:04, 9 June 2006 (UTC)

I actually wrote a very similar script, but had to disable it again, because the developers removed the watchlist API access. (Apparently it was because the code that was handling the watchlist access server-side was putting its load onto the wrong server.) --ais523 11:50, 4 May 2007 (UTC)

Check copyright tag for all images in article

A way to check if every single image on an article has an image copyright tag, or if it is fair use if it has a fair use rationale. Andy t 01:27, 23 June 2006 (UTC)

Shortcut key for delete in classic skin

I'd like to know a way in the classic skin to make ctrl-/ a shortcut key for delete.Geni 00:14, 6 September 2006 (UTC)

You can't. Keyboard shortcuts must be an ALT-? combination. So do you want ALT-/ (forward slash) to do the same action as clicking the "delete" tab? ~MDD4696 02:01, 6 September 2006 (UTC)
it would be useful.Geni 10:31, 6 September 2006 (UTC)
In monobook it would be:
ta['ca-delete'] = ['/', 'Delete page'];
but since I don't use Classic I'm not sure how well this would translate. [ælfəks] 08:52, 14 October 2006 (UTC)

Correct variations of "Weidenfeld & Nicolson" globally

I've noticed a lot of variation in the name of the publishers 'Weidenfeld & Nicolson' (which seems to be the correct version acc to http://www.orionbooks.co.uk/). (My own surname is Nicolson so I have had a lifetime's experience of deleting the h and indeed the occasional k.) No doubt Weidenfeld is subject to variations too. I'm sure there's some clever way of globally correcting any infelicities. Any suggestions or (better still) volunteers? roundhouse 15:25, 20 September 2006 (UTC)

User scripts aren't really perfect for that sort of thing, as you would probably have to navigate manually to each page that needs fixing. If you can find a list of pages that need changing (e.g. by Wikipedia or Google search), it would certainly be possible to write a script that would make the change in one click. Another possibility would be to use AWB. --ais523 15:29, 20 September 2006 (UTC)

Wikitext syntax parser

Is there any javascript implementation of a reusable wikitext syntax parser? --Cameltrader 22:27, 6 October 2006 (UTC)

You could have a look at live preview, and I've worked on something similar myself, but both are wikitext→HTML converters. I've been meaning to rewrite it in a generic parser, a grammar, and an HTML-generator, but I'm not sure whether I ever find the time to finish that. Still, have a look at live preview. Shinobu 02:00, 7 October 2006 (UTC)
Yes, User:Pilaf/livepreview.js seems to be doing replacements with regular expressions to convert wikisource immediately to HTML, and I guess you are using a similar approach. MediaWiki's PHPs are doing that too. I'd imagine that some day we will all have a common parser producing an object model similar to DOM, but it's too much for me to do anything serious about it this weekend. --Cameltrader 08:06, 8 October 2006 (UTC)

Convert external links to <ref> tags

Is there any way to write a script that converts normal links in <ref> tags to use the {{cite web}} template? Anything would be appreciated. -- Selmo (talk) 21:44, 8 October 2006 (UTC)

You could use one of the regex search tools to search for <ref>.*http:\/\/.*<\/ref> or something. But automatically replacing is very difficult considering the large differences in the way these are linked. Shinobu 23:14, 8 October 2006 (UTC)

Possible to fork Speller Pages?

Is it possible to fork this?

That would be so cool! How is their hotlinking policy? Is it alright, or should we mirror? Shinobu 16:52, 27 October 2006 (UTC)
It needs a server-side component, which would put too much a strain on the servers, and will be very hard to port to JavaScript. It won't happen. At least not any time soon. Try to find a browser plug-in with the same functionality. Shinobu 20:02, 1 November 2006 (UTC)

Tag articles with {{prod}}

How about a script for tagging articles for PROD? We have them for speedy deletes and AFDs, but not PROD. It'd be pretty useful, I think. PMC 20:16, 3 November 2006 (UTC)

There's something on the tutorial similar to this.
function doprod() {
    var prompt=prompt("Reason for prod?");
    document.editform.wpTextbox1.value = "{"+"{wikify|"+prompt+"}}\n\n" + document.editform.wpTextbox1.value;
    document.editform.submit();
}
Then call it with addToolbox link, or something like that. Z388 13:50, 4 November 2006 (UTC)
Call it? I'm sorry, you've already lost me. I have no head for code at all. I don't know how to do that. PMC 06:20, 5 November 2006 (UTC)
He means "put it in the toolbox using the little script to be found here", like:
addToolboxLink("javascript:void doprod();", "Some informative caption");
Perhaps you may think you "have no head for code", but JavaScript doesn't need to be difficult. It can be, if you wish, but it doesn't need to be. Shinobu 02:12, 13 December 2006 (UTC)


Automatic imagecopyvio script

I'd like an automatic imagecopyvio script, could be adapted from autocopyvio with a few simple additions and tweaks, such as adding user talk page notification, there isn't much work. I tried to modify it but failed. See User:Mecu/imagevio.js. --MECUtalk 23:01, 30 December 2006 (UTC)

Automatically watchlist article of the day

I don't know if this is possible, but I'd like a script that automatically adds the article of the day to my watchlist, so I can revert vandalism there. If this is not possible, then perhaps something in the toolbox that says "add AOTD to watchlist" or something of the like. I'd appreciate any help, as I am a completly incompetent when it comes to scripts. Thanks! | AndonicO Talk · Sign Here 17:05, 25 January 2007 (UTC)

Doing it automatically would be incredibly difficult to keep track of, so instead I've made it a toolbox link (per your second choice). Does User:ais523/watchTFA.js do what you want? --ais523 18:02, 25 January 2007 (UTC)
It's fine, but it seems to have an error. It says "Not Found". | AndonicO Talk · Sign Here 18:19, 25 January 2007 (UTC)

WP:PUI helper script

How about a script to aid in the WP:PUI process, namely:

(From an image page)
  1. Tag the image with a {{PUIdisputed}} or {{PUInonfree}} (possibly from a tab that is only visible on a page in the Image: namespace.)
  2. Pop-up a window for the uploader of this image, and add {{subst:idw-pui|Image:filename.ext}} to the bottom of the User talk page.
  3. Pop-up a second window with Wikipedia:Possibly unfree images, and place at the bottom of the page [[:Image:filename.ext]] - <!-- insert reason here --> ~~~~
    (It'd be great too if the "reason" that was inserted could be a pop-up text entry box.)

If this already exists, please let me know so I can start using it! And if not, I'd appreciate your help with it. The whole process is really time-consuming, and I feel that a lot of unfree images are being used because people don't have the patience to make all these edits. Thanks! tiZom(2¢) 19:51, 16 April 2007 (UTC)

Perhaps rather than opening a new window, the edits can be manually approved on the image page and then made with Ajax? Gah... now we're turning into Google Web Development... (at least I am) It's possible, though. What does anyone else think about going about this? GracenotesT § 01:20, 18 April 2007 (UTC)
It's certainly possible. Wouldn't AJAX saving script always win edit conflicts though? ;) — Alex Smotrov 23:00, 18 April 2007 (UTC)

Auto link

Can you create a script that makes it so that when you type in [[User:example]] or something of the like, it turns it into Example user without having to type the "|Example User" in. Sincerely, Sir intellegent - smartr tahn eaver!!!! 22:08, 4 May 2007 (UTC)

Do you always say Example user, wouldn't [[User:Example|]] which produces Example be enough? — Alex Smotrov 22:19, 4 May 2007 (UTC)

RC birds

What about a script version of RC birds that runs in the background, while still having controls in the form of a user subpage. — Preceding unsigned comment added by CommonEditor2345 (talkcontribs)

What are you talking about? Do you mean "RC birds" like an ornithopter? This page is for requests for scripts that help you improve the encyclopedia and it doesn't sound like that's what you're looking for. Sorry if I misunderstand. Mike Dillon 14:37, 25 May 2007 (UTC)
I ment this: http://meta.wikimedia.org/wiki/Rcbirds(RC is recent changes).But ok.Also I think that would help because odd patterns while on wikipedia but not on recent changes patrol at the time, like if I was looking up some thing and unusual sonds apeared, I would return to my recent changes patrol and find out what happend.

Rollback

Could anybody make me a rollback link thing? Up until now I've only done mostly color stuff with my monobook(on other wikis), but I'm interested in adding a rollback link. If you can, make it as similar to the one used by admins as possible. i.e. [ rollback ] looks like this, reverts last users edits, shows up on user contribution page, as well as the history of the page. I can't seem to find this anywhere, but I've heard of a few people doing it, so I'd like it for myself. Thanks, Pinky 06:03, 10 June 2007 (UTC)

User:Ilmari_Karonen/godmode-light.js used to do this, but it hasn't been maintained for ages so I don't know if it still works. If it doesn't, fixing it would probably be easier than writing a new script. --ais523 12:54, 11 June 2007 (UTC)
WP:TW has one too. The Sunshine Man 11:49, 25 June 2007 (UTC)