Wikipedia:User scripts/Requests/Archive 2

Archive 1 Archive 2 Archive 3 Archive 4 Archive 5

Templates in edit toolbar

Something like this:
 Templates

Cleanup
Deletion
Info box           
Nav box
User warnings
Maintenance
Disambig

Software


Taxobox
Chembox


Book
Film
Artist
Golfer

Choosing "Software", could add to edit box:

{{Infobox Software
| name = 
| logo = 
| screenshot = 
| caption = 
| author = 
| developer = 
| released = 
| latest release version = 
| latest release date = 
| latest preview version = 
| latest preview date = 
| operating system = 
| platform = 
| language = 
| status = 
| genre = 
| license = 
| website = 
}}

It's just an example. Is this possible? Mosca2 09:15, 12 May 2007 (UTC)

I think it's possible, but it would be pretty difficult. --ais523 14:36, 12 May 2007 (UTC)
Mr.Z-man might be able to help with that, he did make refTools. – ThatWikiGuy (talk | life | I feel like I'm being watched) 23:43, 2 May 2008 (UTC)

Nested Menus

I too would like to request this. The closest thing is User:Odie5533/SnipManager and the code atUser:Odie5533/SnipManager.user.js. If someone could make the menus nested, I could expand the template variety significantly.Smallman12q (talk) 01:40, 17 May 2009 (UTC)

Wikipedia Suggest

If it's possible, it would be cool is someone could add another search bar below the normal one via a portlet modification to create a Wikipedia Suggest. I found this site and was wondering if anyone could write a script to incorporate it. Also, this site has some screenshots of script that perhaps (?) would be helpful. Thanks, thesublime514talk • 00:14, July 10, 2007 (UTC)

Notes to help with possibly making something like this: a search suggestions database query is available at <http://en.wikipedia.org/w/api.php?action=opensearch&search=URL%20encoded%20search%20terms>; this is what Firefox 2 uses for its search suggestions when searching Wikipedia from its own search box. The output's in JSON format. --ais523 16:53, 10 July 2007 (UTC)

Constructing templates and copy to clipboard

I have looked through available scripts and can't find anything quite like what I would like. It it exists already, a pointer would be great.

I would like to have added to popups a facility to construct useful templates. This might even be customizable; not sure. The idea is that when you mouse over a link, you have the option to create some standard templates that would be instantly placed into the clipboard. You could then paste them into comments or pages that you are editing. Here are examples.

  • When you mouse over a user link, there is an option to put "{{user|username}}" into the clipboard.
  • When you mouse over a diff link, there is an option to put "{{wp-diff|page=pagetitle|diff=diffid|oldid=oldid|title=diff}}"

I'm sure other useful possibilities could be given.

Once in the clip board, these could be pasted as required into whatever text you are writing at the time. -- Duae Quartunciae (t|c) 00:20, 21 July 2007 (UTC)

Great idea, I second this. – ThatWikiGuy (talk) 08:53, 27 May 2008 (UTC)

"Undo" button

Please make a script that will add a "Undo" button at the top when viewing articles. The button will undo the current edit, with out having to go though the edit screen. This would be very good for undoing vandalism... thanks! EvilHom3r 02:21, 7 August 2007 (UTC)

From the article page it's not clear how many last edits to undo. If you simply want to skip the eidt screen, I'm not sure but I think that Navigation popups and Twinkle can do that. P.S. Did you really need 3 edits to write your message? ∴ Alex Smotrov 03:15, 7 August 2007 (UTC)
I believe twinkle has a "last" button tab that lets you see the last difference.Smallman12q (talk) 01:38, 7 February 2009 (UTC)

Page edit alert

Hi, there. I was wondering if it is possible to create a user script (to be located on monobook.js) that enables a user to be alerted when a specific WP page gets edited (this would be the talk page of WikProject Olympics). A script that would work in the same way that when a user gets a "new message" alert whenever his/her talk page gets edited by other users. Can anyone help? Thank you. Parutakupiu 17:45, 8 August 2007 (UTC)

This would require additional requests to the server; what's wrong with simply checking your watchlist from time to time? ∴ Alex Smotrov 20:13, 8 August 2007 (UTC)
Perhaps a watchlist notifier is what you are looking for? It will display a message every time a watched page is edited. —Anas talk? 20:49, 8 August 2007 (UTC)

Whatlinkshere sorting

I suppose I'm not the first one to request this, but I would appreciate it greatly if a script that sorts entries in Special:Whatlinkshere is written or suggested. The required feature is bringing redirects to the top of the page, that is pages from the main namespace automatically tagged "(redirect)". The same goes for "(transclusion)" entries for templates. Additionally, entries can be also grouped by namespace at the end of the list. (I'm aware of scripts that add selection tabs, but as far as I know they do not provide sorting redirects and transclusions.) Súrendil 20:49, 12 August 2007 (UTC)

It's a great idea, but it can't be done correctly just with javascript. Any javascript tool will work only on the links that are already shown on the page. OTOH, it should be possible to fake this by listing links and transclusions separately using api.php. I'm not sure about redirects though. All in all, it would probably work best as a Mediawiki feature. Zocky | picture popups 08:41, 13 August 2007 (UTC)
Mightn't it just be possible to ask for the maximum (5000), and then assume that's everything and sort that? That would get around the problem with which links are already shown on the page. ais523 14:17, 13 August 2007 (UTC)

warning scrips

i am just wondering if a warning script that uses uw tags that will work on IE will be created or if there is one already where i can find it--AFUSCO 22:20, 20 September 2007 (UTC)

WP:TWINKLE. I suggest using Huggle If you are a rollbacker ManishEarthTalkStalk 07:44, 25 February 2010 (UTC)

See user's permission status (administration, rollback, etc.) on User page?

I'd like to be able to see a user's permission status, such as if they are an administrator or have rollback permission, on their user page, if possible. Thanks! Gary King (talk) 22:39, 3 March 2008 (UTC)

I have a script which can show this for any user linked from the page, just need to polish and then publish it, probably next week. —AlexSm 23:00, 7 March 2008 (UTC)
I think that is already in Twinkle LegoKontribsTalkM 18:14, 25 August 2008 (UTC)

Script to count number of revisions in history of a page

So I know that I'm probably just overlooking something, but I've searched and I've searched and I can't find a script that will tell me the number of revisions in a page history. Basically, I'd like a simple little bit of text that looks like this to show up when I look at the history of a page:

From Wikipedia, the free encyclopedia
View logs for this page
There are xxx revisions in the history
(Latest | Earliest) View (newer 50) (older 50) (20 | 50 | 100 | 250 | 500)
For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary.
(cur) = difference from current version, (last) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

In the two weeks or so that I've been an admin, I've had two near-heartstopping times when I've had to delete a couple of pages with revisions in the 1,000s to delete revisions and merge histories. At this rate, I'll be dead of a heart attack before the year is up, so a little script telling me how many revisions a given page has might save me from too much undue shock in the future. --jonny-mt 09:13, 9 April 2008 (UTC)

Only developers can delete pages with over 5000 revisions, by the way. (This was a measure added after a mishap with the WP:SANDBOX.) If that doesn't help, a script could fetch API information until a specified number of revisions is reached (e.g., if query-continue exists in this query, the page has more than 500 revisions). GracenotesT § 15:20, 9 April 2008 (UTC)
Umm... that's a lot of data to fetch. There is another way (someone suggested it on a tech village pump a while ago): 1) on history page click «Earliest», 2) in the bottom row (the very first edit) click «cur», 3) on the diff page look at the text «(NNN intermediate revisions not shown.)» and add 2 to that number. Let me know if you want a script that would do all this in one click. —AlexSm 16:10, 9 April 2008 (UTC)
Ah, that's a much better way. I thought having rvprop empty might be a less intensive database query, but there's still the bandwidth required to get the data back to the client. GracenotesT § 17:57, 9 April 2008 (UTC)

Warning history

Could a script be made that shows an editor the last warning level received by the editor whose talk page they are on? George D. Watson (Dendodge).TalkHelp 19:58, 17 April 2008 (UTC)

You mean like vandalism or other kinds of warning templates? Their use isn't strictly formal, and there really aren't any set "levels" for them. The easiest thing to do is just check the talk page history and see what warnings the user has already received. -- Ned Scott 05:56, 18 April 2008 (UTC)
Well, there's 1, 2, 3, 4 and 4im. If the talk page is used a lot the warning could be a couple of pages through the history. If it's not possible it's easy enough to do it like that but it would certainly make things easier. ...... Dendodge.TalkHelp 10:54, 19 April 2008 (UTC)

Help on a script I'm trying to make

I'm trying to make an assessment script, out of AzaToth's Twinkle RPP. Problem is, I don't know how to program the submit status, so I need a bit of help. Script is here User:Thisisborin9/assessmenttag.js, part of User:Thisisborin9/quickassessment.js Thanks! Thisisborin9sign here! 19:25, 23 April 2008 (UTC)

P.S. The script isn't working. I double-checked everything, but it won't execute it unlike the rpp. Thisisborin9sign here! 22:30, 23 April 2008 (UTC)
There is an assessment script at User talk:Outriggr/assessment.js. GregManninLB (talk) 22:36, 28 April 2008 (UTC)

Edit button for Infoboxes and Persondata

I would like to suggest a new Gadget to add a plus sign or edit button to to infoboxes and persondata templates. This would allow that infobox or persondata template to be modified more easily than opening up the whole page or section.--Kumioko (talk) 16:50, 24 April 2008 (UTC)

This would be pretty hard to do, as such boxes may or may not be templates, or may even be partially formed from templates, or might be templates only in outline and contain all the useful formatting as parameters in the template call, and there is no way for the script to tell which are templates and which are not, without duplicating the parser itself. --Splarka (rant) 20:42, 25 April 2008 (UTC)

Purging subpages

I tagged Ecuador category talk pages with Template:WikiProject Ecuador to place the categories in Category:Category-Class Ecuador pages. This also placed the categories in Category:WikiProject Ecuador articles. Categories are not articles, so I modified Template:WikiProject Ecuador to fix this. The categories still appear in Template:WikiProject Ecuador. One way to fix this is to, for example, open each category page and save them to purge the page. That takes a lot of time. Is there a script that can purge each page listed in Category:Category-Class Ecuador pages so that I don't have to open up each category page and save? Thanks. GregManninLB (talk) 22:25, 28 April 2008 (UTC)

This sort of thing should probably be asked at WP:BOTREQ. Taking care of it, though. Gimmetrow 22:42, 28 April 2008 (UTC)
Done. 183 pages purged in category, image and project talk space. Gimmetrow 23:00, 28 April 2008 (UTC)
I followed up here. GregManninLB (talk) 01:58, 29 April 2008 (UTC)

Multiple watchlists

  • A pull down menu which replaces the my watchlist link, to add multiple watchlists using Special:RecentChangesLinked and the orginal Special:Watchlist.
  • A pull down menu which replaces the watch this page radio button and adds the page to the selected page, in a new tab/window.
  • Oh, and it could be like a tab (replaces watch/unwatch) and a pulldown menu for the Watch this page radio button on the edit forms, if thats posssible. (quote from original text)
  • Notification (like when someone edits your talk page), if possible.

Example; Lets say the watchlist is at User:ThatWikiGuy/deletions and the page to be watched WP:AfD

Original watchlist
General watchlist
XfD
Add/Remove watchlists

They can add/remove watchlists at Special:Mypage/watchlists.js. —Preceding unsigned comment added by ThatWikiGuy (talkcontribs) 00:01, 3 May 2008

Personally, I dislike the idea of making an edit each time you add or remove a title from these additional "watchlists". I suggest you use additional sockpuppet accounts or maybe try gWatch on toolserver. —AlexSm 03:10, 3 May 2008 (UTC)
OK but can I have my watchlist redirect to gWatch? – ThatWikiGuy (talk|I feel like I'm being watched) 12:09, 3 May 2008 (UTC)

Redirect locator script

Is there a script that I can run to find all redirects to all articles tagged with a particular category? In other words, I could use a script that finds all redirects to all articles tagged with Category:Start-Class Ecuador articles, for example. Thanks. GregManninLB (talk) 02:08, 4 May 2008 (UTC)

You might be looking for User:Dschwen/highlightredirects.js. LegoKontribsTalkM 18:19, 25 August 2008 (UTC)

Search customization

I use this code;

// ==UserScript==
// @name          Wikipedia - Nicer search box
// @namespace     http://userstyles.org
// @description	  Here some improvements to the Wikipedia search box. This style add icons and modify the text area appearance. You can also use it in your personal monobook.css in your Wikipedia account
// @author        Nicosmos
// @homepage      http://userstyles.org/styles/4262
// @include       http://wikipedia.org/*
// @include       https://wikipedia.org/*
// @include       http://*.wikipedia.org/*
// @include       https://*.wikipedia.org/*
// @include       http://*
// @include       https://*
// ==/UserScript==
var css = "@namespace url(http://www.w3.org/1999/xhtml); .searchButton { width: 20px !important; height: 20px !important; border: none !important; font-size: 0 !important; background-color: #FFF !important; } #searchGoButton { background-image: url(http://upload.wikimedia.org/wikipedia/commons/1/1e/Crystal_Clear_action_forward.png) !important; } #mw-searchButton { background-image: url(http://upload.wikimedia.org/wikipedia/commons/1/1b/Crystal_Clear_action_find.png) !important; } #searchInput { border: 1px solid !important; -moz-border-radius: 10px !important; padding-left: 8px !important; padding-right: 8px !important; width: 100px !important; border-color: #AAA !important; margin: 5px !important; }";
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		var node = document.createElement("style");
		node.type = "text/css";
		node.appendChild(document.createTextNode(css));
		heads[0].appendChild(node); 
	}
}

to customize the search bar on wikimedia project but it's not working. It original from this;

// ==UserScript==
// @name          Wikipedia - Nicer search box
// @namespace     http://userstyles.org
// @description	  [en] Here some improvements to the Wikipedia search box. This style add icons and modify the text area appearance. You can also use it in your personal monobook.css in your Wikipedia account
// @author        Nicosmos
// @homepage      http://userstyles.org/styles/4262
// @include       http://wikipedia.org/*
// @include       https://wikipedia.org/*
// @include       http://*.wikipedia.org/*
// @include       https://*.wikipedia.org/*
// ==/UserScript==
var css = "@namespace url(http://www.w3.org/1999/xhtml); .searchButton { width: 20px !important; height: 20px !important; border: none !important; font-size: 0 !important; background-color: #FFF !important; } #searchGoButton { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Nuvola_apps_bookcase.png/20px-Nuvola_apps_bookcase.png) !important; } #mw-searchButton { background-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Searchtool.svg/20px-Searchtool.svg.png) !important; } #searchInput { border: 1px solid !important; -moz-border-radius: 10px !important; padding-left: 8px !important; padding-right: 8px !important; width: 100px !important; border-color: #AAA !important; margin: 5px !important; }";
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		var node = document.createElement("style");
		node.type = "text/css";
		node.appendChild(document.createTextNode(css));
		heads[0].appendChild(node); 
	}
}

for greasemonkey. Can somebody tell me whats wrong? – ThatWikiGuy (talk) 21:13, 8 May 2008 (UTC)

The images are too big, and you only see the top 24x24 pixels, which is white. If you insert a smaller image into wikitext, like this:   and  , wikipedia will create these smaller images: [1] and [2] and then you can use these in your script. However these may be deleted if they are unused. Nx (talk) 18:58, 4 July 2009 (UTC)

google with monobook (unrelated to wikipedia,sortof)

Hi, err can somebuild my a script where I can make google look like the monobook skin? More info here and here. Thanks. – ThatWikiGuy (talk) 21:34, 9 May 2008 (UTC)

AfD close tool

I was wondering if another tool could be made to close AfDs, similar to User:Johnleemk's CloseAfD which has apparently stopped working. Thanks, PeterSymonds (talk) 19:49, 18 May 2008 (UTC)

watchlist patroller

I'd like a link next to each change the watchlist that would help the user see at a glance which changes they have not looked into. I see two options: either 1) click a symbol to color-code a change as uninteresting/looked at (sort like the coloring-coding in the sidebar list of New Changes Patroller or RC Patroller) or 2) click a symbol hide/show any change. — eitch 03:02, 22 May 2008 (UTC)

Script request

Can anyone make a script that moves the "User contribs" from the toolbox to cactions? Cheers, Thisisborin9sign here! 17:59, 26 May 2008 (UTC)

Use addPortletLink ('p-cactions', '/wiki/Special:Contributions', 'User contribs'); to add it to the cactions. I'll work on removing it from the toolbox for you. – ThatWikiGuy (talk) 20:17, 26 May 2008 (UTC)
This code should work.
addPortletLink ('p-cactions', '/wiki/Special:Contributions', 'User Contribs');
var el = document.getElementById('pt-mycontris');
if (el) el.style.display = 'none';

ThatWikiGuy (talk) 20:55, 26 May 2008 (UTC)

Can you tell me if it works or not, its not working for me but it might for you. Thank you! – ThatWikiGuy (talk) 21:03, 26 May 2008 (UTC)
No, it doesn't work at all. Not even the cactions part. Cheers, Thisisborin9sign here! 00:45, 27 May 2008 (UTC)
I found the problems. You had to make it ONLY for userspace, there was no addOnloadHook function, and "pt-mycontibs" was spelled wrong. And I still don't know how to make the contribs for the page name. (e.g. /wiki/Special:Contributions/AnyUser) Cheers, Thisisborin9sign here! 01:29, 27 May 2008 (UTC)
Try this. --Splarka (rant) 07:20, 27 May 2008 (UTC)
if(wgNamespaceNumber == 2 || wgNamespaceNumber == 3) addOnloadHook(function() {
  var c = document.getElementById('t-contributions');
  if(!c) return;
  var a = c.getElementsByTagName('a')[0];
  addPortletLink('p-cactions',a.href,'Contribs','',a.title);
  c.style.display = 'none';
});

Additional request

Can someone also make a script that completely removes the language toolbar. I don't need it, and it helps for the floating sidebar. Cheers, Thisisborin9sign here! 01:29, 27 May 2008 (UTC)

That can be done in css. --Splarka (rant) 07:22, 27 May 2008 (UTC)
#p-lang {display:none;}
Thanks!!! Both of these work fine. Cheers, Thisisborin9sign here! 17:20, 27 May 2008 (UTC)

Additional, additional request

Can someone make a script that removes the "Contents, Featured content, and Current events" link from the p-navigation box? Thanks for all the help! Cheers, Thisisborin9sign here! 19:50, 27 May 2008 (UTC)

Just view the page's html source and search for "Featured content", you'll see something like:
<li id="n-featuredcontent"><a href="/wiki/Portal:Featured_content">Featured content</a></li>
This li is the object that holds that link (li stands for list item). In CSS, you can hide anything with an id="" by:
#id {display:none;}
So for this you'd just add to your monobook.css:
#n-featuredcontent {display:none;}
--Splarka (rant) 07:16, 28 May 2008 (UTC)
Thanks! It works fine!!! Go ahead and archive this into the /Fulfilled requests page. Thanks again! Cheers, Thisisborin9sign here! 03:22, 29 May 2008 (UTC)

sidebar

Can I have a script that moves Article/Discussion, edit, history and move to a section at the top of the sidebar (but below the logo)? – ThatWikiGuy (talk) 19:12, 26 May 2008 (UTC)

That can also be done in CSS, but is actually easier in Javascript. --Splarka (rant) 07:27, 27 May 2008 (UTC)
addOnloadHook(function() {
  var pc = document.getElementById('p-cactions');
  //change the ID, hides it from #p-caction styling in http://en.wikipedia.org/skins-1.5/monobook/main.css
  pc.id = 'p-cactions-side';
  appendCSS('li#ca-talk, li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {margin: 0 .3em 0 0; }');
});
Either, this ain't working or my cache don't wan't to clear.
What about the CSS way? – ThatWikiGuy (talk) 07:59, 27 May 2008 (UTC)
It works now. – ThatWikiGuy (talk) 08:01, 27 May 2008 (UTC)

more

Also;

  • make 'edit' italic instead of bold.
CSS:
#ca-edit a { font-weight: normal !important; font-style:italic; }
  • add my monobook.js and monobook.css to the top part (with contribs, logout...) – ThatWikiGuy (talk) 08:15, 27 May 2008 (UTC)
Javascript:
addOnloadHook(function(){
  addPortletLink('p-personal','/wiki/User:' + wgUserName + '/monobook.js','monobook.js');
  addPortletLink('p-personal','/wiki/User:' + wgUserName + '/monobook.css','monobook.css');
});
--Splarka (rant) 07:25, 28 May 2008 (UTC)
Thank you Splarka. – ThatWikiGuy (talk) 09:26, 28 May 2008 (UTC)

status checker

Can I have a script that will check scan User:ThatWikiGuy/Status for the words in, busy and out.

  • in will make that little guy next to your name (at the top) coloured (normal)
  • busy will make it a red '!'
  • out will make the guy black and white (greyscale)

Thank you. – ThatWikiGuy (talk) 19:09, 27 May 2008 (UTC)

more

As my p-personal is getting clogged up, can some body make a show/hide (</>) script which hides all but [the little man], [wp-user], my talk and my watchlist (shortened to w/list?). Thank you. – ThatWikiGuy (talk) 07:31, 29 May 2008 (UTC)

red link removal

I would realy appreciate a red link removal scipt that adds a remove this link in the popups script or a replacement for the popups with the red link removal tool built in, I cant get that to work.
Hintss (talk) 02:38, 29 May 2008 (UTC)
In addition I dont want a popup script. Just make one that takes out the link after horering over it for two or three seconds
Hintss (talk) 14:48, 29 May 2008 (UTC)

Can you clarify what it is exactly that you want then, for those of us who don't know what you mean? That is, describe the behavor, not what else does it. --Splarka (rant) 08:00, 30 May 2008 (UTC)
I think he wants a script that edits the page to remove a red link when found by him. (possibly the edit happens in a new tab/window) NOTE: I could be wrong. – ThatWikiGuy (talk) 08:40, 30 May 2008 (UTC)

you're correct but I want it to also close the tab or windowHintss (talk) 01:01, 31 May 2008 (UTC)

"Securepedia"

I'd love to see a script for Wikipedia, maybe with a Greasemonkey version, that changed each and every link to Wikipedia into its secure version.

Let me explain: while it's not possible to type https://en.wikipedia.org/wiki/Main_Page (notice the "httpS" bit), it is possible to access a secure version of Wikipedia at https://secure.wikimedia.org/wikipedia/en/wiki/Main_Page. This works for meta, commons, all language versions etc.

However, most people don't know this, and besides, when external pages link to Wikipedia, or Wikipedia articles themselves link to special pages in the form http://en.wikipedia.org/w/index.php?blah or sometimes to images and other media stored at commons, we who prefer browsing at the secure site always end up reaching the non-secure version again.

Thus, a Wikipedia script able to change these links, when they appear on articles, to the secure version, would be very handy. And a Greasemonkey one able to do it to any external page's links to Wikipedia even more so.

Sooo, can someone please develop it/them? :-)

Thanks! -- alexgieg (talk) 18:42, 11 June 2008 (UTC)

See userscripts.org #26924 --Splarka (rant) 08:12, 12 June 2008 (UTC)
Thank you very much! I had been searching for "wikipedia"-named scripts, it never occurred me to search for "wikimedia"-named ones. I'll edit the scripts page to mention it. -- alexgieg (talk) 12:02, 13 June 2008 (UTC)

Watchlist filter for + and - bytes ?

I would like to be able to click something on my watchlist page similar to "hide bot edits" which would toggle limits of what is reported based on the bytecount change number. For some kinds of articles I care most about when the byte count rises (material added), on other articles I care most about when it drops (material deleted). Low Sea (talk) 21:30, 1 July 2008 (UTC)

Try this: User:Splarka/wbfilter.js. You can test it with importScript('User:Splarka/wbfilter.js'); if you want. It has 4 controls: A byte input box (try something like 1000), a plus/minus indicator (to indicate both positive and negative byte changes), and two buttons, determining whether to hilight byte changes greater than or less than the threshhold. In this test version it only hilights. --Splarka (rant) 08:31, 2 July 2008 (UTC)

Auto-{{talkback}}

I'd like an option to automatically add the {{talkback|My username|title of section on my userpage}} template to several users' pages when I click the submit button on my own talk page. I imagine the following near the [Submit] button:

 Add {{talkback}} to the following users' talk pages:

  [ ] [[User talk:Example]]
  [x] [[User talk:Example2]]
  [ ] [[User talk:Example3]]
  [x] [[User talk:Example4]]
~ Wakanda's Black Panther!/ 01:46, 8 July 2008 (UTC)
I too would like to see a script that does this. It would make replies much faster, and also allow users to keep discussions confined to one page for readability without making it necessary to put that page on one's watchlist. The Fiddly Leprechaun · Catch Me! 21:43, 17 December 2008 (UTC)
I also think this would be an extremely useful tool, although I prefer replying in both places.   jj137 (talk) 19:35, 18 December 2008 (UTC)

I'd love to make this script. I think I could make this, but I don't have time now. Remind me after April 2, and I'll make the script. Or just let someone else do it. In the meanwhile, chew on this:

addOnloadHook(function(){
if(wgCanonicalNamespace == "User_talk" || wgCanonicalNamespace == "User"){
 
var talkpage="User_talk:" + wgPageName.split(":")[1];
var link="http://en.wikipedia.org/w/index.php?title="+talkpage+"&action=edit&section=new&preloadtitle=Talkback&preload=User:Manishearth/Tb"
addPortletLink('p-cactions',link,'Talkback','ca-tb','Talkback', 't')
//document.getElementById('ca-tb').style.background='green'
}
)}

To use it you have to go to the page of whoever you want to talkback, click the "talkback" tab (it will be hidden in a down arrow in beta) and then save. But first, you must go to Special:Mypage/Tb and type {{Talkback|(your username here)}} to make the preload work (you only have to do it once). ManishEarthTalkStalk 13:18, 25 February 2010 (UTC)

Made it so that the struck-out steps are no longer needed. ManishEarthTalkStalk 09:38, 26 February 2010 (UTC)

"Hidden template" help request on Wikiquote.

Hi, I'm trying to make {{tl:hidden}} work on Wikiquote, but I need a special sort of tweak - I need a template that displays part of a line, and hides the other part of the same line. The outcome would look like something this when hidden:

  • Short citation for quote. [show]

And like this when shown:

  • Short citation for quote. Hidden longer portion of citation (maybe including ISBN, edition information, other comments) that will appear when the "show/hide" link has been clicked. [hide]

Can anyone advise with this? bd2412 T 06:22, 11 July 2008 (UTC)

Wikiquote doesn't seem to have the code for collapsibles at all (q:MediaWiki:Common.js). —AlexSm 13:25, 11 July 2008 (UTC)
How would we get it? Ask a dev? bd2412 T 18:45, 11 July 2008 (UTC)
No, ask a local (Wikiquote) admin. You'll probably copy the code from en.wp MediaWiki:Common.js (although imho it's flawed). Don't forget to copy hasClass() function too. —AlexSm 18:54, 11 July 2008 (UTC)
Oh. I'm a Wikiquote admin - didn't know I could do that. bd2412 T 19:13, 11 July 2008 (UTC)

Random page FROM...

I don't know whether this aleady exists or not—heck, I don't even know whether this falls into the scope of what a JavaScript user script can do!—but is it possible to make a script that will choose a random page, much in the same way that Special:Random does, but you can do it within a certain category/namespace? Basically, when I visit a Wikipedia-maintenance-related category that has hundreds of pages, I like to be able to go through them randomly, not alphabetically. To do this, I have to keep clicking various pages, putting various parameters into the URL, etc.—it's a lot of unnecessary hassle, and I'm hoping there's a better way! If this is not possible, let me know. If such a script/tool/whatever already exists, let me know for sure! I'd greatly appreciate a reply on my talk page. :) —Skittleys (talk) 11:38, 14 July 2008 (UTC)

Special:Random accepts a namespace parameter, for example: Special:Random/Wikipedia, you can just type that into the search box, or I have a script that will put it into navigation, below random article (some documentation here). As for categories, that would be much more difficult. Nx (talk) 19:09, 4 July 2009 (UTC)

External links

I need the script which adds the external link in the right upper corner on all pages in main namespace (a few links). Equadus (talk) 12:29, 27 July 2008 (UTC) Equadus (talk) 10:30, 28 July 2008 (UTC)

AutoRedirect to the true page of an article

When you type in a keyword which is slightly different(letter case, punctuation) from the true name of an article and you search for it, a "Redirected from..." mini field apppears just below the headline of the article and it's sometimes unpractical to copy&paste the true URL in order to avoid the inclusion of this field when you like to print the page(selecting the 'Printable Version' mode and then printing).

So, a user script which examines the list of all articles and automatically redirects you without the " (Redirected from ...)" field would be a good idea. A better workaround is to simply place more accurate redirects within the body of articles.

Ve4ernik (talk) 13:46, 28 July 2008 (UTC)

First, it's not some "keywords", it's Wikipedia:Redirects created by other users. If you suggest a script that would replaces redirects to direct links, imho this is not practical. It' much easier to simply hide that message below headline. The code goes to monobook.css (if you use default Monobook skin):
@media print {
 body.ns-0 div#contentSub {display:none}
}
This should hide it only for articles and only when printing (however it will not hide it in MediaWiki "Printable version" view). —AlexSm 22:04, 28 July 2008 (UTC)

Time Traveller: Browse wikipedia "as of" a given date in the past

The goal would be to have a simple way to browse wikipedia as it appeared on a given date in the past. This would be helpful in understanding the history of a discussion, as talk pages are often archived. The script would allow the user :

  • to choose a date/time on a calendar, or to ask to use the time of the version of the page that is currently displayed
  • click on a page / talk / user / user talk page or their history --> show the page as it would have appeared at the selected time
  • reset the clock to today.

I have no clear idea of the user interface yet, but I'm willing to work this out further. I'm using FireFox. Pcarbonn (talk) 16:41, 1 August 2008 (UTC)

I don't know if that would even be possible, as a userscript. Retrieving old versions of templates and images would be difficult, and in some cases impossible where they were deleted/renamed/reuploaded/commons'd, etc. If however, you mean a cascading oldid browser, then that might be possible. Perhaps using a URL parameter, or cookie, which selected the oldid of the revision closest to but older than the given date. But using oldid= it wouldn't show you how the page looked on a given date, just how it would look now with the wikitext of then. --Splarka (rant) 07:14, 2 August 2008 (UTC)
I understand and agree. We don't need to go that far: just showing the old wikitext with the current images and templates would be fine. No need to rewrite wikimedia ! Just bring more convenience to the current user interface, using the wikimedia api, and particularly a query like this one. Pcarbonn (talk) 07:24, 2 August 2008 (UTC)
Mmm, possible then, but how should it operate? Would it, on page load in &action=view where no &oldid was present (and with date cookie set on you), do an API query to the page's history and find the revision closest to (but older than) the date specified and load that &oldid? Or, should it usurp all links on a page to local non-special non-red pages, linking instead to action=history where upon load it then selects the closest date (via API) so that you are not forced to load the full current version? before seeing the old one? The calendar date interface poses a bit of a problem too, it might be easier to have a button on an &oldid= view which lets you select "Time travel to this date or older". Thoughts? --Splarka (rant) 03:53, 5 August 2008 (UTC)
A simple version would work without calendar nor other new buttons as follows : as soon as you load a page with an oldid in your normal browsing of wikipedia, onload replaces the href in all the (relevant) anchors of the loaded page by 'javascript:get(pageName)'. When the user clicks an anchor, get(pageName) calls the API to get the URL of the old page from the revision history, and opens it. Because it has an oldid, the story starts again, this time with the time of the new page (it would better to save the first date in a global variable to avoid time drift). You return to the current time by doing a search, or clicking on the wikipedia logo to get to the home page, or simply by clicking on the back button on your browser. Pcarbonn (talk) 06:43, 5 August 2008 (UTC)
Ahh, okay... but better than having cascading oldid (which would cause timedrift) or a cookie, we'd just create a passing URI parameter, like timetravel=20080805070643. You'd break out of this easily by removing that URI parameter, and engage it by, when viewing an oldid, clicking a timetravel tab or something. I'll start tinkering with this later. --Splarka (rant) 07:06, 5 August 2008 (UTC)
Thanks. While I know Javascript, I don't have any experience with WP gadgets. So I'm sure you'll do it faster than I can. I'll be happy to review the program and add my 2 cents. Pcarbonn (talk) 07:25, 5 August 2008 (UTC)

Here is an initial test version of the program: User:Splarka/timetravel.js. You can copy it or use the code below in your js (which lets you get new versions automatically as I fix it). the UI is very ugly, but try testing it for functionality. Note that on a given page, there are actually quite a lot of links that aren't appropriate for time travel. --Splarka (rant) 09:29, 5 August 2008 (UTC)

if(wgAction == 'view') importScript('User:Splarka/timetravel.js');
That's a good start. Thanks. Some comments:
  • I personnally think that timeTravel should be the default when browsing old pages, so I don't need the "time travel" tab. But I can understand that this may not be a shared view. Your thoughts ?
  • one key function is to move from an article to its talk page and vice versa. This does not seem to work yet.
  • for your info, I'm testing it with the links on my timeline of the cold fusion dispute: it has plenty of links to the past.
  • it does not seem to work yet on project pages such as this one or request for arbitrations. These can be very active pages, and traveling in time in them is much easier than looking at the archive.
In any case, you are already much further than what I could have done. Many thanks !
Pcarbonn (talk) 10:06, 5 August 2008 (UTC)
Hmm, it isn't really practical to have it trigger on all oldid=, not in the way I've written it anyways. I've extended the link scraping to include the whole body, so now it catches the talk tab, but it also catches some things like the "donate" link which would be a pain to try to exclude. Also, I fixed a bug with anchors in the document.location so it should work on those two broken examples now. --Splarka (rant) 10:48, 5 August 2008 (UTC)
Thanks. The script still misses links such as Wikipedia:Administrators#Dealing_with_grievances found in here. I believe it is because of the anchor # in the URL. Pcarbonn (talk) 11:26, 5 August 2008 (UTC)
Yah, I'm not really sure how to deal with those specifically. I have to skip all the links in the TOC and other local anchors, but there is no ironclad way of determining which are which in javascript, as the object.href has the server and page name even if the href="" does not (I don't expect to make sense this late). I'll look at it later. Sleep needed now. --Splarka (rant) 13:51, 5 August 2008 (UTC)
It's great to see what you have accomplished in a day. You are almost done already !
I believe a way to fix the local anchor is to compare your 'link' variable to 'wgPageName' : if they are the same, it's a local anchor --> don't change the href; otherwise, change it.
I realize that I was not clear with the back button of the browser. If you go back to a page that you have viewed while timetravelling, it should still be displayed as timetravelling. You only return to the current time by clicking the back button enough times to return to a page that you have viewed using the present time. In its current version, the script return to present as soon as you click the back button: it shouldn't, in my view. Sorry for the lack of clarity. Pcarbonn (talk) 14:51, 5 August 2008 (UTC)
(de-indent) It isn't as easy as comparing 'wgPageName' to 'link', due to the various ways to encode the page title depending on how you are accessing a page (script path, article path), and the various ways browsers handle href attributes in javascript (some escape it, some urlencode it, some prepend the full server and protocol). What I've done instead is just activate *all* anchor links. Unfortunately, the anchor itself is then lost (this can't really be helped, or at least, I don't know how to fix it, due to the fact the title is thrown to the API and then returned without knowing who threw it). This will give you more functionality, but slightly useless behavior on more links (such as in the TOC).
As for the 'back' button, that is a consequence of using document.location.href to set the location. Some browsers do not recognize this as clicking a link, and the history is lost. If you want to preserve the history, each visit might require two clicks, or a vist to an interm "dummy" page (although the dummy page might make backward navigation hard). --Splarka (rant) 04:34, 6 August 2008 (UTC)
For the first point, is it possible to call the API with synchronous AJAX, so that you don't lose the anchor ? Or simpler, save the anchor in a global variable in timetravel(), and read it in timetravelCB() ?
I now understand the issue with the second point. A possible workaround would be to use onMouseOver to get the correct href in the anchor before the user clicks on it. If the API is fast enough, the user won't notice, the click will be considered as a normal click by Firefox, and thus added to the history. Here is how it could work in more details:
  • on page load: empty the href of all anchors, and set their onMouseOver.
  • when the user mouses over an anchor for the first time, call the API to get the correct revision of the page, and set href.
  • if the user moves away then over the anchor again, no need to call the API again
  • when the user clicks, if href is still empty, nothing happens, otherwise, he gets the correct revision.
Pcarbonn (talk) 12:16, 6 August 2008 (UTC)
You'll find an updated version of your script here. It fixes the 2 issues above, but may have introduced some over... I'd be glad if you had a look. Pcarbonn (talk) 17:05, 6 August 2008 (UTC)
I've worked a bit more on it, and it now works OK as far as I'm concerned. Some minor issues remain, such as when accessing old revisions of WP:AN (the ' may be the pblm), and filtering some more links (e.g. the current version link should not link to the past !). Pcarbonn (talk) 21:48, 6 August 2008 (UTC)
This version is ready for beta test. Any comments welcome. It does not add any new element to the UI, but when you click on a link in a old page, it opens the corresponding page as of that time (if it finds it). It does not deal with redirection though. Pcarbonn (talk) 07:57, 7 August 2008 (UTC)
I have now released the final version here.Pcarbonn (talk) 12:06, 30 August 2008 (UTC)

display advertising

If there was a gadget to display advertising relevant to the selected page, it could generate revenue for wikipedia. I would think that many people would select it, instead of giving money out of their pocket (I would). Pcarbonn (talk) 07:24, 4 August 2008 (UTC)

Certainly an interesting idea; however, it would be very difficult to write without a stock of adverts handy, and even more difficult to make sure the money went to the Wikimedia Foundation without a carefully organised plan involving them, which would then spark off the whole advertising-on-Wikipedia row again. Therefore, I doubt such a script will be written any time soon, except maybe with the Foundation's involvement. --ais523 15:45, 4 August 2008 (UTC)
I'm not entirely sure, but I think some of the sites that mirror our content do this to some extent. Oh, and Wikipedia:Tools/1-Click Answers does do this. If you use the Wikipedia version of the 1-Click Answers software, then part if the advertising revenue gets shared with the Foundation. At least that was the plan (there really hasn't been an update on that partnership). -- Ned Scott 07:09, 5 August 2008 (UTC)

FastReader

Are you using a wide screen ? Wouldn't you want to have each sections of an article displayed in 2 or 3 columns, for easier reading ? A userscript should be able to do this, I would think. Any thoughts ? Pcarbonn (talk) 14:25, 1 September 2008 (UTC)

simple: Request

Hi, I'm from the Simple English Wikipedia. I was wondering if you guys could make us a standalone script that gives a link somewhere to a new section of the second-last editor's talk page. You see, we revert, but then have to go back into the history to see which vandal it was, to go to their userpage, click "new section", stick in a warning and then save, which is rather long winded. Thankyou in advance, Microchip 08 11:49, 3 September 2008 (UTC)

In case you're talking about rollback, most of this can be achieved by editing MediaWiki:Rollback-success which is shown after rollback action, just by adding a "new section" link to editor's talk page with editintro/preload parameters. —AlexSm 14:53, 3 September 2008 (UTC)
Oh wait, I was wrong, the $1 parameter seems to be in the form "user (talk | block)", so we cannot use it to construct a link. —AlexSm 14:57, 3 September 2008 (UTC)
No, that's not what I meant. We don't have rollback on Simple. As we're stuck with revert, it would be nice to have a link as a new tab on the top of the screen, linking us to a new section in a user's talk page. We revert the vandalism, and then need to click "history", and look at the identity of the penultimate user to edit the article (i.e. the vandal, who edited just before we reverted) followed by the talk link, followed by "new section", before finally typing in a warning (we already have a gadget for the last part). My question is whether you can automate the process, with a script that delves into the history, picks up the name of the vandal, and gives up a link to their usertalk &section=new to make vandal whacking a bit quicker. Hope this helps, Microchip 08 18:53, 25 September 2008 (UTC)

GA review

I am looking for something to make GA reviews a bit easier. I use the {{GAList}} template and if I could hit a button say if I am on article Talk:Example/GA1 (or GA2, etc...) that this tab appears and gives me dialog boxes to fill out the parameters for this template.

Example:

I hit the GA review tab for the article above and the dialog pops up and asks "1a) It is reasonably well written: Prose?" and either have buttons for aye nay ??? or wtf which are the options that the template takes, or just a field for me to enter those in. The template also allows for comments, so after each section prompt me for comments on the section ("Comments for section 1?").

Thoughts? Can it be done? Thanks in advance --Admrb♉ltz (talk) 21:30, 7 September 2008 (UTC)

Option to hide wiki-links in articles / option to hide references' superscripts

Hi. Could you please take a look at my proposal here: Wikipedia:Village pump (proposals)#Option to hide wiki-links in articles. If this is doable I'd be eternally grateful! Thanks. Zunaid 13:21, 16 October 2008 (UTC)

Script to easily close XfDs

So, there is a very nice script to close AfDs, closeAFD, which makes it much easier to close them. I am sure most of you know it. XfDs, e.g. IfD, CfD, RfD, etc., though cannot be closed with it. This is not a good thing, because those areas sport huge backlogs at times and thus admins should have it easier to close them to clear those backlogs. That is why I am asking here for a XfD closing script, similar to closeAFD. If it's not possible to automatically delete things, it should at least be able to add the closing header and footer, as well as the result, easily with a simple click (maybe within the edit-button like AfD helper does for !votes on AfDs). Could someone tackle this problem please? TIA SoWhy 18:06, 24 October 2008 (UTC)

I created one a while back based off of the AFD one for MFDs- see User:Jj137/CloseMFD.js.   jj137 (talk) 02:39, 25 October 2008 (UTC)
Excellent script. Would you be able to extend it to TfD? // roux   08:33, 19 December 2008 (UTC)
Probably, yes. IIRC, the TFD format is slightly different from AFDs and MFDs, so I would probably have to toy around with it and see what I can do.   jj137 (talk) 22:02, 19 December 2008 (UTC)
That would be awesome. // roux   22:11, 19 December 2008 (UTC)
The tricky part is that on AFDs and MFDs, the top template that is substituted goes at the very top of the page; on TFDs, for some reason, they go just below the header. I'm sure there's a way to fix that when creating the script with JS, I just don't really know what it is. :/   jj137 (talk) 23:23, 19 December 2008 (UTC)
Easy, make TFD change their process ;) // roux   04:05, 20 December 2008 (UTC)
LOL. Well, it's possible... :P   jj137 (talk) 04:42, 20 December 2008 (UTC)

Want someone to change the "New Messages" box when you get a message on my talk page

Hello, I want someone to make me a script based on the layout and color of Template:Talkback to create a more friendly version of the orange banner that comes up when someone posts to my talk page. Thanks. Techman224Talk 01:16, 29 October 2008 (UTC)

.usermessage {
  border: 1px solid RoyalBlue;
  background: #bbdde1 12px 3px no-repeat url("http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Nuvola_apps_edu_languages.svg/40px-Nuvola_apps_edu_languages.svg.png");
  padding: 15px 15px 15px 55px;
}
Try this simple css in your Special:MyPage/monobook.css. --Splarka (rant) 07:29, 29 October 2008 (UTC)

It works. Thanks. Techman224Talk 16:52, 1 November 2008 (UTC)

Personal bookmarks

Hiya. I know there's a script to add personal bookmarks to the sidebar already... what I'm looking for is an addition to my p-bar that will pop up a window filled with WP links/bookmarks defined by me (say, defined at /Links or wherever). Click on a link, window disappears, new page loads. I've been told this should be fairly simple. Would anyone here be able to do it? roux ] [x] 10:04, 7 November 2008 (UTC)

I happen to have such a script at user:js/popupBookmarks. Just add myBkmPage='/Links' (default is /Bookmarks subpage). —AlexSm 16:25, 7 November 2008 (UTC)
You are my new hero. Thank you SO MUCH! roux ] [x] 06:08, 8 November 2008 (UTC)

Cleaning the clutter: Selective disabling

With all the scripts available, sometimes my screen is cluttered beyond belief. Also, I often don't need all the scripts in certain sessions: I don't need redirect indication or additional edit bar buttons when I'm on deletion patrol and I usually don't need automated speedy fill in when I'm article writing. Could someone write a script that allows me to selectively enable and disable scripts I have installed in monobook.js based on the contents of a particular user subpage (used as settings). Bonus points for whoever can integrate the Gadgets in the script. - MacGyverMagic 14:18, 16 November 2008 (UTC) —Preceding unsigned comment added by MacGyverMagic (talkcontribs)

If I had such a script, I'd rather made it use a cookie in my browser. This way, you'd have to rearrange your monobook.js like this
/* first the script gets current cookie value ...*/
if (currentMode=='writing'){ importScript(1); importScript(2)
}else if (currentMode=='xxx'){ /*...*/ }
Another way is to switch skins back and forth (I think a fast switching script might be possible), and move some of your scripts to myskin.js.
As for gadgets, I don't think there is a universal way to disable them using your monobook.js. —AlexSm 22:24, 17 November 2008 (UTC)

Write to a user page

I'm trying to implement bookmark functionality in my monobook. I snatched a function from another user that loads the contents of a user subpage into a dropdown and loads the edit and view links to it. But I was wondering if there is a method I can use to add the current page to that list with a button click? I'm not sure if this is doable in wikipedia as I can see some issues with security involved, but if it is, it would make my life much easier. I suppose I can do it the manual way and actually add those links to the page, but that's boring :P. aremisasling (talk) 18:04, 25 November 2008 (UTC)

That script (user:Js/popupBookmarks) was designed for more or less static bookmarks collection. Personally I don't like the idea of making lots of little edits (increasing WP database size) that are not neccessary to make, so I'm not going to implement this "easy link addition". What's wrong with using your browser bookmarks? And if you use several computers, there are plenty of online bookmark services, like http://www.google.com/bookmarks/, with easy-to-use bookmarklets. —AlexSm 19:14, 25 November 2008 (UTC)
Point taken. And on thinking about the idea and taking a fresh look at it today, it really doesn't make any sense. aremisasling (talk) 15:09, 26 November 2008 (UTC)

Shared "new message" notification across WP language versions?

I've been referred here from my Help desk query: I do a fair amount of interlanguage editing and have a unified login. Is there some tool (script?) available (or in the works) that would provide a "New Message in :fl:WP" notification ("fl" being a particular other-language Wikipedia) when I sign on or refresh my screen, either in my "home" language Wikipedia or in whichever I happen to be working, without my having to enter each and all to discover where a new message may have been posted? User:Manticore suggests this may already be in development...? -- Deborahjay (talk) 13:46, 12 December 2008 (UTC)

More tagging scripts

It would be great if someone could make more tagging scripts such as Wikipedia:WikiProject User scripts/Scripts/Unreferenced tool, Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js, and Wikipedia:WikiProject User scripts/Scripts/Quick wikify. It would be great if there could be a script that could add the stub template, and not have to go through any trouble searching through all the stub templates. Another quick tagging script I would also like is the ability to have a tag to tag pov in the edit window. ~electricRush (T C) 06:07, 13 December 2008 (UTC)

Try out Wikipedia:WikiProject User scripts/Scripts/POV tool. It was extremely easy to make; all I had to do was change around a few things from the Unreferenced tool. As for the stub tag, I recommend trying out User:Ais523/stubtagtab.js if you haven't yet.   jj137 (talk) 19:50, 18 December 2008 (UTC)
Thanks for making the POV tool! I'm adding it right away! electricRush (T C) 20:57, 18 December 2008 (UTC)
No prob. :) If there's any more like that you'd like, just give me a heads up here or on my talk page- I'd be glad to make them.   jj137 (talk) 22:00, 19 December 2008 (UTC)

Script to add a template message to users

Hi there, I need a script that shows up on user pages and on clicking asks me to fill in the three fields (third one optional) of User:SoWhy/wcsd and then adds the template to the talk page with an edit summary like "Notice about incorrect tagging for speedy deletion". Should be quite simple to do, anyone want to help me out? Regards SoWhy 16:08, 27 December 2008 (UTC)

Add this to your monobook.js:

smConfig = {};
smConfig.smCustomForms = {
  'uw-csd' : [ { 'prepend':'{{subst:uw-csd', 'append':'}}' },
            {'title':'Page name', 'code':'1' },
            {'title':'Criterion', 'code':'2' },
            {'title':'Concern/reason', 'code':'3' },
            {'title':'Additional text', 'code':'4' }
            ]
};
smConfig.smMenus = { '+Citations ∨':{ 'Web':'citeweb', 'News':'citenews',
    'Book':'citebook', 'Journal':'citejournal', 'Video':'Cite video',
    'Show Refs':'showrefs','Ref Errors':'referrs', 'DOI Bot':'doicite' },
    'General ∨':{ 'Cleanup':'cleanup', 'Copy Edit':'copyedit'},
    'Intro ∨':{ 'Too long':'intro-toolong', 'Too short':'intro-tooshort',
    'Rewrite':'intro-rewrite', 'Missing':'intro-missing' },
    'References ∨':{ 'No refs':'unreferenced', 'More refs':'Refimprove',
                        'No notes':'No footnotes', 'More notes':'More footnotes',
                        'Cite check':'citecheck', 'Prim Sources':'Primarysources'
                       },
    'Fact':'fact',
    'Weasel term':'weasel-inline',
    'uw-csd':'uw-csd'
};
importScript('User:Odie5533/SnipManager.user.js');

Made using SnipManager. --Odie5533 (talk) 04:50, 17 May 2009 (UTC)

Watchlist "what links here", "user contributions", and category removals

I wish I'd found this project earlier -- I've just discovered the scripts for having a message prompt me that my watchlist has a new entry and for having an entry added to my watchlist when a page is added to a category I'm watching, both of which will be immensely useful.

I have three requests, two of which I believe would be replacements for scripts that are no longer working:

  1. I'd like to have the ability to be notified, either through my watchlist or some other means, when a page that I'm watching has a new incoming link to it. Kind of my own personal "what links here" watcher. This would be incredibly helpful in keeping disambiguation pages free of incoming links, without having to rely on external tools such as Wikipedia Cleaner.
  2. I'd like to have the ability to be notified, either through my watchlist or some other means, of edits being made by a user whose user page/talk page I'm watching. Kind of my own personal "user contributions" watcher.
  3. In a converse of one of the scripts I mentioned above, I'd like to have the ability to be notified, either through my watchlist or some other means, when a page is removed from a category that I'm watching.

For what it's worth, I use both Internet Explorer and Safari, depending on whether I'm logged in at work or at home.

Thanks, Mlaffs (talk) 16:07, 31 December 2008 (UTC)

I don't believe #1 is possible; my understanding from Help:Watchlist is that dynamically-generated pages (such as What Links Here) cannot be watched for technical reasons. #2 can't be done for the same reason, as far as I know; it would require watching Special:Contribs (or RelatedChanges) which are both dynamically generated. // roux   18:47, 31 December 2008 (UTC)
Tra did have scripts for both #1 and #2, but both pages currently have messages that the scripts no longer function since the query.php API was removed. I don't pretend to know thing one about this sort of thing, but maybe it's as simple as someone who knows the new API recoding the scripts, or perhaps the technical reasons that you mention have arisen as a result of the new API. Mlaffs (talk) 19:09, 31 December 2008 (UTC)

Improvement tagging script

I would like a script that automates the adding of improvement tags - preferably customizable so that I can choose any tag to be added. My goal here is to speed up the tagging of problematic fiction articles for clean-up. The two I'd need to begin are Template:In-universe/Comics and Template:Comics-real, as well as a subst: template of a talk page message discussing the article improvement drive these taggings are part of, and where to go to ask questions. But if the script can allow the switching of those for other templates (so I don't have to come back and ask for a new script every time I change what area I'm tagging) that would be ideal. Phil Sandifer (talk) 15:45, 23 January 2009 (UTC)

As both this request and the one below it have no replies, I assume this project is actually a bit moribund and I should go contact someone in person? Phil Sandifer (talk) 06:53, 30 January 2009 (UTC)
You'll get a much faster response that way, if you know someone who can do it. Otherwise, requests here are often dealt with eventually... Ale_Jrbtalk 14:26, 30 January 2009 (UTC)
I'm not entirely sure what it is you want, but I believe my SnipManager is at least close, perhaps? --Odie5533 (talk) 04:34, 17 May 2009 (UTC)

Can I have a "gap" between tabs at the top?

I've installed a load of scripts in my .js at another wiki, and most of them add tabs to the top of the window, so I get something like this:

user page talk   change this page history + move   watch wikimark my wikimarks contributions diff purge

I know how to rearrange the order (by adding them in monobook.js in a different order), but I'm looking for a code to split them up slightly:

user page talk   change this page history + move   watch   wikimark my wikimarks   contributions   diff purge

Is there a code to do this? Microchip 08 16:39, 24 January 2009 (UTC)

Figure out the class/id of the tabs you want to be spaced out more and specify left and right margin (not sure which) in your user stylesheet -- Gurch (talk) 20:18, 31 January 2009 (UTC)
...in newbie "what I really want is someone to either do it for me or not use weird and wonderful terms" speak [[[b:simple:User:Microchip08/monobook.js|monobook]]]? Microchip08 20:25, 1 February 2009 (UTC)

How to add a simple link to the toolbox?

Hi, I would like to add a simple link to the toolbox (on the left under the search bar) whenever I view an article. It should display when editing the article and also when just viewing. The link is to use this disambiguation toolserver tool, by passing the tool the article name. For example the toolbox link when viewing Channel Tunnel would be: this.--Commander Keane (talk) 05:52, 8 February 2009 (UTC)

function addToToolbox() {
if (wgCanonicalNamespace != "Special") {
 
var pTb = document.getElementById("p-tb");
var pRef = pTb.cloneNode(true);
var pStats = pTb.cloneNode(true);
 
pRef.id="p-refs";
pRef.innerHTML = "<h5>Disambiguation</h5><div class=pBody><ul></ul></div>";
pDisambig.id="p-disambig";

addPortletLink("p-disambig", "http://toolserver.org/~jason/disambigs_in_an_article.php?title=+wgPageName", 'Find disambiguations', '', "Find all links to disambiguation pages on the current page");

}
}
addOnloadHook(addToToolbox);
should do it. Dendodge TalkContribs 09:17, 8 February 2009 (UTC)
It doesn't seem to work for me, I copied the code into User:Commander Keane/monobook.js and purged my cache, but I can't see the link for Channel Tunnel.--Commander Keane (talk) 09:50, 8 February 2009 (UTC)

"Bad word" filter/censor

I noticed that a bad images filter script (User:Mr.Z-man/badimages.js) that hides all images on the bad image list exists, but I thought that more could be done. When I noticed that an edit to a page where a user had removed (censored) a "bad word" on it, it got me thinking (after all Wikipedia is not censored)... These bad words don't bother or offend me, but maybe something should be done for those users of which it does offend. So, what I'm asking here is for a "bad word" filter script to filter out (or censor) bad words (such as fuck, bitch, cunt, ass/arse, etc.). For example, words such as "fuck" would be replaced with "f*ck" or "f***", but would would not be filtered/censored on articles of with these words apply to the subject matter (i.e. Fuck, Ass, Cunt, etc.), just like it is with the bad images filter. This would only affect the user of which such words are displayed and would not change the article's content. --Lightsup55 ( T | C ) 21:34, 9 February 2009 (UTC)

Merge script

Would anyone be interested in whipping up a script that would take two pagenames (preferably including the option for section links) as input, and plaster the appropriate merge templates and such in the right places? //roux   22:15, 13 March 2009 (UTC)

Hide reverted edits

Hi, I was wondering if someone had any clue of how to whip up a hide reverted edits script for the watchlist. This may be more of a mediawiki request than a user script though. I'd just like to make it so I don't have to spend time chasing edits which have already been reverted.--Terrillja talk 05:55, 19 March 2009 (UTC)

I used to have a script that hides reverts from enhanced expanded watchlist (these are options in preferences) only when both edits are present on the page; otherwise it would require extra API request which is imho not practical. —AlexSm 05:36, 10 April 2009 (UTC)
I'd be interested in trying that out. I have the extended watchlist enbaled, to the 1K max, so it sounds like it should work. Where might I find said script?--Terrillja talk 21:45, 12 April 2009 (UTC)
See user:js/markZeroEdits; I had to update it due to MediaWiki changes and then tested it in Firefox and Opera. —AlexSm 17:37, 14 April 2009 (UTC)
Hmm, It seems to be looking for the arrow attribute, it there another script that is needed to make the edits collapse into one? Thanks, --Terrillja talk 20:02, 16 May 2009 (UTC)
I'm not sure I understand the question; anyway, the script page says "requires «Enhanced Recent Changes» and «Expand Watchlist» Preferences options". — AlexSm 19:57, 3 June 2009 (UTC)

Whois linker

Could anyone please make this script MediaWiki compatible so that it could be added in monobook.js? Thanks.--Wcam (talk) 01:42, 10 April 2009 (UTC)

If I understand correctly, without this script it's only one extra click to the IP contributions page where whois link is already present on the bottom. —AlexSm 05:36, 10 April 2009 (UTC)

Script for awards list

Could someone please create a basic script which would create awards lists? I'd just like the start of the script and I'll create the rest of the awards. The script would be like reftool with a button which when clicked would display multiple options. The first thing is "when was the film released:" with a drop-down list where one can choose a year. After he clicks that, multiple options get displayed: every award available at that time. Each award would have a multiple category awards. Which each have a reference tab and a receiver tab. The tool would automatically enter the date of the ceremony link it to the article of the award at that year. It would also link to the Award category article automatically. If the film has received multiple awards it would create a rowspan at the date of the ceremony and the award name. The idea is to have a similar layout to this: List_of_awards_and_nominations_received_by_WALL-E (Awards and nominations). I will create a mock up in a minute.--Diaa abdelmoneim (talk) 10:21, 12 April 2009 (UTC)

 

!vote morebits script

I would like someone to make a variation off the simplevote script that would work on talk pages, and pages in either [[[:Category:Non-talk pages that are automatically signed]] or Category:Non-talk pages with subpages that are automatically signed. Just make two options for now and tuck it in User:Ipatrol/!vote.js, I will add the rest of the options.--Ipatrol (talk) 15:55, 12 April 2009 (UTC) I made it, it's at User:Ipatrol/bitbox.js. Could I have help debugging it?--Ipatrol (talk) 21:48, 12 April 2009 (UTC)

Recent Changes Table

Can someone please update or create a fork of User:Tim Laqua/Scripts/formatRecentChanges.js? This script transforms Special:RecentChanges into a table. It would be nice if you could make it resemble mw:Extension:TransformChanges (see it in action here). It would also be nice if the script could change Special:Watchlist, Special:Logs, and history pages into tables too. --Michaeldsuarez (talk) 13:03, 10 May 2009 (UTC)

Transwiki watchlists

Bounty up for grabs for a script or extension that can be used to aggregate multiple watchlists without a client-side application. Any preexisting tools that'll already do the job? MrZaiustalk 19:52, 16 May 2009 (UTC)

Have you tried gWatch? — AlexSm 19:57, 3 June 2009 (UTC)
No, but if it can easily be expanded to include commercial Wikitravel and Wikia projects and a private intranet site (given a host within said intranet) that would certainly fulfill the bounty requirements. As it the code is not, however, completely self-explanatory, I make the following pledge: Work up a decent little English-language HOWTO explaining how to install and configure gWatch to do the above, especially the initial db setup and, after I've successfully tested it with the En Wikitravel site and at least one other MediaWiki powered site, the donation will be released.
I rather suspect, however, that to do this would require that the final solution strip away the requirement for the ToolServer databases in favor of simply authenticating and parsing the output of the various target wiki's Special:Watchlist pages. This, of course, would also dramatically increase its speed On the Toolserver, as I post this, it's taken it 10 minutes to get a mere 30% of the way through my already aggressively trimmed En Wikipedia watchlist. This may also allow for a simple way to mimic the collapsible edit trees found on WikiMedia projects, as they can be pulled directly from the rendered HTML of the parsed watchlists on compliant servers.
Would still be extremely cool if it were expanded to mimic pop-ups, though: That part of the bounty will stand.
(PS: Just in case anyone from the USG sees this, be aware that I do not ever intend to introduce or lobby for the introduction of such a script on USG networks. The intranet scenario is posed for the benefit of former colleagues in the private sector.) MrZaiustalk 16:35, 10 July 2009 (UTC)

Auto Wikilink

A script that automatically adds wikilinks to an article.Smallman12q (talk) 15:02, 17 May 2009 (UTC)

How would a script know what to Wikilink? You need to be more specific with what you want it to do. Ale_Jrbtalk 16:28, 17 May 2009 (UTC)
I have 2 different scripts that can suggest you a page as-you-type (like in the search input on the left), but I didn't publish them in enwiki yet. Let me know if you're interested. — AlexSm 19:57, 3 June 2009 (UTC)

Lightweight highlighter

I'd like to see a highlighting script that is easy to deploy and does not dramatically alter the editing window. It should not add new functionality but rather clarify the text already there. I envision it similar to wikiED but without all the buttons. The script ("hi-lite"?) should differentiate between article text and headers, images, templates, references, and various other syntactical features. As an added bonus, can you figure out a way to hide references, so anything enclosed in <ref></ref> tags does not appear when the user says so?
I have a preliminary color scheme worked out, although if there are conventions I'm unaware of, use them instead:

  • Regular text - black
  • Headers - red (need to stand out)
  • Templates and tables - purple (a pleasant color for large infoboxes)
  • Files (images) - green (no reason)
  • References, comments, persondata, categories, interlanguage links - brown (boring maintenance stuff)
  • HTML tags and their contents (other than refs), and italics and bold - orange (unusual, needs to be noticeable)
  • Links - blue (the color that they render as)

If something falls into more than one category, it should be colored according to the category the farthest down on the list. I think that such a script would be very accessible and useful to new and non-technical Wikipedians. I will make editing much easier and inviting. If I lost you in the details, I'll be happy to work them out later, as long as we can agree that the concept is valuable. Thank you in advance.--HereToHelp (talk to me) 21:45, 2 June 2009 (UTC)

This highlighting requires changing textbox into more advanced control, just like WikEd does, and I just don't think anybody is up for this task except for WikEd author. — AlexSm 19:57, 3 June 2009 (UTC)
Okay, I'll ask there. It should be relatively easy to work backwards and cut extra features, right?--HereToHelp (talk to me) 22:32, 3 June 2009 (UTC)

Prod patrol script

Would it be possible to have something that would do unprodding and the associated posting to the prodder's talk page and {{prod2}}s? Jonathan Hall (talk) 14:35, 3 June 2009 (UTC)

Admin-related: Deletion via AJAX

  Resolved

Hi together. This is a request that probably only admins can fulfill, if at all. Currently, deleting a page forces an admin to load a new page that contains little more than a dropdown menu, a reason field and a button. Since this is a wasted pageload and quite annoying if going through pages in a quick fashion, I was wondering whether someone could create a script that overlays a simple deletion options menu when clicking on the "delete" tab and allows to directly delete a page from there without having to load the deletion-page first. Does anyone think this can be done and if so, is anyone willing to do so? Regards SoWhy 09:12, 9 June 2009 (UTC)

My CSD script does this, but only for CSD-tagged pages. I was intending to edit it for normal deletion at some point anyway though, so now I might do it a bit faster. Either way, see if it's anything like what you were looking for: User:Ale_jrb/Scripts. Ale_Jrbtalk 10:57, 9 June 2009 (UTC)
I wanted it for CSD anyway, for AFD there is closeAFD. You might want to add your script to the list at WP:SCRIPT, other CSD admins will probably love it as well^^ Regards SoWhy 19:35, 9 June 2009 (UTC)
See also: User:Splarka/ajaxbatchdelete.js (undelete and page/file move scripts also exist, per various user requests). --Splarka (rant) 07:13, 10 June 2009 (UTC)

More options for special contributions

Requesting a script that puts two additional links against entries shown on Special Contributions

i) (diff to current) - Provides a link to a page comparing a specfic revision page to the current version of that page.

ii) (before this to current) - provides a link to a page comparing the revision of a specfic page one revision previous to the specfic revision in the edit history entry concerned, against the current version of the page.

Sfan00 IMG (talk) 16:44, 6 July 2009 (UTC)

Use Google Books Embedded Viewer in references to books

Google Books released a new feature called Embedded Viewer [3] [4]. It's like the embed tag of YouTube videos. The request: If a refernce to a book has an ISBN number and a page number, this script will show the citation in an embedded view. I use Firefox. Thanks. Dy yol (talk) 17:46, 6 July 2009 (UTC)

Wikipedia prefers to use 'free' sources, are Google's terms of use compatible with Wikipedia's definition of free?

Sfan00 IMG (talk) 17:54, 6 July 2009 (UTC)

A script to convert userboxes using div or tables to use Template:Userbox

Not sure if this is possible, but it would be quite useful. As it stands now, I just bug User:WOSlinker to do it for me =) –xenotalk 20:00, 8 July 2009 (UTC)

Navigation box links

I'm hopeless with javascript. What I'm looking for is a simple script to add links to WP:AIV and WP:UAA to the bottom of the navigation box on the left, just above the search box. Simple script, but I can't figure out how to code it. Thanks. LedgendGamer 09:44, 10 July 2009 (UTC)

I have a script that adds a 'my links' box in that position, that you can configure what goes inside. Might be useful to you.
Add importScript('User:Ale_jrb/Scripts/myinterface.js'); to your monobook, and use the syntax:
var linkArray = new Array(['id', 'full URL', 'link text'], ['id', 'full URL', 'link text']);
to fill the box. Ale_Jrbtalk 11:27, 10 July 2009 (UTC)

Archiving script

I'm requesting a script that would give me a link/tab/button that when clicked on, would automatically open a talk page I'm on and paste the following code at the top of it:

{{User:MiszaBot/config
|archiveheader = {{Talkarchivenav}}
|maxarchivesize = 80K
|counter = 1
|minthreadsleft = 1
|minthreadstoarchive = 1
|algo = old(15d)
|archive = Talk:PAGE NAME/Archive %(counter)d
}}

This script would also add "Set up of auto archiving" to the edit summary. The script should not, however, save the page automatically but leave it in its editing state so I may make manual changes to the MiszaBot parameters if need be. - ALLSTRecho wuz here 20:36, 11 July 2009 (UTC)

I use a script called 'Copy and Paste'. Is there a particular reason why you can't? Ale_Jrbtalk 22:16, 11 July 2009 (UTC)
If not that, use User:MarkS/extraeditbuttons.js and add a custom button for yourself with the relevant text. Not sure how you would auto-insert an edit summary, but if you dig through WP:TW code you should find out how it does it. → ROUX  03:51, 12 July 2009 (UTC)
I wouldn't begin to know how to make that script work for what I want. Got a link to 'Copy and Paste' for me to see how it works? - ALLSTRecho wuz here 03:59, 12 July 2009 (UTC)
Copy and paste script: ctrl-c, ctrl-v. The script isn't difficult, see my .js settings for how to use the custom buttons. → ROUX  04:03, 12 July 2009 (UTC)
Thanks. Very useful but still lacking. I rather when I clicked the custom button, it paste the actual contents of User:Allstarecho/autoarchive to the page rather than just substing that page because once I save it, then I have to go back and edit the parameters. It also doesn't allow for adding text automatically to the edit summary. It'll do for now though until I can find someone to write what I really want and need. I think something more in line of Wikipedia:WikiProject User scripts/Scripts/POV tool would do the trick, I just don't know how to code it. - ALLSTRecho wuz here 06:02, 12 July 2009 (UTC)
Also I'm noticing that one of the custom buttons/actions I added works on user talk page but not on article talk page. Anyway to define this? - ALLSTRecho wuz here 06:27, 12 July 2009 (UTC)
It doesn't need to be substed. You could have the button simply add the entire wodge of text. You may need to purge your cache; the toolbar is universal for all editing. Alternatively, you could have your button do this: {{fullurl:{{ns:1}}:{{PAGENAMEE}}|action=edit&section=new&&preload=User:Allstarecho/autoarchive}}, which on this page gives this link: //en.wikipedia.org/w/index.php?title=Talk:User_scripts/Requests/Archive_2&action=edit&section=new&&preload=User:Allstarecho/autoarchive, but should ... actually wait, I have a better idea. BRB. → ROUX  06:34, 12 July 2009 (UTC)
(out dent) I actually fixed that issue where it's doing what I want it to do now. See User:Allstarecho/monobook.js, very bottom. The only problem I'm having now is that they won't work in article space. Only user talk space, for example.. when I go to my talk page, the buttons are there and do what I want. When I go to an article talk page, they aren't there. - ALLSTRecho wuz here 06:38, 12 July 2009 (UTC)
Probably just a caching issue. My solution doesn't work in any case, for annoying reasons due to preload. → ROUX  06:52, 12 July 2009 (UTC)
I've cleared my cache many times. Works fine in user space, both user page and user talk page. But not in article space, article or article talk. All I get in article space are the general buttons normally found without any scripts. You're saying when you go to an article talk page, you see your custom Sig button and others? - ALLSTRecho wuz here 06:58, 12 July 2009 (UTC)

Mm. Yeah, sorry, I was being a bit sarcastic. Is there a reason why you can't just copy and paste that text into articles that you want to put it in, then edit and save? Either way, I put together a small script that should do what you want. Add importScript('User:Ale_jrb/Scripts/allstarArchiver.js'); to your monobook.js. It should put a link, 'Add archive template' to the top of the toolbox. Clicking it will load the edit page and add the text to the top of the edit box, and fill in the edit summary. Ale_Jrbtalk 10:52, 12 July 2009 (UTC)

Well, yes, I could copy & paste.. but the point of this is to cut out some clicks and keystrokes. I also always have trouble remembering the parameters of the MiszaBot configuration so this saves my brain too. While I like Roux's option the best, it just will not work in article/article talk space for me, only user/user talk space. Your script does work in article/article talk space and that's the ultimate goal I was looking for. I've moved it to my userspace at User:Allstarecho/autoarchive.js so you can delete your copy if you wish. Thank you for writing the script. I modified it also at User:Allstarecho/wpms.js for use in tagging article talk pages with the WikiProject Mississippi tag. - ALLSTRecho wuz here 15:42, 12 July 2009 (UTC)
One more thing.. any way to put these as a tab at the top of the page with my other tabs instead of as a link in the Toolbox? - ALLSTRecho wuz here 16:50, 12 July 2009 (UTC)
Please don't forget to properly attribute in the edit summary when copying from other users' userspace. –xenotalk 16:57, 12 July 2009 (UTC)
It's a script (not an article) that I requested. Didn't realize there were licensing issues to use a script I asked for. Sorry. - ALLSTRecho wuz here 17:01, 12 July 2009 (UTC)
No problem, and yes, licensing issues apply to anything you take from elsewhere in the wiki. See my edit summaries on the re-recreation for suggested ways to properly attribute. –xenotalk 17:02, 12 July 2009 (UTC)

Yeah, you can change where it adds it. Replace 't-whatlinkshere' with the ID of the element you want it to be next to (to put it next to the move tab, for example, use 'ca-move' instead - these are all listed in the page source). If you want it on the left use 'before', it you want it on the right use 'after'. Ale_Jrbtalk 17:12, 12 July 2009 (UTC)

Unwatch in watchlist

As a regular user with rollback, when I'm viewing my watchlist, at the end of each entry I have a [rollback] link and [sum] link (the sum link is courtesy of User:Gracenotes/rollback.js). I think a useful script would be one that would add an [unwatch] link as well to unwatch a page on the fly rather than having to to the actual page and then click unwatch.

Example of what I see now:

  • (diff) (hist) . . Eleanor Roosevelt‎; 21:25 . . (+69) . . SomeUserName (talk) [rollback | sum]

Example of what I'd like to see:

  • (diff) (hist) . . Eleanor Roosevelt‎; 21:25 . . (+69) . . SomeUserName (talk) [rollback | sum | unwatch]

Anyone up to making this happen? - ALLSTRecho wuz here 03:03, 13 July 2009 (UTC)

Already exists, look in my monobook. → ROUX  03:21, 13 July 2009 (UTC)
Will test that. I wonder if it will interfere with User:Ais523/watchlistnotifier.js and/or User:Lupin/recent2.js. Off to see... - ALLSTRecho wuz here 03:35, 13 July 2009 (UTC)
OK, doesn't seem to interfere with the other scripts, which is good. Does what I want just don't like how it does it. I'd like the unwatch link to be there all the time instead of me having to "turn on" the unwatch link each and every time I load my watchlist but it'll do for now until someone bored and nice will write the one I want. :] I really do love the fact that when I click on unwatch, it doesn't take me off to another page but instead just strikes through the page listing in my watchlist. Thanks for the response Roux. - ALLSTRecho wuz here 03:43, 13 July 2009 (UTC)


Add to Watchlist

Is there any scripts to add all articles in a category(recursively) to watchlist ? --naveenpf (talk) 01:50, 26 July 2009 (UTC)

One click multi-revision compare

The idea is so that, in reviewing a watch list, you have an option not just to diff the last edit, but also with one click to diff what's changed in (perhaps) the last 10 edits. This would make it easier to catch vandalism or other bad edits that were quickly covered up, and just to keep track of articles generally. A cool feature would be if the length could be adjusted, so maybe I had a one click ten edit compare, but others had a one click 20 edit compare and so on. Mackan79 (talk) 07:46, 28 August 2009 (UTC)

Diff links for talk page edits

I don't know if this could be solved with a user script, but it's always seemed like such a pain to find diffs for talk page edits. Is it impossible for some reason that the sig could link the diff for that comment? Maybe even just for the edit that placed the sig, if you couldn't get later changes or unsigned edits.

A related tool might offer some way to trace any content to the diff where it was added, on a talk page or elsewhere. I'm sure that's more difficult, but I'm thinking maybe something like a color view, where every series of text was color coded and linked to the last edit to add or move it (defined maybe in the same way as the red text on a diff page). Or maybe not color coded, but a pop up link with any text you hovered over. Mackan79 (talk) 08:12, 28 August 2009 (UTC)

Template-adding request

A script that is included on the upper dragging links, defined by the user's parameters. This script, when applied, will ask the user what template he would like to add. The user must input the name of the template, with no {{ }} and the script will automatically add the template with the {{ }} symbols on below the last section of the article. This is only applicable for the templates that are for not on sidebars.--JL 09 q?c 12:53, 8 September 2009 (UTC)

Do you have a specific template in mind that Friendly and Twinkle cannot provide together? They are, essentially, tagging programs, so... Ale_Jrbtalk 13:06, 8 September 2009 (UTC)

"the average response time is about never"

An editor said "the average response time is about never" for help here. Can someone prove this kind editor wrong and make me the exception to the rule? ;-)

As I wrote at Wikipedia:Vpt#Pop-ups I would like a monobook.css script which allows editors who modified their monobook.css to see pop-ups on one page. The pop-ups would be scrapped google hits.

The google hits is all ready taken care of, the google hits will be scrapped from autohotkey, the pop up wikiscript will be added to the scraped results, and I will manually add them to a subpage of a wikiproject.

So what I am interested in is:

  1. The pop up wikiscript to add to the google hit results
  2. The monobook.css script to allow editors to see these wikiscript results.

In return for your hard work, I offer:

  1. lavish praise,
  2. a couple of barnstars,
  3. dating/marriage advice if needed
  4. my first born and
  5. an incredible increase in your ego, as I make you feel like a complete genius as I "ohh" and "awe" your ability to write indecipherable script (to me) every step of the way.

Ikip (talk) 17:34, 13 September 2009 (UTC)

All I can tell from the description is that popups wont likely do it. Where does this data come from and how does it get to the user? What servers are involved? You need to provide more details before anyone can do something. — Dispenser 03:03, 21 September 2009 (UTC)

TfD nomination tool

Do we have any script that like the Afd nomination tool, it will nominate a template for deletion?--JL 09 q?c 00:43, 16 September 2009 (UTC)

Twinkle does with the xfd tab. --Admrboltz (talk) 04:00, 21 September 2009 (UTC)

English variant help

We need a parameter passed to Mozilla (and probably other engines as well) that are based on the English variant so our "misspelled" words are indeed, mispelled for that variant, and not merely misspelled for the variant we have hard-selected from Mozilla.

This may require a bot to go through and set that parameter for known articles, i.e. "American variant" would be placed by the bot for all articles the bot could identify as American. Having said that, there are a lot left over which we would have to do manually. Student7 (talk) 20:36, 5 October 2009 (UTC)

Button for auto-adding custom template

I would like a button that can just subst a custom template to a talk page. If I knew how, I would do it myself, as it seems easy enough, but...-- fetchcomms 03:26, 27 November 2009 (UTC)

To the top or bottom of the page?   JJ (talk) 04:03, 27 November 2009 (UTC)
Top, left sidebar, or in the tab menu where Friendly is; I don't care that much. Whichever you find easiest, I guess.-- fetchcomms 17:40, 27 November 2009 (UTC)
Actually, I think I've got it figured out, but thanks anyhow.  fetchcomms 03:31, 22 December 2009 (UTC)

Convert pages to use the LDR method

Is there a userscript around that can be used to convert a page with a large amount of references to use the WP:LDR method of referencing? Peachey88 (Talk Page · Contribs) 02:19, 5 December 2009 (UTC)

There is a tool on toolserver, see Wikipedia:Administrators' noticeboard#New tools (permanent link); never tried it myself though. — AlexSm 05:21, 5 December 2009 (UTC)

Script to pass through to Google Maps

Anytime you click on a link that has Longitude/Latitude information, you are transferred to a page that asks you how you would like to view the map info.

Since I prefer Google Maps, Maps view, is there a script that can bypass this step?

thanks DarkStarHarry (talk) 17:13, 14 December 2009 (UTC)

There are scripts around to bypass the bookseller page from an ISBN link, and go straight to a particular seller. You could hack one of those to bypass the links to geohack and go straight to google maps. — Carl (CBM · talk) 22:54, 5 January 2010 (UTC)

Request: Describe from captions...

This is probably not a well explained request, but it would be useful to have a function to get an image description for an [[:File:Foo]] based on, the captions that image has on pages it is included inAs [[File:Foo|<params>|caption] .

All this would need to do is provide a text string that could be copy pasted or inserted in to an image description box on the relevant file page..

Is this possible to do, and in a manner that would be compatible with tools like FURME and TWINKLE? Sfan00 IMG (talk) 22:03, 5 January 2010 (UTC)

Indef tagger

This seems simple enough, a script which adds a tab to the when in the user or user talk spaces which when clicked blanks the page and adds {{indef}} to the page. Just looking for a nice clean, quick way to do it.--Terrillja talk 04:31, 9 January 2010 (UTC)

Well I guess you could try drowning them in the river. ―AoV² 10:48, 27 March 2010 (UTC)

Help with JavaScript debugging?

I have written a script to pass through the GeoHack page once a user clicks on a link with map coordinates. It's not working. Can someone help me debug? My knowledge of JavaScript is limited.
Thanks, Harry
Script located at User:DarkStarHarry/externMapCoords.js DarkStarHarry (talk) 14:26, 13 January 2010 (UTC)

function replaceGeoHack(){
	var coord_filter = /&params=([\d.+-]+)_([\d.+-]*)_?([\d.+-]*)_?([NS])_([\d.+-]+)_([\d.+-]*)_?([\d.+-]*)_?([EOW])(\b[^&]*)/;
	var existingMap = "http://stable.toolserver.org/geohack/geohack.php";
	var newMap = "http://maps.google.com/maps?ll={lat},{long}";
	var lat,lon;
	var links = document.getElementsByTagName('A');
	var link;
	for(var i=0; (link=links[i]); i++){
		if(link.href.indexOf(existingMap) == 0 && coord_filter.exec(link.href)) {
			lat=(1.0*RegExp.$1) + ((RegExp.$2||0)/60.0) + ((RegExp.$3||0)/3600.0);
			if(RegExp.$4=='S') lat*=-1;
			lon=(1.0*RegExp.$5) + ((RegExp.$6||0)/60.0) + ((RegExp.$7||0)/3600.0);
			if(RegExp.$8=='W') lon*=-1;
			link.href=newMap.replace('{lat}', lat).replace('{long}', lon);
		}
	}
}
addOnloadHook(replaceGeoHack);
I'm assuming that you want to bypass GeoHack entirely, the above code should help you get started with it. — Dispenser 23:05, 15 January 2010 (UTC)
No luck. The script isn't loading. I put it on its' own page ('User:DarkStarHarry/replaceGeoHack.js') and added a hook to my monobook, but it's not loading. HELP! DarkStarHarry (talk) 21:10, 16 January 2010 (UTC)

Search link instead of button

My request is a script that makes the search button on the sidebar into a link (allows search new windows, tabs, etc.) similar to the "Compare link" script. It would be great if it was compatible with the "Multi-NS search" script. I use firefox. Thank you. Sole Soul (talk) 04:37, 21 January 2010 (UTC)

Well, one of my snippets adds a collapsible, floating, faithful (It follows you as you scroll) search bar to the side of the page, which has an extra button with the "expand image" icon (here). This button opens the typed text in a new page. It additionally adds a collapsed menu (Click the '+' to show), which has links to your user page ,talk page, watchlist, and contribs. NOTE: This script overlaps part of the sidebar, which looks kinda ugly, though the overlapped part can be unoverlapped by scrolling. If you think that this script deserves Script status (Having its own js page and showing up at WP:US/S) instead of being just a snippet (code which I think isn't worthy of a js page), let me know. ManishEarthTalkStalk 11:19, 27 March 2010 (UTC)
If you don't want the floating search bar, try
document.getElementById('searchform').innerHTML+='<button type="button" onclick="window.open(wgServer+\'/wiki/\'+document.getElementById(\'searchInput\').value)"><img src="http://bits.wikimedia.org/skins-1.5/common/images/magnify-clip.png"></button>'

ManishEarthTalkStalk 11:24, 27 March 2010 (UTC)

prod patrolling and adding {{prod-2}}

is there an existing script or simple way to write a script that will offer a button to insert the {{prod-2}} template below an articles respective prod? andyzweb (talk) 20:50, 21 January 2010 (UTC)

Always link images

Would it be technically possible to create a user script that always links images within page content? WP:ALT specifies that decorative images (like flags, highway shields, etc.) not be linked for accessibility reasons; I find the missing links makes it more difficult for me to investigate who created the image and determine its naming scheme so that like images can be uploaded. Ideally such a script would override the wikitext when the "link=" param is set to blank but go ahead and allow it to work if it's being used to actually link to some other page (as sometimes occurs in editing tools, etc). Thanks! —Scott5114 [EXACT CHANGE ONLY] 16:05, 29 January 2010 (UTC)

I agree 100% and have already come up with this: User:AoV2/fix image links. ―AoV² 10:45, 27 March 2010 (UTC)
Note to AoV2 Can you please use section edits? I've posted a message on your talk page here Section edits are both useful for you and for people using watchlists ManishEarthTalkStalk 11:34, 27 March 2010 (UTC)

Search inside subpages

A search box to search inside the subpages of the current page. Sole Soul (talk) 22:17, 1 February 2010 (UTC)

  • This should be good enough: I just wrote the script User:PleaseStand/Subpage search, which adds a checkbox below the normal search box. Interestingly, the main quirk is Wikipedia's autocomplete – it will pop up when you do not want it to. PleaseStand (talk) 02:45, 25 February 2010 (UTC)
Thanks. I really appreciate it. The checkbox is very convenient for me. Sole Soul (talk) 15:51, 26 February 2010 (UTC)

catwatch

I use User:Ais523/catwatch.js, its incredibly useful to me for things like attack pages and requests for unblock etc, but because I'm in the UK and we're forward an hour now, new pages in the categories i'm watching appear are listed as being an hour earlier than they are to me, so I keep missing them. Is there anyway to change that in my vector.js?--Jac16888Talk 02:16, 30 March 2010 (UTC)

Checking for active users

Could a script be made to show the activity of a user? It happens a lot when I search through a list or category of users (for example: members of a wikiproject, some-language-speaking users category...), for contact, most of the time, I end up posting for inactive users. I started the habit to check before posting the contribution page of each user to see whether he's still contributing or not. But It's a tedious task. It would be better if the link to an inactive user (which could be defined as someone with no edits in the last month) be highlighted (just as broken links or stubs are colored in red). Is this possible? Thank you. Eklipse (talk) 21:52, 15 June 2008 (UTC)

That would produce too much server load to do constantly, all the time. However, I think it would be feasible to have a link in the toolbox saying something like "check user activity" that did the higlighting on request. --ais523 12:55, 16 June 2008 (UTC)
What about only links in categories. Does this still load the server? Because the main point was not to check for every user in a long list, but to immediately find the active user. Instead of clicking the "check user activity", I could've just checked "User Contributions". Eklipse (talk) 03:40, 17 June 2008 (UTC)
As far as I know, a JavaScript tool only does automatically what you would be doing by hand. In this case it would have to actually load the history for each and every article in the category, do some text processing, then present you a result. So, if a category had 300 articles, that's on one hand your browser actually downloading 300 histories, and on the other the server having to generate on the fly those same 300 histories, something that I think neither you nor the server would want automatically happening each and every time you entered a Category: namespace page. A toolbox link for you yourself to initiate the process only when you actually need it is thus a much more sensible approach. -- alexgieg (talk) 13:33, 17 June 2008 (UTC)
I think categories of users were mentioned above, so the script just needs to check users contribs. With (outdated) Query.php this can be even done with just one query (example). So the script is definitely possible (as long as it's started manually, of course). —AlexSm 16:31, 17 June 2008 (UTC)
Yes, it is only activated when you open a category of users, and only checks the last edit in the Contribution page, and not the whole history. I suppose it is feasible. Eklipse (talk) 17:03, 17 June 2008 (UTC)
Ah, I see! Sorry for the misunderstanding. And by the way: I didn't know "query.php". It seems to be a cool feature even when used directly, no matter that raw XML isn't easy to read. Thanks for pointing it out! -- alexgieg (talk) 17:35, 17 June 2008 (UTC)
I think that api.php, the newer version of query.php, can do that too: same example. api.php tends to be better supported by the developers nowadays. --ais523 12:07, 18 June 2008 (UTC)
Sorry, ignore me, I misinterpreted the query.php query. I still think there's some way to do it with api.php, but it's not as easy. --ais523 12:08, 18 June 2008 (UTC)
It seems that no one had the time to create this script. Thanks anyways :-) Eklipse (talk) 14:39, 2 July 2008 (UTC)
Maybe the script could intersect the list special:activeUsers with the category when the user request so. And currently, this query seems to do what the previous links did... Helder (talk) 19:19, 18 April 2010 (UTC)

Insect pages

Here is my idea: I want to make a javascript that's a tab that will scroll down when pass the cursor over it. Basically it will create a insect page based on the options Family, Genus, and Species like an "easy start". When you click on Family, it will create the page your currently on with User:Bugboy52.40/sandbox1 (used <pre>), Genus: User:Bugboy52.40/sandbox2, Species: User:Bugboy52.40/sandbox4. Thanks in advance, this tool would make my life easier! Bugboy52.4 ¦ =-= 21:25, 22 December 2009 (UTC)

So... anybody have any ideas?? Bugboy52.4 ¦ =-= 01:59, 31 December 2009 (UTC)
This would not be difficult to do with a javascript dialog box; you could use the edit preload to start the pages. — Carl (CBM · talk) 22:55, 5 January 2010 (UTC)
Could you send me the script? Bugboy52.4 ¦ =-= 10:36, 6 January 2010 (UTC)
I have too much other stuff to code right now; I was just pointing out one way this could be achieved. — Carl (CBM · talk) 12:17, 6 January 2010 (UTC)
How about now? Bugboy52.4 ¦ =-= 10:03, 21 April 2010 (UTC)

Highlight disambiguation pages?

Would it be possible to have a script similar to User:Dschwen/HighlightRedirects, but which highlights links to disambiguation pages instead? PC78 (talk) 15:09, 13 September 2009 (UTC)

I believe User:Splarka/dabfinder.js does this. Ale_Jrbtalk 17:01, 13 September 2009 (UTC)
Thanks, though I'm not entirely sure how it's supposed to work. I've added it to my js and bypassed my cache, but I'm not seeing any difference. PC78 (talk) 17:21, 13 September 2009 (UTC)
I don't know, I didn't write it. I believe there should be a new tab somewhere, that when clicked will highlight any pages that are disambiguations. Also, I would have imported it personally, so just added the code importScript('User:Splarka/dabfinder.js'); to the page instead of copying the whole thing, but that's up to you. I'll investigate. Ale_Jrbtalk 17:37, 13 September 2009 (UTC)
OK - the links are placed in the toolbox to the left side of the screen. The script adds two links: 'Find disambiguations' and 'Find redirects' - check whether these are displaying for you. Ale_Jrbtalk 17:42, 13 September 2009 (UTC)
I see them now. Thanks a lot! PC78 (talk) 09:26, 14 September 2009 (UTC)
There is also User:Anomie/linkclassifier.js which uses a category based system and highlights Redirect, AFDs, Featured Articles, and more. Then there's also my Toolserver tool tools:~dispenser/view/Dablinks. — Dispenser 06:11, 14 September 2009 (UTC)

Splarka's excellent script doesn't work with Vector skin. I asked about it at User talk:Splarka#dabfinder 3, and after checking here it turns out I had the exact same request as PC78! So, could some code-genius adapt Splarka and Dschwen's scripts, so that dabfinder works as well as highlightredirects? (Note: I used to use Anomie's linkclassifier, but it made large pages (like Village Pumps, or FA-length articles) take far too long to render on my meager machine). Alternatively, could Anomie's linkclassifier be made to only run-on-demand, rather than autoexecute on every page load? Thanks. -- Quiddity (talk) 20:26, 17 April 2010 (UTC)

Update: I asked Anomie, and he's given linkclassifier a run-on-demand option. See code at User:Anomie/linkclassifier. (I swapped 'p-cactions' with 'p-tb' in order to put the link in the toolbox, instead of in the dropdown/top-tabs). Works with vector. -- Quiddity (talk) 04:30, 11 May 2010 (UTC)

Highlight specific languages in the sidebar's list of interwikis

I'd like to get the links in the sidebar portlet, to the languages that I can read, highlighted/bolded.

e.g. all of the [de:] and [fr:] and [ja:] and [simple:] links.

Possibly this already exists, but I couldn't find it in the list/archives. Thanks :) -- Quiddity (talk) 08:40, 15 December 2009 (UTC)

It's easy to do with CSS, for example I use
li.interwiki-ru, li.interwiki-en {text-align:right; margin-right:10px}
to make ru and en interwikis to be aligned to the right. By the way, instead of monobook.css it's much better to add this code to your browser "user" CSS (at least Opera and FireFox can do that) so it would work on all Wikimedia projects. — AlexSm 15:20, 15 December 2009 (UTC)
Perfect. Thank you :) -- Quiddity (talk) 08:58, 16 December 2009 (UTC)

Now (with new Wikipedia interface) it doesn't work... Do you have any ideas, how to highlight / margin some interwiki language. -- Andrew Krizhanovsky (talk) 10:54, 18 May 2010 (UTC)

Add the code to your vector.css page - you need to add the code on the skin css file for any skin you want it to work on. :) Ale_Jrbtalk 15:24, 18 May 2010 (UTC)
Man of genius :) Thank you! -- Andrew Krizhanovsky (talk) 11:45, 19 May 2010 (UTC)

Search and replace from parameters in an edit link

Howdy. I'm looking for a user-script that can pick up a couple of extra parameters in an edit link, do a search-and-replace in the edit box and populate the edit summary box. Example:

Ideally, the edit box would be scrolled to the first instance of the "search" parameter, the matched text replaced with the value of the "replace" parameter and left highlighted to make it easy to check. The edit summary box would be pre-populated with something like "Fixed link to <replace>".

If anyone has anything close I can adapt it, but my scripting skills are rather rusty. - TB (talk) 14:33, 24 May 2010 (UTC)

I've had a little more success than I expected in cobbling this together myself (see User:Topbanana/RLRL SR Utility.js), but am now looking for an example of User:Gerbrant/edit/regexReplace.js being used programmatically. I can see from the docs that there's am 'exported' replace() function that looks to be a great match for my needs, but I'm darned if I can figure out how to call it. All dutch to me ;) - TB (talk) 15:22, 26 May 2010 (UTC)
Solution found. Works really well, I'll have to document it for the scripts collection. - TB (talk) 22:37, 28 May 2010 (UTC)

Copy blank template

Many template documentation pages include a blank copy of the template, which can be selected, then copied, and pasted into an article. Would it be possible to have a script which inserts a link or button before the blank, so that when the link/ button is clicked, the blank is copied to the clipboard? I realise that this might require some sort of wrapper with a defined class, around the blank. (I use Firefox under WinXP; but I'd hope this would be available to most, if not all, users). Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 09:23, 30 May 2010 (UTC)

Script to replace Watchlist * in vector with word "Watch"

Hi. I'd like to request a script (either CSS or JS, I'm not fussed) to replace the Star in the upper bar on the Vector skin (which adds an article to the user's watchlist) with the word "Watch". It doesn't seem like much of a usability enhancement to add a symbol for a very common function and not give any explanation as to what it's there for, or I wouldn't have spent almost 40 minutes looking for it, only to have to resort to asking the mediawiki channel on IRC whether they'd added a watchlist link to vector :) Anyone who can help, I'd be most appreciative! BarkingFish Talk to me | My contributions 03:43, 18 June 2010 (UTC)

Edit page clutter cleanup?

I'm looking for a script that will remove the majority of disclaimers, terms of use notices, and other text not essential to just making an edit. Is there such a thing? Thanks>> Ocaasi (talk) 03:47, 24 June 2010 (UTC)

Your browser should allow you to look at the HTML source of the page, look for the areas that you want to hide and notice their ID's or classes, then hide with CSS, you don't need a script for that. A lot of people have div#editpage-copywarn, div.mw-tos-summary, div#editpage-copywarn2 { display:none } in their personal CSS to hide legal notices. — AlexSm 13:00, 27 June 2010 (UTC)

Rollback confirmation script

I have User:Zvn/confirmwatchlistrollback.js in my monobook.js (which is transcluded into vector.js) and am using vector. However, I just accidentally clicked rollback from my watchlist and did not get the confirmation popup that the script is supposed to request. Knowing very little about script programming or css, I'm assuming that some element name is monobook-specific and am wondering if some simple recoding can make it compatible with vector. I'd ask the original author, but they're an indef-blocked sock. —DoRD (talk) 21:36, 23 June 2010 (UTC)

I discovered that it does in fact work so...never mind. —DoRD (talk) 00:55, 2 July 2010 (UTC)

"Six tabs" script not compatible with vector skin (Beta)

Can Wikipedia:WikiProject User scripts/Scripts/Six tabs have a variant created that's compatible with the vector skin?

I've been trying the vector skin on en.WP (it has been rolled out on other projects, but still in beta on en.WP). This script currently doesn't work on vector, only with monobook. Unfortunately, it is the one thing I miss most that could cause me to switch back to monobook. --- Barek (talkcontribs) - 07:25, 22 April 2010 (UTC)

I have the same problem :) I've been trying User:Svick/DropDownToTabs.js, but it doesn't work very well with tabs added by other scripts... --Waldir talk 11:03, 26 April 2010 (UTC)
I just tried it out - that script doesn't do what Six Tabs provided; so not a viable alternative. But, thanks for the suggestion. --- Barek (talkcontribs) - 22:34, 11 May 2010 (UTC)

  Redesigned for Vector at user:js/6tabs-vector (I was the author of original script for Monobook). — AlexSm 21:34, 2 July 2010 (UTC)

Recent Changes Proposal

I propose that there be a script to make past offenders' (users and i.p. that have been warned for vandalism) changes be in bold in the recent changes page to indicate that they have a higher risk of being vandalism. This could be an invaluable tool for vandal fighters.--Iankap99 (talk) 05:15, 2 July 2010 (UTC)

This is rather difficult to implement in Special:RecentChanges (once you update the RC page, the script has to request a lot of additional data from the server) and would be more suitable in a separate tool like WP:Huggle, you could try to see if it's already there or request this feature. — AlexSm 21:34, 2 July 2010 (UTC)
I disagree, I think that it is very suitable here, the additional data would merely be if the user has been blocked or warned. The blocked I could see being very easy. I believe there is already such a tool for admins to be able to follow accounts with recently expired blocks. Now my question is, can such a tool be implemented regarding those whose blocks have expired?--Iankap99 (talk) 23:20, 2 July 2010 (UTC)
To make it less consuming I suggest: 1) to limit it to IP users only. I suspect that 90% of vandalism comes from IPs. 2) only check the edit summary of the latest 3 entries in the history page (of the user's talk page) for typical vandalism warnings summaries (also the warning has to be recent, say within 3 hours). Sole Soul (talk) 22:31, 6 July 2010 (UTC)

WikiProject Tagging

Is there a script that tags the talk page of the page you are viewing for a specific WikiProject? AirplaneProRadioChecklist 20:57, 6 August 2010 (UTC)

How about AssessorTags? I don't particularly like the way it works, because it tags pages without allowing you to add the class and importance, and it's no longer maintained, but it's functional. Otherwise, using AWB there's other options such as the Kingbotk plugin. - EdoDodo talk 22:11, 6 August 2010 (UTC)

Search by keyword in article AND NOT in WP project X

Have looked for this functionality in WP's search engine, and existing user scripts but have not found it, and that is I would like to perform a search that looks for string "rugby union" in article title (or article body) and then search if the WP rugby union banner template is not on the talk page. Am sure that a number of projects would apprecoiate a tool like that... ANYONE?SauliH (talk) 05:12, 2 July 2010 (UTC)

Anyone? SauliH (talk) 23:51, 6 August 2010 (UTC)
No such script exists as far as I know. Wouldn't it be far more efficient to engage a WikiProject tagging bot? –xenotalk 15:50, 19 August 2010 (UTC)
No, we wouldn't want every page that mentions a topic to necessarily be tagged as part of the project on that topic. Think how many pages mention "law" for instance. LeadSongDog come howl! 17:59, 20 August 2010 (UTC)

Reverse Watchlist

The Watchlist lists watched pages in chronological order based on recency of last edit. For maintenance purposes, it might be useful to have a Reverse Watchlist (same thing in reverse chronological order), to see "neglected pages". Is this possible as a userscript? Rd232 talk 15:47, 19 August 2010 (UTC)

I don't think that would be possible. No matter what, the MediaWiki software won't tell you any changes to pages more than 7 days ago, so while it is to reverse the last 7 days, anything before that is unknown. - EdoDodo talk 18:13, 20 August 2010 (UTC)
OK, thanks. Back to the drawing board. Rd232 talk 20:54, 20 August 2010 (UTC)

Recent changes for all edit filters

Currently, only edits tagged with the edit filter tag feature appear on the recent changes page. This is a request to add a similar feature to all edit filters. I have a suggestion on how this is can be done:

  • On the Special:AbuseLog page
  • Filter out all the hits with the actions "Disallow" or "Warn"
  • Filter out all hits where the user is not the last editor of the article (this will filter out patrolled edits also, which I think is a good thing)
  • Filter out all hits where the time of the hit is not the same as the edit time

Sole Soul (talk) 04:20, 24 August 2010 (UTC)

Is there anything wrong in this code?

Please review the following script. I am trying to make a test page with this code.

var req = sajax_init_object();
req.open('GET', wgScriptPath + '/api.php?action=query&prop=info&format=json&intoken=edit&titles=' + encodeURIComponent("Test"), false);
req.send(null);
var info = eval('(' + req.responseText + ')');
	for (var id in info['query']['pages'])
	{
		var page = info['query']['pages'][id];
		if (page['edittoken']) 
			token = page['edittoken'];
	}

	alert ("Edit Token: "+ token);

// Is there anything wrong with the code bellow?

var postdata='action=edit&title=Test&summary="test"&text="testpage"&token=' + token
req = sajax_init_object();
req.overrideMimeType('text/xml');
req.open('POST', wgServer + wgScriptPath + '/api.php?, true);
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.setRequestHeader('Content-Length', postdata.length);
req.send(postdata);

--Sadik Khalid (talk) 09:30, 2 September 2010 (UTC)

I solved this issue with the help of Wikipedia:WikiProject_User_scripts/Guide/Ajax#Edit_a_page_and_other_common_actions. --Sadik Khalid (talk) 08:09, 8 September 2010 (UTC)

Top icons script

Feasible? I was thinking about the {{Top icon}}s {{Featured article}}/{{Featured list}}/{{Featured portal}} and {{Good article}} and I thought it might be handy to have a script that does the same thing for all of the other assessment classes (possibly excluding namespace classes like Portal, Book, or Category as being redundant.) The way it would work--as someone who does not know enough scripting to save his life--is that it would "read" the talk page of an article and find the WikiProject banner(s) that have the Class= parameter and then assign that rating to the article with a small icon at the top right to alert editors of what--if any--class has been assigned to the article. Further ideas that could be useful:

  • If the rating is Stub, then users can click on the top icon and be directed to the appropriate WikiProject for more information on how to expand it (in the case of multiple banners, just choose the first one.) Alternately, go to the stub category and users can be directed from there on which WikiProject has adopted that set of articles.
  • In the case of Unknown class or an empty class, then users can click on the top icon and be directed to http://en.wikipedia.org/wiki/Talk:PAGENAME&action=edit&section=0 to edit the banner(s) and easily apply a rating. I know that this would encourage me to rate more articles, especially stubs.
  • If someone is feeling really adventurous, you can try to incorporate the Importance as well, somehow: through a background color to the icon, a tooltip, etc.

Below, I have displayed the class icons from {{Class/icon}}; see a full list (without all of the nice buttons) at {{Cat class}} and the color definitions at {{Class/colour}}, in case that is necessary.

Note that Bplus is only used by two projects; I suppose that they can just get "B" ratings...
Other classes include: Current, Future, Merge, Needed, Deferred (???), Sl (???), and User.

Does this seem like a feasible or useful feature to anyone else? Does someone want to adopt this project and make a script that provides this functionality? Thanks. —Justin (koavf)TCM☯ 03:37, 20 October 2010 (UTC)

Addendum I primarily use Firefox to edit. —Justin (koavf)TCM☯ 03:40, 20 October 2010 (UTC)

This is not a bad idea at all. Though given how many pages it would affect, might be better to propose at the VP. Also will need a bot to do the needful. → ROUX  03:41, 20 October 2010 (UTC)
Clarify Just in case we're miscommunicating here, I am not proposing that a bottom go add {{A-class article}} to every A-class article, rather these icons will only appear for users who are logged in an have this added to monobook.js/vector.js (which seems like an altogether small and reasonable server load, unless I'm missing something here.) —Justin (koavf)TCM☯ 03:58, 20 October 2010 (UTC)

Moved To here, per the proposal above. Please continue the discussion there, if anyone is interested. Thanks. —Justin (koavf)TCM☯ 06:05, 20 October 2010 (UTC)

DAB Solver, EL checker, Automated PR, Alt text viewer

It would be very useful to be able to trigger these four tools (Automated PR · Dab solver · EL checker · Alt text viewer) from the toolbar. Of course, not everyone would need all four, so a modular approach would be best. Headbomb {talk / contribs / physics / books} 08:40, 18 September 2010 (UTC)

Ping? Headbomb {talk / contribs / physics / books} 14:59, 3 November 2010 (UTC)
var qqToolConfigCustom=true; //We want a custom config
var qqWhichToolBar="tb";     // "cactions" for top, "personal" for very top, or "tb" for sidebar toolbox
                             // (The following) Which tools? true for yes - false for no
var qqPeerRev=true;
var qqAltImg=true;
var qqDablinks=true;
var qqExtLink=true;
importScript('User:QwerpQwertus/tools.js'); //And then import the script now that we've set our settings for it

Just add that to your vector.js (I think it'd work in monobook too - not sure though). You can set whether it should be in the personal, caction, or tb portlet areas and which tools you want, or just use default settings. Is there anything else you'd like to add or change on it? :) ~ QwerpQwertus Talk 02:14, 4 November 2010 (UTC)

Would there be a way to add it like "importScript('User:FOOSCRIPT/toolbox.js');" (see User:Headbomb/monobook.js for example)? This way other users could benefit from it? Headbomb {talk / contribs / physics / books} 03:29, 4 November 2010 (UTC)
Nevermind, the comments made it clear now. Headbomb {talk / contribs / physics / books} 03:34, 4 November 2010 (UTC)
Oh, and thanks a bunch, obviously :P, that'll prove very usefull. Headbomb {talk / contribs / physics / books} 03:36, 4 November 2010 (UTC)

Use Arrow Keys to Move Through Category Pages

Does anybody have a user script that, on a category page, allows me to use the arrow keys to move through blocks of links, as if pressing the "next 200" button at the bottom of the page? I pretty much want something that functions the same way that it does on the website http://www.funnyjunk.com/. Although something like this will probably be easy to make compatible for multiple browsers, for all intents and purposes I am using the browser Safari. I'd prefer it if you could put a note on my talk page if you have something for me. Thanks. --vgmddg (look | talk | do) 23:00, 28 November 2010 (UTC)

Hello? Anybody there? --vgmddg (look | talk | do) 20:30, 8 December 2010 (UTC)

SVG diff

A script or tool to compare the source code of two versions of an SVG file would be helpful. It seems that there was once a project on sourceforge with that goal. Would anyone be willing to write such a script or tool? --Leyo 22:12, 7 December 2010 (UTC)

This could be also helpfully: http://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&diff=47469377&oldid=47469247 (for someone) --Perhelion (talk) 20:56, 2 January 2011 (UTC)

Search edit summaries

A script that searches texts in edit summaries within a history page, a user contribution page or the recent changes page. Sole Soul (talk) 13:25, 16 December 2010 (UTC)

This could maybe a part of the request: User:Splarka/contribsrange.js!? --Perhelion (talk) 21:04, 2 January 2011 (UTC)

Special:LinkSearch shortcuts on external links

Hello! This is for maintenance purposes. Specifically for searching for external spam. Is it possible to create, next to each external link, a small "search-more-like-this" link to bring a quick access to Special:LinkSearch with that url preloaded? It would look like this:

The link itself may be a single word more. Thanks! Gustronico (talk) 07:04, 15 February 2011 (UTC)

addOnloadHook(function() {
  var a = getElementsByClassName(document,'a','external');
  for(var i=0;i<a.length;i++) {
    var href = a[i].href;
    if(href.indexOf('//') == -1) continue;
    href = href.substr(href.indexOf('//')+2);
    if(href.indexOf('/') == -1) continue;
    href = href.substr(0,href.indexOf('/'));
    var newa = document.createElement('a');
    newa.href = wgScript + '?title=Special:Linksearch/' + encodeURIComponent(href);
    newa.title = 'Special:Linksearch';
    newa.style.fontSize = '80%';
    newa.appendChild(document.createTextNode(' (more)'));
    a[i].parentNode.insertBefore(newa,a[i].nextSibling);
  }
})
You'll probably want to abort if the URL contains wgServer or "wikipedia.org" tho. --Splarka (rant) 08:56, 15 February 2011 (UTC)
Great!! What a quick response master! I've just added to my eswiki vector.js and works fine. Thank you Splarka. Gustronico (talk) 14:51, 15 February 2011 (UTC) PS: Yes, an abort option would be a good improvement to bypass diffs and so.

Script to add prefix to external links

Looking for a script that finds URLs in an article (i.e. http://www.example.org/) and creates a new link by adding a prefix to the URL that links to a cached version of the URL. It would be similar to this script used on the French Wikipedia. Utilisateur:Pmartin/cache.js

More specifically I would like 4 links added to each URL. These would link to cached pages at Wikiwix, WebCite, Internet Archive and Google. These are the prefixes.

  • http://wikiwix.com/cache/?url={{{URL}}}
  • http://www.webcitation.org/query?url={{{URL}}}
  • http://web.archive.org/web/*/{{{URL}}}
  • http://webcache.googleusercontent.com/search?q=cache:{{{URL}}}

It would be nice if the links showed up as (Wikiwix, WebCite, Internet Archive, Google). But it's not that important. Any help is greatly appreciated. Thanks. - Hydroxonium (H3O+) 22:57, 16 February 2011 (UTC)

Mark main page edits as minor but talk page edits as non-minor by default

I think the title is self-explanatory. Can anybody help me out? Thanks in advance. –CWenger (talk) 04:43, 12 March 2011 (UTC)

Somithing like this should work for articles (after you uncheck that option in your preferences) — AlexSm 04:58, 12 March 2011 (UTC)
if (mw.config.get('wgAction') == 'edit' && mw.config.get('wgNamespaceNumber') == 0)
$(function(){
  $('#wpMinoredit').attr('checked', true)
})
Works great, thanks so much! Will save me a lot of mouse clicks! –CWenger (talk) 05:18, 12 March 2011 (UTC)

W3C validation

Looking for a tool to capture the current URL and pass it to the W3C Markup Validation Service in another tab. I use FireFox 3.6. ---— Gadget850 (Ed) talk 15:56, 12 March 2011 (UTC)

A validation bookmarklet (easily found on the web) seems like a better solution because you'll be able to use it on any website. — AlexSm 23:25, 12 March 2011 (UTC)
Thanks. Works like a charm. ---— Gadget850 (Ed) talk 03:59, 13 March 2011 (UTC)

History visualisation

It looks like a few scripts have been developed many years ago to quickly see how an article's developed (e.g. http://waxy.org/2005/06/wikipedia_histo/ & http://userscripts.org/scripts/show/1418). But they seem abandoned and no longer work for me :( Using the built-in history page and clicking "compare revisions" 20 times is too slow..

IBM has a really promising tool ([5] [6]) but it's not open-source, not integrated into the browser, and seems abandoned as well.

Something like this would be really useful to:

  1. investigate the reliability of a block of text (was it added by some IP and untouched since then?)
  2. check for blocks of text that have accidentally disappeared (e.g. someone's unwarranted deletion doesn't end up being reverted - I've seen this happen)
  3. figure out why an article is poorly structured or somewhat weird..

A project like this can perhaps become a new version of WikiBlame (which is being linked to from the built-in history page) - see [7]).

--eug (talk) 04:26, 2 April 2011 (UTC)

Checkbox beside watchlist entries

It would be something along the lines of email. Have a little checkbox to the left of watchlist entries to mark them as read. Upon refreshing the page, the checked entry would fall off the page (but not off the main watchlist list).

You will see that the devs think that this can be done in Java JavaScript. I use both IE8 and FireFox to edit in the Vector skin, and I already have a short script in my vector.js file (from WOSlinker) to keep the Minoredit box checked on edit pages. – Paine Ellsworth ( CLIMAX )  17:13, 27 March 2011 (UTC)

I think it's a misunderstanding. The JavaScript (not Java) was suggested as a possible implementation for sites with enabled mw:Manual:Page change notification, like Commons or Meta or a dozen of other smaller Wikimedia wikis. Big wikis like English Wikipedia have this DISABLED so there is nothing to implement with JavaScript. The devs tried to enable this in 2008 but failed. — AlexSm 19:19, 27 March 2011 (UTC)
Personally, I use my script user:js/watchlist to show only new changes in my watchlist. With this script I do not refresh my watchlist page but always use "Only new" link to show me only changes I haven't seen before. — AlexSm 19:19, 27 March 2011 (UTC)
Yes, so sorry for using "Java" where "JavaScript" was actually meant (note correction above). However, the implementation of which you speak was just the bolding of new, unvisited edits on the Watchlist. And that was a long discussion in Archive 39, wasn't it? So the JavaScript that was recently suggested at the Enhancement discussion is very different, isn't it? That script is supposed to do as I ask above and has nothing to do with emboldment, per se. I would like to be able to check a box and get an item off the immediate list, or at the very least, have a little checkbox to check so I can see at a glance an edit that I do not want to visit again unless there is a new edit. – Paine Ellsworth ( CLIMAX )  23:22, 27 March 2011 (UTC)
Quoting Comment 8: "...would be an "easy" javascript enhancement to the existing bold/non-bold display". Again: this feature should be implemented on the server. A JavaScript-only implementation could store your chekmarks in a cookie but 4Kb cookie size limit means less than 100 last pages would be remembered. — AlexSm 03:44, 28 March 2011 (UTC)
I see the connection. I would very much like to see this implemented on the server. There can even be a Watchlist preference option...
  • Add checkboxes and the ability to mark entries read
That so in case there are those who don't want the checkboxes. 4Kb would probably be sufficient unless used by editors who watch a good many pages and use the "all" option. Are overflow cookies possible? – Paine Ellsworth ( CLIMAX )  04:21, 28 March 2011 (UTC)

AlexSm, I've been mulling over what you said about the 4Kb cookie size limit. I would be very happy with being able to check off a checkbox (it would have to stay checked off, even if I leave the watchlist and then come back to it) and forget about the item dropping off the list. Just checking off a box would be a ready cue that the item has been read and needs no further attention. The item would be clearly separated out from other items that I do want to come back to (the unchecked boxes). So the js code for making the items drop off the list is probably "overkill". How about a javascript that would add checkboxes to the left of each item on the list that, once they have been checked off, will remain checked off even if I leave the watchlist and then return. To me, that's even better than the unread items being bolded, although, since that's been done for others besides enwiki, maybe that would be easier to js encode than the checkboxes? – Paine Ellsworth ( CLIMAX )  18:13, 13 April 2011 (UTC)

I prefer writing scripts that require the least amount of user input possible. Therefore, for a few years now I've been using a script where every link in my watchlist, by default, has the "diff" text colored red. When I click on the "diff" link, the link turns blue like a normal link. So, all new edits will always immediately jump out at me when I view my watchlist. I find this very effective as there is no cookie limit that is needed to be bypassed, and I can quickly see what needs to be checked when viewing my watchlist. Keep in mind, I use the "Enhanced recent changes" preference, but the script should work fine with the normal watchlist, too, although it may need a line or two of tweaking. Gary King (talk · scripts) 21:39, 13 April 2011 (UTC)
Thank you, Gary. I'm looking for more of a manual ability that I can control, rather than the automatic change that your script provides. I did test your script, but could not get it to work. I first pasted your js into my Vector skin's custom.js file without the "Enhanced recent changes". I already have a short script there that automatically checks the "Minor" box on edit pages, and I placed your js under that script. No go. Then I chose the "Enhanced recent changes" box. Still no go. (Yes, I purge as I go.) Then I moved your js to my All-skins custom.js. No go. Lastly, I unchecked the "Enhanced recent changes", but still no go. What am I doing wrong? – Paine Ellsworth ( CLIMAX )  20:52, 14 April 2011 (UTC)
  • PS. The script I used was your "mark unviewed watchlist items.js".
Yeah that's the right script. It's generally best to use importScript rather than copy the script itself, but either way, I tested the one you have installed and it works for me in Vector, with "Enhanced recent changes (requires JavaScript)" checkmarked. Gary King (talk · scripts) 23:21, 14 April 2011 (UTC)
Well, I changed to "importScript", I even took out the other script and left the imported script all alone in vector.js, but no dice. I have no idea what I'm doing wrong. – Paine Ellsworth ( CLIMAX )  05:31, 15 April 2011 (UTC)
All that the script does is changes the "diff" link to the color red when it hasn't been clicked yet. This will happen for all new items in the watchlist. Are you looking for something more than that? The script itself is very short as you saw, less than 40 lines, so there isn't much room for bugs and whatnot to appear. I use it in my main account in the Monobook skin but as I mentioned above, I also tested it in another account in the Vector skin. Also, the script only works when "Enhanced recent changes is enabled", as mentioned earlier. Otherwise, the script does nothing (for now). I might make it work with the normal watchlist one day, but the script is only used by myself at the moment so there is little reason to do so. Gary King (talk · scripts) 16:49, 15 April 2011 (UTC)
Tried it in FireFox, and the diff does come out red. However, no matter what I do, I cannot get the diffs to turn blue. I click directly on them, I right-click and put it 'em in another tab or window, whatever I do, they don't turn from red to blue. At least we know that it's probably a glitch in my IE8 that keeps your script from working when I use that browser. – Paine Ellsworth ( CLIMAX )  17:31, 19 April 2011 (UTC)
It's very likely IE8 that's causing the problem. If I have time I'll try to get my hands on IE8 and test the script there (I'm not on Windows at the moment so don't have access to it). Gary King (talk · scripts) 17:39, 19 April 2011 (UTC)

Insect pages

I had brought up the idea before, however no one had time to create it, what about now?

Here is my idea: I want to make a javascript that's a tab that will scroll down when pass the cursor over it. Basically it will create a insect page based on the options Family, Genus, and Species like an "easy start". When you click on Family, it will create the page your currently on with User:Bugboy52.40/sandbox1 (used <pre>), Genus: User:Bugboy52.40/sandbox2, Species: User:Bugboy52.40/sandbox4. Thanks in advance, this tool would make my life easier!Bugboy52.4 ¦ =-= 01:10, 28 March 2011 (UTC)

Anybody? Bugboy52.4 ¦ =-= 19:44, 19 April 2011 (UTC)
Soemthing like Wikipedia:WikiProject Scouting/Article incubator? ---— Gadget850 (Ed) talk 00:12, 20 April 2011 (UTC)
No, I'm looking for an actually script put in my monobook.js or similarly appropriate userspace.Bugboy52.4 ¦ =-= 01:38, 20 April 2011 (UTC)
How about this? It pulls the templates directly from the pages that you gave as examples, so be sure to remove the PRE tags. Gary King (talk · scripts) 05:49, 20 April 2011 (UTC)

Should I copy/paste to my own userspace (as User:Bugboy52.4/insect templates.js) or have the script added to my monobook (basically are you going to delelte the page as you don't necessarilly need it) ? Bugboy52.4 ¦ =-= 12:48, 20 April 2011 (UTC)

No I won't delete it so I suggest just using importScript. I'll probably leave it there indefinitely and eventually just forget about it. Gary King (talk · scripts) 16:52, 20 April 2011 (UTC)
Can you show me how to use the import script. And hows the user interface, did you use the tabs like a suggested. Bugboy52.4 ¦ =-= 19:10, 20 April 2011 (UTC)
No I didn't use tabs, they would take up too much space (since I don't know how to make them dropdowns; I've never seen that in Monobook before). I made the script add links to the toolbox on the left-hand column instead, which is available in all skins. Also, you already copied the script to your monobook.js, so you should have been able to see the script. And, importScript is already used in your Monobook; you can do the same with my script by copying importScript('User:Gary King/insect templates.js'); // [[User:Gary King/insect templates.js]] to your monobook.js Gary King (talk · scripts) 00:41, 21 April 2011 (UTC)
I don't see it in my toolbox. Bugboy52.4 ¦ =-= 18:07, 21 April 2011 (UTC)
What browser are you using? If it's IE then that might be the problem. Gary King (talk · scripts) 20:30, 21 April 2011 (UTC)

I use both IE and Firefox, It doesn't work I Firefox. I look in my toolbox when editing, and I do not see anything. Bugboy52.4 ¦ =-= 01:09, 22 April 2011 (UTC)

The links only appear in the toolbox when you are on an edit or preview page. Gary King (talk · scripts) 02:15, 22 April 2011 (UTC)
I looked and all I see are "What links here," "Related changes," "Upload file," and "Special pages" Bugboy52.4 ¦ =-= 11:48, 23 April 2011 (UTC)
I just tested on a new account, imported the script with importScript to it, and it works fine in Monobook. Gary King (talk · scripts) 17:55, 23 April 2011 (UTC)

I don't know, it is still not working, what can be wrong? Bugboy52.4 ¦ =-= 20:15, 25 April 2011 (UTC)

In Firefox, are you getting any JavaScript errors in the Error Console? (Tools -> Error Console) Although, you shouldn't be getting any errors, because I just imported your entire monobook.js into my test account and it works fine. So there's something wrong with your browser, then. I tested in Firefox 4 and the latest Chrome. Gary King (talk · scripts) 20:34, 25 April 2011 (UTC)

Citation formatter

Is there a script to format citation templates? I was trying to look for one but couldn't find anything. Here's what I want it to do:

  • place every parameter in a newline, indented with a space or two
  • add spaces around pipes and equal signs
  • align equal signs according to the longest parameter

Has this been done before? If not, It'd be really neat if someone could cook it up. I'm tired of doing this manually :P --Waldir talk 14:01, 15 May 2011 (UTC)

See Wikipedia:Citation tools for tools, but be aware that edits which only change the wikitext without changing the resultant articles are frowned upon. Further, editors on each article may have established a preferred format for that article. Changing that format without their consensus is to be avoided, as it can be disruptive. Take care. LeadSongDog come howl! 03:59, 16 May 2011 (UTC)
Thanks for the link. And don't worry, I don't usually go out looking for pages to edit based on code formatting needs :) I just like to "neatify" the pages I happen to edit, especially since on long pages having the citation templates formatted like this helps me find the text I want to change much more easily, just like the empty line before headings and other similar source whitespace niceties.
However, none of the tools in that page does what I described above. Do you think you can hack up a quick replacement script for at least the conversion to the vertical format? --Waldir talk 14:39, 16 May 2011 (UTC)
Well, diberri's tool will do it for single citations, though not whole articles. You can preset your spacing preferences to some extent. Citation bot should help make all the entries consistent, though it won't change to a specific wikitext format. I'd suggest that you'd be better off doing one citation at a time anyhow: the embedded wp:diff tool really doesn't handle added/deleted linebreaks very well. Accordingly if you make a habit of changing a bunch of linebreaks in a single edit you'll soon wind up with upset editors.LeadSongDog come howl! 19:23, 16 May 2011 (UTC)
Both tools you mentioned seem to be down, at least for the moment, and didn't seem to do exactly what I needed anyway, so I went ahead and implemented this on a script: User:Waldir/formatcitations.js.
Note: I have been doing this manually for a while, especially when some of the citations are already in this format. I think it makes editing easier, but anyone who disagrees can simply revert the edit. Also, I know about the current limitations of the diff engine, but that's a reason to fix the engine, not to stop doing otherwise useful stuff because it can't process them properly. In any case, I added a non-vertical version that only adds a space before the parameters; that's already a valuable help, compared to having everything packed together as I often see around. --Waldir talk 21:03, 16 May 2011 (UTC)

Script to highlight mispellings

Would it be possible to write a script to highlight misspellings from a list at the article main space? That would make copy editing a lot easier. I use Firefox 4.1, but I am sure many users would want that functionality. Crisco 1492 (talk) 06:10, 7 May 2011 (UTC)

This sounds interesting. Could you elaborate a little more please?un4v41l48l3 (talk) 00:17, 12 May 2011 (UTC)
AWB has a gigantic list of common misspellings which could be useful here. Gary King (talk · scripts) 04:07, 13 May 2011 (UTC)
wikiEd also does some highlighting and spelling correctins (both AWB and wikiEd use RegExTypoFix) ManishEarthTalkStalk 04:43, 13 May 2011 (UTC)
I was thinking of the gigantic list at AWB for corrections, and I was hoping to have just the script (I don't want to use a specialty text editor like WikiEd, and I am worried I might goof if I use AWB). Basically, my thoughts are that the script could compare the article (when run, perhaps, like the DYK script) to the list of commonly misspelled words at AWB or the like to see if there are any misspelling that are on that list; if there are, the user can manually edit to fix the spelling. The problem is that many people (such as myself) browse quickly looking for quick fixes, and do not take the time to read and find spelling mistakes. If there was something that made them readily apparent, it would be very useful. Of the tools I have installed, only Lupin's live spellcheck tool has a spellcheck feature. However, it only checks new edits, not articles that already exist. It is useful, but mainly for counter-vandalism, not proof-reading. Crisco 1492 (talk) 23:22, 20 May 2011 (UTC)

RfA closer

I am sure making an RfA closer would make closing RfA's easier. Baseball Watcher 22:13, 10 May 2011 (UTC)

See User:Enigmaman/SNOW for steps on how to close RfAs. Baseball Watcher 16:52, 31 May 2011 (UTC)

Script for giant tables

So I'm trying to edit a giant table (List of Tecmo Koei games). I created this template by hammering a bunch of smaller lists into one giant one, and I am slowly going through and cleaning it up. I did it quickly so I could do a smoother company page merger, but now the table is huge and it is slow going. What would be neat-o is a script that could tell that I'm looking at a wikitable, and let me edit individual fields WYSIWYG-style, like WP:HOTCAT. Ideally it would let me store up minor edits and save all-at-once, so I'm not saving hundreds of tiny edits. I've not seen a script that does anything like this. Does this sound useful to anyone else, and would anyone feel confident making such a script? It would be an awesome gadget. ▫ JohnnyMrNinja 10:24, 22 June 2011 (UTC)

In most cases, I edit tabled by hand, but I agree with you in this case that you need an editor. I have a nifty script that I found for such cases, its by some people in MIT. Here's the link to the bookmarklet page--open this link and drag the bookmarklet to the bookmark bar. For more info, see this. To use it, simply click the bookmarklet in your bookmarks bar, and it will give you two new buttons in the editbox (I think this only works in the old editing toolbar, not the new one). Highlight any part of the table, and click the first table button, and you shall be able to edit it. Let me know if you can't get it to work. ManishEarthTalkStalk 03:27, 24 June 2011 (UTC)
I've never actually used the editing toolbar so I'm not sure how to get the old one. I've tried switching back to Monobook from Vector, but I don't see the new buttons. Any advice? It sounds like this tool would be a help. ▫ JohnnyMrNinja 03:45, 24 June 2011 (UTC)
There's no need to switch to monobook, you can choose to use that skin whenever you want. All you have to do is append "&useskin=monobook" to the URL of an edit page. For example: here's the page in monobook. Once you've opened the page in monobook, click on the bookmarklet and in a few seconds two buttons should appear (It doesn't matter if the old toolbar is visible or not). ManishEarthTalkStalk 04:47, 4 July 2011 (UTC)

partial link substitution

Dear friends; I need a few line of JavaScript code for my Monobook.js page which should make a partinal manipulation for lincs when a page is loaded. It should be possible to configure this via three strings. Assume the JavaScript should manipulate only the links of url type urlfixstart_A+urltrailer and should give me the possibility to access urls of url type urlfixstart_B+urltrailer. The link name of the manipulated link should be modified to stringC+original_link name. There are two solutions:

  1. only the urlfixstart_B+urltrailer is clickable
  2. bothe the original and the manipulated links are clickable

Usage: One can imagine that someone would like to look only at page history; another would like to have cklikable links both to pages and to associated talk pages.
I appreciate all your efforts and thank you in advance. Best regards
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 07:55, 20 July 2011 (UTC)

I made some attempts at test:user:לערי_ריינהארט/monobook.js based on project:WikiProject_User_scripts/Scripts/Set_Book_Source (user:Lunchboxhero/externISBN.js, user:Lunchboxhero/monobook.js). Permanent link
Next step would be to be able both
to preserve the original link and
to generate a manipulated link

Thanks for any help in advance! 12:42, 22 July 2011 (UTC)

Imagine a link is located at the page name_space:foo/subpage_level_1/subpage_level_2
What JavaScript modification would append "?search={{urlencode:foo|QUERY}})" to the link? Thanks for any help!
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 01:50, 23 July 2011 (UTC)

Script sorting error

Please amend Per discussion here, it appears that Wikipedia:WikiProject_User_scripts/Scripts/Formatter is mis-sorting. Can someone fix this? —Justin (koavf)TCM☯ 16:35, 11 August 2011 (UTC)

I might take a look at which regex did that within some days. It might be useful to add a short note to the edit summary linking to this tool. --The Evil IP address (talk) 15:54, 12 September 2011 (UTC)

Edit filter log interface

I have three separate requests regarding the edit filter log interface:

  1. Add a user's filter log link. Something like: Sole Soul (t|c|f)
  2. Add a history link beside the name of the target page
  3. Color the contributions link in red if the user has zero contributions.

Sole Soul (talk) 02:09, 29 October 2011 (UTC)

Fast Per-User Diff / Contributions Viewer

(Cross-posted to mw:Gadget kitchen/Requests)

The Wikimedia Foundation folks organizing education programs around the world (where students improve Wikipedia articles as an assignment) are looking for better tools for professors to review student contributions.

One of the needs that's come up is a more user-friendly, consolidated view of all changes made by a user -- either for a timeframe, or a given page.

That is:

  • allow student / page-level filtering of a user's contributions
  • render a series of diffs below each other on one page
  • collapse adjacent edits by the same user into a single diff

Only sets of adjacent edits by the same user should be collapsed (User A->User A). If a user made multiple non-adjacent changes (User A->User B->User A), those should be shown separately.

The idea here is to facilitate quick review of relevant changes or changesets made by a student. If we can surface additional information in the process (edit survival, summary information about edits made by others, etc.) which provides professor-understandable context, that would be great, but even a fast diff viewer would be very helpful.

You'd fetch diffs one-by-one via the API (can load them asynchronously onto the same page, allowing the reviewer to start on the latest or earliest edits and keep on going even while things load).

This shouldn't cause extra load versus loading the same diffs manually, but will be a lot nicer for the person reviewing it.

This could make a big difference for getting hundreds more students to work on educational content -- it's a Good Thing. And it's probably useful in and of itself.

Here's a minimal mock-up:

Contributions by user: ________________  

Set filter (optional)
Begin date:    (CALENDAR WIDGET)
End date:      (CALENDAR WIDGET)
Article:       ___________________ 
Sort order:    [ oldest first ^] 

[Show contributions] 

=>

Contribution by <User> to <Article> on <timestamp>

(DIFF)

Contribution by <User> to <Article> on <timestamp>
Note: Three adjacent edits are collapsed

(DIFF)

(SPINNER) Loading contributions

Sorry for the length of this request, but I thought it'd be better to be comprehensive. Any help is appreciated. :-)--Eloquence* 20:30, 14 November 2011 (UTC)

HotInterwiki

Hi, I searched through all of wikis that they use fr:MediaWiki:Gadget-HotInterwiki.js but none of the doesn't work correctly (doesn't edit or delete interwikis). in my opinion its regexs has some problem. would you please repair this useful tool?Reza1615 (talk) 02:15, 30 January 2012 (UTC)

W3C validator

I found this script one of the talk pages:

addOnloadHook(function() {
  var xmlurl = 'http://validator.w3.org/check?uri=' + encodeURIComponent(wgServer + wgScript + '?title=-&curid=' + wgArticleId + '&uselang=' + wgContentLanguage) + '&charset=%28detect+automatically%29&doctype=Inline&group=0';
  addPortletLink ('p-tb',xmlurl,'W3C HTML');
  var cssurl = 'http://jigsaw.w3.org/css-validator/validator?uri=' + encodeURIComponent(wgServer + wgScript + '?title=-&curid=' + wgArticleId + '&uselang=' + wgContentLanguage);
  addPortletLink ('p-tb',cssurl,'W3C CSS 2.1');
});

It almost works. It adds an extra // after the http: ---— Gadget850 (Ed) talk 13:28, 31 January 2012 (UTC)

That code did work before MW 1.18 which changed wgServer from http://en.wikipedia.org to //en.wikipedia.org. The easiest way to fix the script is to replace both instances of wgServer with
'http:' + wgServer
AlexSm 14:47, 31 January 2012 (UTC)
Thanks. Kind of figured the update might have borked this. Any issues with the upcoming 1.19? ---— Gadget850 (Ed) talk 15:18, 31 January 2012 (UTC)
I don't think so. You can test it at http://labs.wikimedia.beta.wmflabs.org/ . — AlexSm 15:31, 31 January 2012 (UTC)
Good idea. ---— Gadget850 (Ed) talk 15:38, 31 January 2012 (UTC)
Works! But now 1.19 has four inherent validation errors. ---— Gadget850 (Ed) talk 15:42, 31 January 2012 (UTC)

Code to remove categories

Could someone help me with this code:

function removecat(autosave){
	// Remove "Main Category" category
	text.value = text.value.replace (/\[\[Category\:Main [Cc]ategory]\]\, "")
		.replace (/\[\[Category\:Main [Cc]ategory|.*]\]\, "")
	// Remove any whitespace from beginning and end
	text.value = $.trim( text.value || "" );
	document.editform.wpSummary.value = 'Removed main category (not needed anymore).';
	document.editform.wpMinoredit.checked = true;
 
if(autosave){ document.editform.submit(); }
});
addPortletLink("p-cactions","javascript:removecat(autosave)","Remove category","ca-delcat");
 
function start()
{
addFunction("removecat", "Remove category", "removecat");
}
addOnloadHook(start);

It is supposed to remove [[Category:Main category]] and [[Category:Main category|*Letter*]] (*Letter* is where a letter of the alphabet would go there) The button won't even show up.
~~Ebe123~~ → report on my contribs. 17:35, 5 February 2012 (UTC)

Your code looks like a plugin to some other script. MediaWiki doesn't have addFunction function. You could use WP:Hotcat to remove your category or I could write you a script to do what you want. — AlexSm 17:14, 6 February 2012 (UTC)
His addFunction comes from here. Gary King (talk · scripts) 19:29, 6 February 2012 (UTC)
Could you write the script (note that the category does not exist on enwiki, but on some other wikis)? ~~Ebe123~~ → report on my contribs. 22:15, 6 February 2012 (UTC)
The following code should work if you're already on the edit page. Note that the code will not work with Vector skin because you wanted the tab to be in "p-cactions" which is monobook-specific. — AlexSm 22:10, 7 February 2012 (UTC)
function removeMainCat(){
  //process
  var txt = $('#wpTextbox1').val();
  txt = txt.replace (/\[\[[Cc]ategory:Main [Cc]ategory *(\|[^\]]*)?\]\]/, '');
  txt = $.trim(txt);
  //save
  $('#wpTextbox1').val(txt);
  $('#wpSummary').val('Removed main category (not needed anymore)');
  $('#wpMinoredit').prop('checked', true);
  $('#wpSave').click();
}

if( /edit|submit/.test( mw.config.get('wgAction') ) )
 $(function(){
    if( ! $('#wpTextbox1').length ) return;
    addPortletLink('p-cactions', 'javascript:removeMainCat()', 'Remove category','ca-delcat');
 })

How to have it to work without opening the edit screen? ~~Ebe123~~ → report on my contribs. 00:38, 8 February 2012 (UTC)

Sorry for the delay. The code below with 2 extra "api" functions should work.
function apiGetPage(title, func){
 $.getJSON( 
  mw.util.wikiScript('api'),
  {action:'query'
  ,format:'json'
  ,prop:'revisions'
  ,rvprop:'content'
  ,titles:title
  },
  function(d){
    var txt
    try{
      d = d.query.pages  
      for( var i in d ) txt = d[i].revisions[0]['*']
    }catch(e){}
    func(txt || null)                
  }
 )
}


function apiSavePage(dat, func){
 $.extend( 
  dat, 
  {action: 'edit'
  ,format: 'json'
  ,token:   mw.user.tokens.get('editToken')
  }
 )
 $.post( 
  mw.util.wikiScript('api'), 
  dat, 
  function(d){
    if ( d && d.edit && d.edit.result && d.edit.result == 'Success' )
      func()
    else   
      func( d.error ? d.error.info : 'unknown error' )
  }
 )
}


                        
function removeMainCatAjax(){
 
 var pgName = mw.config.get('wgPageName')
 var sum = 'Removed main category (not needed anymore)'
 apiGetPage(pgName, received)
 return
 
 function received(txt){
   if( txt == null ) return jsMsg('<p class=error>Failed to receive page text</p>')
   //process
   var txt2 = txt.replace (/\[\[[Cc]ategory:Main [Cc]ategory *(\|[^\]]*)?\]\]/, '');
   txt2 = $.trim(txt2)
   if( txt2 == txt ) return jsMsg('No changes made')
   //save
   apiSavePage(
    {title:   pgName
    ,text:    txt2
    ,summary: sum
    ,minor:   true
    },
    saved
   )
 }

 function saved(err){
    if( err ) jsMsg('<p class=error>Error saving page: ' + err + '</p>')
    else jsMsg('Page saved')
 }
  
}

 

$(function(){
 //some exclusions here ...
 if( /edit|submit/.test( mw.config.get('wgAction') ) ) return
 //add link
 addPortletLink('p-cactions', 'javascript:removeMainCatAjax()', 'Remove category','ca-delcat');
})
AlexSm 21:55, 10 February 2012 (UTC)

Simple vote for all XFD's

I would like a script similar to WP:SIMPLEVOTE but so it can be used in all Deletion discussions. I attempted to do so but it didn't work can someone help me or create one. JayJayTalk to me 00:37, 17 February 2012 (UTC)

Replacer

Hi, me again. Now, I would like a script that replaces {{March 2012 MtC drive}} by {{NowCommons}} while keeping all the parameters. It will also be activated by clicking a URL in the template. ~~Ebe123~~ → report 13:42, 26 February 2012 (UTC)

Search for references/citations

Is there a script that will automatically roam the Internet, search for appropriate links (for references/citations on Wikipedia pages), and insert the appropriate code on the pages? The bot may need to be told what page(s) to scan, and when to run. I plan to use Firefox. Allen (talk) 19:36, 4 April 2012 (UTC)

Personal image blocking script

There's been a huge debate going on for years about a WMF scheme to "rate" images in specific categories, implemented by developers in software. I have proposed a much simpler system which I think can be done now, at least to a crude degree, without anything more than a user script. The full idea is at User:Wnt/Personal image blocking, but all I'm asking from you is a user script which does the following:

a) When the logged-in user browses a Wikipedia page, the script identifies every image on the page that is to be displayed.

b) It searches for an exact match between each image name and the text in a file User:(your name)/image-blacklist.js

c) If it finds a match, display of the image is degraded or disabled to the extent that it doesn't annoy the user.

In order to be relevant, the script should be able to handle a blacklist file containing about 500 images, for example, the depictions of Muhammad on Commons.

Note that I am not suggesting this to condone censorship, but to oppose it - Wikipedia users have the right to use user scripts as they wish, and it is time to demonstrate that the community can accomplish what heavy-handed measures could not. Wnt (talk) 14:32, 17 June 2012 (UTC)

That seems like it would be a bit difficult since an editor would need to see the undesired image in order to add it to the blacklist. I think it would certainly need something so there was a button under a picture of an image that could be pressed to automatically add the image to your blacklist. I think a good alternative for a user who is more concerned about pictures would be to hide all content and give the editor the ability to add it to a white-list. In any case, what ever happened to the Personal Image filter [8]Ryan Vesey Review me! 14:49, 17 June 2012 (UTC)
As explained at the link above, the idea is that most users of the script would choose to transclude or copy from other users' lists. Only the functionality I list above should be needed from the user script. Wnt (talk) 00:49, 18 June 2012 (UTC)
Makes sense, I just think a similar script could be useful as well, depending on how self-censoring someone wants to be. Ryan Vesey Review me! 20:26, 18 June 2012 (UTC)

Stub tagging

How about implementing a stub tagging feature to Twinkle? --weltforce (talk) 16:39, 25 June 2012 (UTC)

Please move your request to a proper place: WT:Twinkle. — AlexSm 17:27, 25 June 2012 (UTC)

Seeing which user made what change in a diff

Is it possible to write a script that when I'm looking at, say, the last ten changes to an article in a diff, I can scroll over the changes and see who made them? Right now, you can see the users on the earliest and latest revision you're looking at, but not the ones in between. Fo example, this would be useful for if I saw that vandalism had been added on Foo, but I didn't know who had added it (say there were quite a lot of IP edits with no edit summaries). I could then click on a diff for the last ten changes, scroll over the vandalistic change in the diff, and (in a popup perhaps) see which editor had vandalized. (Note: this came over from the village pump.) David1217 What I've done 18:26, 4 July 2012 (UTC)

New assesslinks.js

Can someone please make a working version of User:Pyrospirit/metadata/assesslinks.js? Or tell me how to (if it doesn't need a complete rewrite)? I'm not sure when it stopped working but was due to a MediaWiki software change. The creator no longer maintains it. Thank you. Voxii (talk) 00:24, 5 July 2012 (UTC)

Direct link from image to Commons

Hi, could you create user script with function: redirect image on wikipedia directly to Commons, not Wikipedia archive with link to commons. Thanks Dominikmatus (talk) 20:24, 18 June 2012 (UTC)

If you want to be automatically transferred to Commons from local file page then see below. — AlexSm 18:15, 19 June 2012 (UTC)
//automatically trasnfer to Commons from local page
if( wgNamespaceNumber == 6 
 && !wgArticleId // only if local page does not exist
 && document.getElementById('shared-image-desc') )
{
 location.href = '//commons.wikimedia.org/wiki/File:'
   + wgPageName.replace(/^.*?:/,'').replace(/"/g,'&quot;') 
   + '?uselang=' + wgUserLanguage;
}

Thank you. Awesome! Dominikmatus (talk) 20:30, 17 July 2012 (UTC)

There is another code at mw:Snippets/Direct imagelinks to Commons. Helder 20:58, 17 July 2012 (UTC)

Stub tagging (non-Twinkle)

I would like a stub tagging script that would allow you to tag an article as a stub using the stubs listed under Wikipedia:WikiProject Stub sorting/List of stubs. It must be Chrome-compatible. -- Presidentman talk · contribs Random Picture of the Day (Talkback) 21:47, 15 July 2012 (UTC)

The script already exists, but has a big bug. It adds the stub template to the bottom - even after metadata etc. The script can be found at the Simple English Wikipedia here (it is in Simple English Wikipedia's Twinkle, to take it out of the bundle is very easy). --weltforce (talk) 16:06, 7 August 2012 (UTC)

Simple English WP: Adding interwiki links

Hello. Because the simple English Wikipedia is really not as big as the main (less than 30 really active users this month), I posted it here. So this is the current status:

The Simple English Wikipedia's structure (including policies, guidelines etc.) are as almost the same as here in the regular Wikipedia. That includes the article titles. Normally we name articles exactly after the same name here. We create the article right under the same lemma.

That brings up a new point: because the titles are the same, we can easily copy and paste the Interwiki links in the regular English WP's article into a simple English WP's article. So that is where a tool would be very comfortable. The tool should copy the interwiki links, add the [[:en:XXXX]] link and save it into the simple English WP's article. That is what we need.

I hope I've explained it with enough details. If not, please ask here. Thank you very much! --weltforce (talk) 16:30, 7 August 2012 (UTC)

Regarding page content below diffs

I can't find anything like this, so I guess I'll ask. I can think of two different approach regarding page content below diffs that would be useful. One, to only show relevant section of the page content, i.e. only the changed or affected section. Second, to only show page content below diffs when needed, e.g. using a button to show it because sometimes I don't want to see the content, especially on long articles, but sometimes it's necessary. Either one of these would be great. If it's already been made, can someone point me to it? Thank you.--Krystaleen 04:17, 13 August 2012 (UTC)

The 1st option would be a bit tricky to do (I could explain a bit more here...). Showing the whole page is much easier. Check "do not show page content below diffs" in preferences and then put the following code in your common.js.
//diff page: show revision when clicking "revision as of ..." links 
if( /[?&]diff=/.test(document.URL) )
$('#mw-diff-ntitle1 a:first, #mw-diff-otitle1 a:first')
.attr('title', 'Click to show this revision below')
.click(function(e){
  e.preventDefault();
  var lnk = $(this);
  lnk.closest('table.diff')
  .nextAll().remove().end()
  .after(
    '<hr class="diff-hr" />',
    '<h2 class="diff-currentversion-title">' + lnk.text() + '</h2>',
     $('<div />')
     .append('<img src="' + stylepath +'/common/images/spinner.gif" alt="..."  />')
     .load( lnk.attr('href') + '&action=render', function(){ this.scrollIntoView() } )
  )
})
Then on a diff page left-click either left or right link Revision as of ... and the script should load the appropriate revision below the diff table. — AlexSm 19:47, 13 August 2012 (UTC)
Thank you, it works great. Don't worry about the 1st option, this script will do.--Krystaleen 05:12, 14 August 2012 (UTC)

Stub tagging module adds stub template even after metadata

Hi guys, I got I problem here with the stub tagging module here (works with old Twinkle).

The problem is, that the stub template is tagged even after the metadata (Categories, Interwiki etc) to the very bottom of the page. (self.params.normalized stands for the selected stub template)

var code, content;
	switch( self.params.normalized ) {
		default:
			code = "\{\{" +  self.params.normalized+ "\}\}";
			content = code + "\n" + text;
			break;
		}

The problem relies on content = text + "\n" + code;.

Is it possible to sort the metadata after the stub template? Thanks in advance! --weltforce (talk) 23:53, 17 August 2012 (UTC)

MediaWiki CodeMirror Syntax Highlighting

Hi, I recently stumpled upon http://mwcodemirror.sourceforge.net/ by the inactive User:JovanCormac. Can you create a Gadget from the existing JavaScript and CSS code? I don't know how to do it or where to start. After someone got it working inside MediaWiki I would like to improve the syntax highlighting feature as it does not highlight references and templates at the moment. Matthias M. (talk) 09:35, 5 October 2012 (UTC)

Nevermind. This script is too slow when stress testing it with the Barrack Obama article. I will try to translate no:Hjelp:AceWikiEditor. Matthias M. (talk) 11:33, 5 October 2012 (UTC)

Article evaluation script

I'd love to have a script for rating articles according to the metric used to study quality improvement in articles worked on by students. There are a lot more interesting uses this metric could be put to, to measure the quality improvement effects of all kinds of outreach and collaboration efforts, from collaborations of the month, to edit-a-thons, to just getting a baseline for the quality of content contributed by newcomers or measuring the rate at which article quality overall is improving. But it's tedious for reviewers to record their ratings manually. Here's what a rating script should do:

  • Provide a form where reviewers can input scores for each category of the metric directly from the article page (whether the current version, or a specific previous version).
  • Record on-wiki in a standard format (preferably one that's easily machine-readable) for each article review:
    • The title and revision id of the article reviewed
    • The individual scores
    • The username of the reivewer
    • The time of the review submission
  • (Optionally) If the current revision is the one being rated, translate the scores into the standard Stub/Start/C/B ratings and add that rating to the article talk page, if it doesn't have a rating already.

--Sage Ross (WMF) (talk) 15:40, 12 October 2012 (UTC)

Need a script to add persondata

Ubuntu (12.04) user. Can't use AWB, Persondata matic, can someone create a browser based script to add persondata? --Tito Dutta (talk) 19:01, 16 October 2012 (UTC)

Edit filter log interface

In the edit filter log interface:

  1. Add a user's filter log link. Something like: Sole Soul (t|c|f)
  2. Add a history link beside the name of the target page
  3. Color the contributions link in red if the user has zero contributions.

Sole Soul (talk) 16:20, 9 September 2012 (UTC)

I have one at User:Jfd34/filterlog.js but I am not sure if it works, please make any necessary fixes if possible. jfd34 (talk) 15:18, 17 November 2012 (UTC)

RFPP Admin templater script

It would be great to have something to speed up work at WP:RFPP. Something that would appear next to each of the headings / articles on the page with an option to add a template to that section. And then after selecting the type of template (i.e. semi, full, e.t.c) it would then ask you for the time to add as a parameter before posting to the section. I imagine it shouldnt be that hard as I have seen similar useful scripts for AFD and other such places. Intended for use on Chrome with monobook ·Add§hore· Talk To Me! 16:08, 16 January 2013 (UTC)

See User:Addshore/doRFPP.js for a start but I have no idea how to add this in line with each header on the page. This just adds tabs to the edit window, sure it does save a bit of time but not as much as having them next to section headers! ·Add§hore· Talk To Me! 16:42, 18 January 2013 (UTC)

script to hide the "feet" part of convert template while reading an article

Hello. I am looking for a script that would hide the "feet" part of measures displayed by the convert template. I couldn't find it as a gadget in the preferences page, and couldn't find it either there, but I still hope it exists somewhere. Regards, Freewol (talk) 11:02, 19 February 2013 (UTC)

There are a lot of different outputs of {{convert}} and it emits nothing that marks itself as coming from the template, so this job is quite complex as it requires pattern matching against the entire page and replacing text as opposed to just toggling the display style of an element. It would also require some kind of check to see if the feet measurement was paired with a metric measurement before it removed that content. I think what you're asking for is very possible if the infrastructure was in place to support it, but as is the scope of work is probably too large for a volunteer to take on for a user script. If the template wrapped the values in spans with appropriate classes, it would be a simple thing to hide all instances based on user preference. This would require a change to {{convert}} and other templates like it that output two values and then a simple gadget or user preference could handle the display. It's a cool idea at any rate, and is at least possible if enough people wanted it. — Bility (talk) 17:23, 5 April 2013 (UTC)

Listas parram adding for Biography Wikiproject tag

A large number of entries for the listas param could be constructed from the page name.

Much appreciated if a user script could be written to do this. Sfan00 IMG (talk) 15:13, 5 April 2013 (UTC)

There are a lot of different forms an article title can take. Consider these articles:
  • Confucius: No spaces found, don't put anything in listas.
  • Albert Camus: A space is found, the order is swapped and a comma inserted to produce "Camus, Albert".
  • Arthur Conan Doyle: More logic, this time the string should be split on the second space.
  • Brian De Palma: Same as above, except this time we want to split on the first space. Maybe a list of middle words like "de", "von", etc. could inform this logic.
  • Georg Wilhelm Friedrich Hegel: More words, need to split on the third space.
  • Augustine of Hippo: New logic is required, perhaps looking for the "[text] of [text]" pattern.
  • Frederick William I of Prussia: Different pattern requires expanding the logic to include spaces in the text on either side of "of". Also, currently sorted as "Frederick William 01 Of Prussia", would that require attempting to find roman numerals and convert them to numbers?
  • Alexandra Feodorovna (Alix of Hesse): More logic, perhaps to remove anything in parentheses altogether?
  • List of major biblical figures: Maybe don't include a listas for articles starting with "List of".
  • E. T. A. Hoffmann: Normally initials would be counted as one word and sorted correctly, but this one has spaces between each letter. Maybe check for single letters or single letters followed by a period?
  • Casimir II the Just: Don't know (currently sorted as "Casimir Ii Of Poland").
  • Boleslaus I, Duke of Bohemia: I don't think a script can determine this (it is currently being sorted as "Boleslaus I Of Bohemia").
  • Frankie Goes to Hollywood: Probably shouldn't get a listas, but no way to determine that.
So these were examples found in the first 100 transclusions of {{WikiProject Biography}}, just to get an idea of what would go into an accurate listas generator. From the above I would suggest including these rules:
  1. Look for spaces, if none are found don't input a listas, otherwise
  2. Look for "List of" in the beginning and don't input a listas if found, otherwise
  3. Look for and remove anything in parentheses, then
  4. Look for a "[text] of [text]" pattern and use the only the text to the left of the "of", then
  5. Use a list of nobiliary particles (e.g. "von", "de", "zu", etc.) to split a name on the space before the particle, or if no particles are found
  6. Split a name on the last space.
I think this will hit a large portion of the names, and for corner cases, yes it will input an incorrect sort, but then you do what you're doing now which is make up your own manually. Thoughts? Also, how do you normally add this template? Copy/paste from somewhere? Some other script? — Bility (talk) 18:11, 5 April 2013 (UTC)
The intent was that this generated the intended listas= portion + a name which could be edited in the relevant point in the tmeplate used. The user would still have to save the page manually, so that a second check it was correct could be made.Sfan00 IMG (talk) 20:41, 5 April 2013 (UTC)
Right, what I'm asking is would the script input the entire template, or would it fill in the listas parameter of the template that is already in the edit box? If you're currently copy/pasting a blank template in or manually typing it out, then the script could insert the whole thing for you while it generates the listas, but if you already have an "insert template" button or something the new script would either need to be integrated into that one or fired afterward. Either way I think it's doable with the logic above. — Bility (talk) 22:21, 5 April 2013 (UTC)
The latter, the template concerned is already on the pages concerned. Sfan00 IMG (talk) 07:42, 6 April 2013 (UTC)
Okay, it has its little oddities, but here's the script. Just put this in your skin javascript or common.js:
importScript('User:Bility/biographyListasGenerator.js');
It pretty much follows the rules from above, with the exception of lists, where it uses whatever comes after the "List of" part. Articles with commas and nobiliary particles get pretty wacky due to the rules, so you'll still have to eyeball what it puts in to make sure it's correct. When you import the script it puts a little button above the edit box when you're editing an article talk page (or it will be at the end of the buttons if you have the toolbar enabled). It looks like this:  . You just click it and it inserts the listas. It will also remove whatever is in there already. Let me know if there are any problems. Cheers, — Bility (talk) 11:54, 7 April 2013 (UTC)
I added it and it didn't seemingly respond by doing anything :( . Sfan00 IMG (talk) 15:05, 8 April 2013 (UTC)
Can you see the button above the edit text box? Are you in edit mode on an article talk page? Is there a WikiProject Biography template in the code with a |listas= parameter? — Bility (talk) 17:29, 8 April 2013 (UTC)
I see the edit box but nothing happened when I click it. Sfan00 IMG (talk) 21:38, 8 April 2013 (UTC)
N.B This one wasn't handled - http://en.wikipedia.org/w/index.php?title=Talk%3ABilly_Rogers_%28rugby_league%29&diff=549400202&oldid=548287530 so did it manually.. Tweak should suggest itself. Sfan00 IMG (talk) 21:40, 8 April 2013 (UTC)
So does that mean you got the script to work? I added WPBiography to what the script is looking for, so it should create the listas for that article (it suggested "Rogers, Billy" when I tested it). Let me know if there are any other redirect names for the template. Cheers, — Bility (talk) 22:17, 8 April 2013 (UTC)
I Got it working :) Sfan00 IMG (talk) 07:31, 9 April 2013 (UTC)
Redirects here - https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:WikiProject_Biography&hidelinks=1&hidetrans=1 Sfan00 IMG (talk) 07:34, 9 April 2013 (UTC)
Added. — Bility (talk) 15:33, 9 April 2013 (UTC)
Thanks, a further tweak would be to make this script so that for most articles it could be run from AWB or a bot Sfan00 IMG (talk) 17:50, 9 April 2013 (UTC)

Template version

So I made a Lua module that does this, it could go on the WikiProject Biography doc page so people could copy/paste it into talk pages and let it automatically create the input for the |listas= parameter. Right now it's a sandbox version I'm working on accepts text and returns the attempt to create a sortable name, so it would need to be used with {{PAGENAME}}, although I'm pretty sure the template could get the page title automatically. The module is at Module:SortName and is used like this: {{subst:#invoke:SortName|sortname}}. You can see on the testcases talk page what it produces with different inputs.

So the difference between this and the script is anyone can use the template without having to modify their user .js pages, but it would require either a saved edit or show previewing outside the template to see what it will produce. So people just copy/pasting from the template doc page would have to know to go back in and make sure it put something reasonable in |listas=. — Bility (talk) 00:03, 10 April 2013 (UTC)

A script to pull data on every item in a category

Problem: I have created a large number of people stubs and would like to recruit people via social media to expand them. My idea is to have a user script that only runs on Category pages (I.e. Category:New Zealand academics) and displays un-coming topical information derived from in listed individuals, which can then be used in tweets, etc. Proposed solution: Use javscript to ping wikidata for each person, getting their dates of birth and death and populating a sortable wikitable of these. The table would go at the bottom of the page, so that any flickering would be off the screen. Questions: Is there already doing this kind of thing? Are there examples of the right way to ping wikidata? Are there cautionary tales of people trying to recruit new editors via social media I can learn from? I have a little javascript experience and other experience I can adapt. Stuartyeates (talk) 03:42, 27 June 2013 (UTC)

Removing taglines from source titles

Sorry if I've missed an obvious answer.

In the pro wrestling articles here, James Caldwell of PWTorch.com's event results are very often cited, and the article title is always in the style of "WWE Raw results 3/14: Complete "virtual time" coverage of live Raw — Cena vs. Del Rio main event, U.S. Title match, two surprise returns, Snooki".

Including the tagline just clutters things up for editors, especially when it appears more than once per paragraph.

Can a bot or script help by scanning for keywords (Caldwell, virtual time coverage, WWE) and automatically remove everything after the colon and up to the "|" divider in a citeurl tag?

If so, that'd save a lot of time (or get it done, period).

Thanks. InedibleHulk (talk) 20:35, 25 June 2013 (UTC)

This sounds like a job for WP:AWB, the potential for mistakes are large so it would need to be a user monitored task.--User:Salix alba (talk): 07:16, 18 September 2013 (UTC)

Editor for TemplateData ?

  Resolved

Hi,

On frwiki, a user made a script which allows creating/updating the <templatedata>...</templatedata> visually and very easily. Anyone willing to make the same for enwiki ? --NicoV (Talk on frwiki) 16:38, 16 July 2013 (UTC)

I finally converted it myself. It's available at User:NicoV/TemplateDataEditor.js. --NicoV (Talk on frwiki) 22:59, 19 July 2013 (UTC)

Switch to give access to the editing preference that lets VisualEditor be turned off.

How hard would this be? It's apparently merely hidden. Adam Cuerden (talk) 04:41, 22 July 2013 (UTC)

javascript

i want to be able to download social networks like whatsapp----

Navigation template

Can someone make a script which put this navigation template to end of the page? --Samoasambia (talk) 18:04, 23 September 2013 (UTC)