![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 4 | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 |
I hope this doesn't seem bitey, but it would be so helpful to have a script that could let me answer/close a post with a kindly-worded "Please read the FAQ" message on articles that are getting huge numbers of redundant posts for days and weeks on end after a major incident. It's a major time-waster for editors. —valereee ( talk) 18:42, 11 November 2020 (UTC)
window.replyLinkPreloadPingTpl = "Please, READ [[Wikipedia:FAQ]]";
.
AXONOV
(talk)
⚑
09:46, 14 May 2021 (UTC)
The idea would be to identify a list common sources in the publication= field of a news citation, and use the script to wikilink them to the relevant page.
For example, Reuters to Reuters or New York Times to The New York Times. — Preceding unsigned comment added by RoanokeVirginia ( talk • contribs) 10:28, 7 June 2021 (UTC)
|publication=
parameter in cs1|2. When Reuters or AP or AFP or other news agencies are directly referenced, their name goes in |work=
. When The New York Times or San Francisco Chronicle or other news papers are referenced, their names (without italic markup) go in |newspaper=
(or optionally, |work=
). When citing a news source that is using work from a news agency (Reuters, AP, AFP, etc), the agency name goes in |agency=
and the news source name goes in the appropriate 'work' parameter. None of these types of names belong in |publisher=
.common sources, like the two you mentioned, do not need to be wikilinked to establish their reliability.
A script for changing external links to internal links if applicable. ―
Qwerfjkl |
𝕋𝔸𝕃𝕂 (please use {{
reply to|Qwerfjkl}}
on reply)
20:32, 23 June 2021 (UTC)
It would be a timesaver for me to have a script that would show me previous "month year" sections heads on user talks, which is commonly how warnings are sectioned, maybe allowing me to limit to just the past year or two. I usually scan the section heads in the history, but I'm sure I miss things, and others probably do too: Special:Permalink/1030562622#User:Ulises142 - When a user receives three final warnings, and yet continues vandalizing. It would be good if this caught section heads that were later changed. —valereee ( talk) 18:31, 26 June 2021 (UTC)
I want a script that adds FURs of the user's choice, similar to WP:FURME. -- Kailash29792 (talk) 17:44, 13 February 2021 (UTC)
I'd like a script that allows a user to select multiple unpatrolled pages at Special:NewPages and mark them as patrolled, without leaving the page. This would be useful in patrolling, for example, talk namespaces, where the vast majority of creations are good and can be quickly patrolled without going to the page itself. Elli ( talk | contribs) 20:01, 6 July 2021 (UTC)
Copied from
User talk:DannyS712#Script requests
Please can you make these scripts (ordered by prority):
Thanks! ― Qwerfjkl talk 18:45, 11 July 2021 (UTC)
Is there, or could there be, a script that puts thanks links on talk pages? Evad37's excellent TimestampDiffs already puts the diff link on each comment date; I'd imagine picking the oldid from that to put on a ( thanks) link would be a breeze, no? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 ( talk) 06:03, 12 May 2021 (UTC)
Hi! I'll preface this and say my coding knowledge is very basic. I did make an effort to complete this myself, but I'm better at forking existing scripts than writing a new one. Some of this is quite personal to me, but easy enough to make this more useful to more editors. This would only be of help to serial nominators of GANs though! Here's what I've been looking to get:
When attempting to nominate an article for WP:GAN, you need to {{subst:GAN|subtopic=X}} on talk page. I'd like to add this, plus some additional actions in one go.
For future enhancement, most Wikiprojects have a nominations pane, it'd be nice for this to automatically add to these if possible (probably needs some sort of case-by-case addition.
In addition, something that closes GANs might also be good. To do:
I think this is quite an ask, but if anyone wants to help me work on this, let me know. I'm happy to give some more specific steps if wanted :). Best Wishes, Lee Vilenski ( talk • contribs) 09:56, 23 November 2020 (UTC)
* [[Article name]]
to the page, leaving it upon the user to ensure that such an addition would fit into the formatting of the page.did make an effort to complete this myselfis that code available so that i can take parts from it? – SD0001 ( talk) 18:15, 23 November 2020 (UTC)
Hi SD0001 - I've been using your script a lot, it's been super helpful. I wonder if you'd be interested in something for closing GANs. Here's the list that I would want it to do:
Currently, I think this is the most strenuous part of the review process, as you generally have to edit at least three pages at the bare minimum just to close the GAN. When I close, I currently use discussion closer and rater to do the work, but I think this could be a lot more convenient. Is this something we could automate? There's a lot of people who do hundreds of reviews, and this might just make it a little bit more streamlined. Best Wishes, Lee Vilenski ( talk • contribs) 19:39, 23 July 2021 (UTC)
So i want to change my background colors from the basic grey and white and due to my limited knowledge of javascript, i cannot figure out any of that stuff. I want a script that adds a button to the menu (pop-down on Timeless) and allows you to change 4 of the colors, 1 for The top bar. 1 for the secondary background (the grey portion), 1 for the main background (the thing where the text stands) and 1 for the text itself. MoonlightVector Talk page 17:47, 6 October 2021 (UTC)
I'd like a user script that turns contractions into proper phrasing per MOS:CONTRACTION. Should be easy to code. WIKINIGHTS talk 16:11, 9 August 2021 (UTC)
Hi all. Hope that you're well during these crazy times. I know this is technically a bot request but owing to the use of Javascript User:GreenC pointed me here. I was wondering if someone could take over a JavaScript bot request from a user who's now retired? ( Wikipedia:Bots/Requests for approval/AWMBot 2)
Short summary of the problem is - old peer reviews are linked using CURRENTPAGENAME/ArchiveX. That means though when a page gets renamed, the link is lost. We have now about 680 broken reviews in this manner and a user created an almost complete javascript bot to fix it (code available via the bot request). There was only one slight problem which was that sometimes duplicate parameters got inserted into the fixed up peer review template. If you had time I'd be very very grateful to have this fixed up. Once this is done I plan to insert the peer review links into all the outstanding old peer reviews but can't do this until the broken ones are fixed up.
Fingers crossed! Tom (LT) ( talk) 07:16, 19 August 2021 (UTC)
I just create the
Go portal. In it, I created a box showing the top international title holders. The code for that is: {{#lst:List of top title holders in Go|titleholders}}
. To make this work I added a section "titleholders" to part of the article
List of top title holders in Go. This seems to work fine. Now, what I'd like to do, and I can't seem to figure out how to make it work, is to rotate through the various lists of title holders in the article
List of top title holders in Go. For example, the next list in the article is for
"Continental" title holders. I know how to display that list with appropriate code, i.e., {{#lst:List of top title holders in Go|Continental titleholders}}
with an appropriate section label for that list. The problem is how to make a template or other script in the portal that will allow switching form one list to the next. It would be a bit like a slide show, as with {{
Transclude linked excerpts as random slideshow}} except I need it to be clear when you select one list or another. Ideally, I would create a horizontal list of links for "International", "Continental", "China", etc., and the reader could click on the type and the list would automatically update. Alternatively, there could be a left/right arrow above the list and the reader could simply click to advance through each list with an appropriate label appearing above the list. I would appreciate any help understanding how this can be done.
Coastside (
talk)
06:39, 9 October 2021 (UTC)
I'd like to know if there is a tool (js, I guess) that if turned on, will highlight specific characters in an article. At this point I'm looking at articles that my search has said have a latin alphabet character next to a greek one, and I'd like to easily see in the article where that is. So for example, if both ΦΒΚ and ΦBK are in an article, I'd like to have all of the first one highlighted and only the Phi highlighted in the second (the first has Beta and Kappa, the second has B and K). I'd like it to be a little flexible, since I'd like to be able to add the accented greek letters as well as the Lunate Sigma (the version of Sigma that looks like a C. Naraht ( talk) 15:10, 10 October 2021 (UTC)
I would like to add {{ WikiProject Go}} to the talk pages of all subcategories of category Go (game). Needless to say, I would only want to add it to the talk page if it isn't already added. Is there a bot or script that can do this? Coastside ( talk) 06:25, 11 October 2021 (UTC)
Hey there! I'm pretty sure this is not the best place for this request so I do apologize beforehand. In SqWiki we have this extra CS1 error tracking category for citations missing the language parameter. (I'm an admin there.) It has around 11.500 entries. It would be good if we could decrease that number (solve that error) in any way possible. We don't have an active technical community in SqWiki, me being the only user that deals with that aspect. In this situations, I thought asking for help here. Is there any kind of bot that could help me with this? Or maybe even user scripts that could semi-automatize the process of finding the language of the citation and inserting it in the templates. Of course, I'm mostly talking about citations coming from webpages because I don't believe bots and scripts could be much of help in book citations and other of the sort. Any idea that helps decrease that number even partially is much appreciated. - Klein Muçi ( talk) 21:24, 4 September 2021 (UTC)
action=languagesearch API
, which returns language codes based on the characters used in the input string, can be used to detect the language, but i have no idea how can we get a string from those citations and pass it to search
parameter.
Jeeputer (
talk)
13:14, 25 September 2021 (UTC)
Hello! I was trying to find a way to make participation in voting easier for my homewiki (SqWiki) by introducing some kind of graphical user interface for adding templates like pro/against/neutral (preferably with a text box that asks for a rationale behind that vote) in "elections"/discussions. I asked around and found this script and my intention was to localize it into a gadget but unfortunately the script makes use of hard-coded EnWiki pages which made it hard for me to modify it. I tried contacting the creator for help but he wasn't available so... Is there any other script/gadget which is "more malleable" that I can use for my case? Maybe someone with extra free time can help me create one from scratch? - Klein Muçi ( talk) 20:47, 11 October 2021 (UTC)
Some ideas copied from User:Enterprisey/Dashboard. If you make one of these scripts, strike the entry and add a link to your script.
GUYWAN ( t · c ) 19:33, 5 December 2019 (UTC)
Hey, Hope you are doing well. Since small wiki's don't have enough contributors to help in Featured picture section, I was wondering if someone can come up with an idea to get En.wikis POTD featured on these wiki's. Actually this was a suggestion from another user at Ks.wiki. Thankyou signed, Iflaq (talk) 17:21, 26 October 2021 (UTC)
Often while reverting people's vandalism I see accounts that have done enough to be reported to WP:AIV, which I do often. The process currently involves copying their username, opening WP:AIV, editing the "User reported" section, pasting their username at the bottom, then copying the template, then pasting it at the bottom, then cutting the username from where I put it, then putting it where the default name was. This is very annoying. I find it hard to believe that no one else has had this problem and made this script, I just cannot find one in the list with a name or description that says it might fix this. I'm looking for a script with a button on the page or something where I can just put their username / ip and a reason without fussing with copying the template to the bottom as well. Thanks, ― Levi_OP Talk 14:15, 10 January 2022 (UTC)
I would usually write my own scripts, but this one is a little more not straightforward so I thought I'd ask for help with it and it can be a learning experience :)
Anyway, let me describe my issue. When I'm editing wikipedia, I often want to open other pages to read them, get info from them, clarify a rule, etc. The easiest way to do this is to go to the search in the top right and type the page I want. For example, if I wanted to grab a quick deletion template, I would type wp:csd, and then down arrow, then the enter key. The issue with this is that the link will open on the current page, and there is no way to open it in a new tab. I currently take my hand off of the keyboard off of the keyboard and onto the mouse and then press the command key, which when clicking on pages opens them in a new tab. This is annoying for me as I use computers mainly with key combos and mostly using the keyboard.
With this in mind, I would like to make a script to fix this. My thoughts were modifying the search bar to open in a new tab when I have the command key held down (on mac; dunno what it is on windows). My first thoughts would be to just have a listener for onkeydown and onkeyup in the script and then setting target="_blank"
when that's the case. I'm not familiar with the mediawiki javascript api in wikipedia so I don't know if this is the best way to to do things, or if using keydown listeners are something you can do in wikipedia scripts or if there is some more official api that you can use. Thanks a lot, ―
Levi_OP
Talk
17:08, 7 January 2022 (UTC)
.mw-searchSuggest-link
appears to be the class you need to add target="_blank"
to. Maybe do a DOMNodeInserted
listener at first, just to get everything working. (This listener would add _blank
all the time, even without a keypress.) Then once you confirm that it works, you can add the complexity of a keypress listener, whether to only add _blank
while pressing, whether to remove _blank
once keypress is done, etc. –
Novem Linguae (
talk)
18:27, 7 January 2022 (UTC)
$(document.body).on('keydown', '#searchInput', function (e) {
if ((e.ctrlKey || e.metaKey) && e.which === 13) {
$('#searchform').attr('target', '_blank');
}
}).on('blur', '#searchform', function () {
this.removeAttribute('target');
});
$(document.body).on('keydown', '#searchInput', function (e) {
if (e.metaKey) {
$('#searchform').attr('target', '_blank');
if (e.which === 13) {
$("#searchButton").click()
}
}
}).on('keyup', '#searchform', function (e) {
if (!e.metaKey) {
this.removeAttribute('target');
}
});
hello, can someone make a script that removes the languages on the sidebar? i only speak english, and it makes me irritated whenever there is a small page with a lot of languages, cause it makes the footer not really the footer anymore. look at this page, Wikipedia:General disclaimer, and scroll down and you will see what i mean. thanks! Desktop. INI 17:42, 11 January 2022 (UTC)
#p-lang {
display: none;
}
Using {{ coords}} is a painful template, especially when you are trying to add coordinates en masse. A script that allows you to quickly edit and add coordinates would be greatly useful. — Berrely • Talk∕ Contribs 17:28, 28 June 2021 (UTC)
Hi. I need a script for converting unnecessary "article#section" links and piped links to available redirects per WP:NOTBROKEN and MOS:SECTLINK. A script capable of finding correct/relevant redirects. For example, if there is a "article #Section XYZ" link and there is a "redirect XYZ" to that specific section, then the script should be able to find and suggest the available redirect(s). Same for the piped links. Mann Mann ( talk) 21:00, 12 January 2022 (UTC)
Hello, I wasn't sure if this was the proper place to request this kind of stuff but the community portal says "specialized script that doesn't exist yet", and I think it falls under that line. I say that because it doesn't do anything "beneficial" to make something cool for my user talk page. I had a couple of ideas for funny "notices" to put at the top of my talk page, but putting too many would make things cluttered. Instead, I came up with the idea for a script that cycles through a large selection of notices and other things; it chooses one from a list (I'm using my sandbox) of these templates and puts uses it on the talk page. Whenever the page is refreshed or purged, a new one from that list is put there (in the same spot). Is that possible? Or is this some sort of thing that can be done without using a script? Panini! 🥪 14:52, 13 January 2022 (UTC)
Can a veteran user script creator take a look at my request at VP:VPT and give its opinion on it? :) - Klein Muçi ( talk) 03:56, 30 January 2022 (UTC)
Hi, I need a script to toggle on and off the "Temporarily disable the visual editor while it is in beta" option in Editing section of prefs. A shortcut toggle button at the top of page will be preferable as I might have to switch many times. It will be of immense help if someone can build a script to achieve that. Also, if someone does build it, they may want to do it such that any user is able to select their 5-10 most used prefs and create a shortcut list without having to go deep into preferences page. Thanks! --- CX Zoom(he/him) ( let's talk| contribs) 20:46, 14 February 2022 (UTC)
&veaction=edit
to the edit page link might be helpful. –
Jonesey95 (
talk)
20:56, 14 February 2022 (UTC)I would like to be able to save my changes without having to publish changes on /info/en/?search=Draft:Alyssa_Ruffin. — Preceding unsigned comment added by CharlesRuffin1 ( talk • contribs) 04:33, 28 February 2022 (UTC)
( ←) I freaking love The Chronicles of Amber. Much better than Game of Thrones. But no, my Random is just.. there was a Ling.Nut, a Ling.Nut2, a Ling.Nut3, then a Lingzhi, a Lingzhi2, and... the numbers became overwhelming... Thanks!! ♦ Lingzhi.Random ( talk) 23:00, 24 September 2021 (UTC)
Hi, WP:WikiBreak Enforcer is a great script for those who wish to take some time off of Wikipedia to invest in real life responsibilities. But I don't want to take some days off of Wikipedia, but want to force my WP activity into a singular 1 hour slot (say, 10pm to 11pm) each day, so that I can utilise the rest of the time to prepare for my upcoming very important exams. Is it possible to create such a script? Thanks! --- CX Zoom(he/him) ( let's talk| contribs) 07:46, 10 March 2022 (UTC)
Hello! In SqWiki we have mw:Extension:FlaggedRevs, activated for all pages, similar to DeWiki and some other wikis. With that, reviewers get an extra WP:Rollback button in Special:RecentChanges which they can use to quickly revert vandalism. Can a user script be made that it also adds an accept button beside it that can be used to quickly accept good changes? It would help a lot in keeping our backlog lower. - Klein Muçi ( talk) 13:26, 22 March 2022 (UTC)
mw.loader.load('//en.wikipedia.org/?title=User:Nardog/ButtonizeRollback.css&action=raw&ctype=text/css', 'text/css');
to your .js. Using @import
is slow.review
and rollback
, respectively, for the scripts, but you can also specify something that only admins have, like delete
, to deter non-admins from enabling it, for example. You can also make enabling the gadget impossible without also loading Navigation popups by adding ext.gadget.Navigation_popups
to the dependencies for the gadget.<li>
, press F2 and copy.) It should look like this: <li><a href="/wiki/Fshatrat_e_Shqip%C3%ABris%C3%AB" title="Fshatrat e Shqipërisë">Fshatrat e Shqipërisë</a> (<a href="/?title=Fshatrat_e_Shqip%C3%ABris%C3%AB&action=history" title="Fshatrat e Shqipërisë">versione</a>) <span dir="ltr" class="mw-plusminus-pos mw-diff-bytes" title="16.150 bajtë pas ndryshimit">+42</span> (<a href="/?title=Fshatrat_e_Shqip%C3%ABris%C3%AB&diff=cur&oldid=2133180" title="Fshatrat e Shqipërisë">shqyrtim</a>) <i>(590 ditë)</i><span class="quickrollback"><a href="#" role="button" title="Restore penultimate editor's revision">rollback</a></span><span class="quickaccept"><a href="#" role="button" title="Accept this pending revision">accept</a></span></li>
<li><a href="/wiki/Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore" title="">Shqipëria në Luftën e Dytë Botërore</a> (<a href="/?title=Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore&action=history" title="Shqipëria në Luftën e Dytë Botërore">versione</a>) <span dir="ltr" class="mw-plusminus-pos mw-diff-bytes" title="55.931 bajtë pas ndryshimit">+41</span>‎ (<a href="/?title=Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore&diff=cur&oldid=2403171" title="">shqyrtim</a>) <i>(38 orë)</i> (2 përdorues aktivë duke e mbikëqyrur)<span class="quickrollback"><a href="#" role="button" title="Restore penultimate editor's revision">rollback</a></span><span class="quickaccept"><a href="#" role="button" title="Accept this pending revision">accept</a></span></li>
mw.messages.set({
'quickrollback-custom-summary': 'Reverted edits by [[Special:Contributions/$1|$1]] ([[User talk:$1|talk]]): $2 ([[INSERT YOUR LINK HERE]])',
'quickrollback-custom-summary-anon': 'Reverted edits by [[Special:Contributions/$1|$1]]: $2 ([[INSERT YOUR LINK HERE]])'
});
quickrollback
) and put mw.messages.set('quickrollback-tag', 'quickrollback');
wherever the script is loaded, and it will (hopefully) add the tag to every rollback it performs. This should work even with the default summary.
Nardog (
talk)
23:27, 3 April 2022 (UTC)QuickRollback-tag
would have never worked, although it looks like you tried the lowercase version so it doesn't seem to be the only problem.When we go to a file page > click on the image > the image path opens on the browser > we prepend view-source:
to the URL > the source code of the image appears. It is particularly useful when I'm trying to see the code of a svg. It would be helpful if there were a button on every file page, that does all the above steps and takes us directly to that file's source code page. Thanks! —
CX Zoom[he/him] (
let's talk •
C •
L)
14:44, 19 April 2022 (UTC)
go to a file page > click on the image > the image path opens on the browser >right-click > View page source doesn't work for you? Here are a bunch of svg files to try it on.
@ CX Zoom: Here's the code; feel free to copy and paste to wherever you prefer (CC0 if that matters):
$(function() {
$($('.fileInfo')[0]).after(
$('<span>').attr('id', 'viewsvgsource').html(
$('<a>').attr('href', 'view-source:' +
$($('#file a')[0]).attr('href')
).text('view SVG source')
).prepend(' (').append(')')[0
);
});
NguoiDungKhongDinhDanh 00:34, 20 April 2022 (UTC)
@
CX Zoom: I have just learned that view-source:
link
cannot be linked using HTML or even location.assign
. I guess we can't do anything then.
NguoiDungKhongDinhDanh
19:21, 20 April 2022 (UTC)
mw.loader.load('https://en.wikipedia.org/?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript');
in
your common.js file on the Commons (or a skin specific file) or
your global.js to enable it for all projects. –
BrandonXLF (
talk)
21:25, 20 April 2022 (UTC)A script that will do the same thing described here. Thanks. — Yahya ( talk • contribs.) 09:30, 19 February 2022 (UTC)
if (mw.config.get('skin') === 'minerva' &&
mw.config.get('wgAction') === 'view' &&
mw.config.get('wgNamespaceNumber') >= 0 &&
mw.config.get('wgNamespaceNumber') % 2 === 0 &&
mw.config.get('wgArticleId')
) {
$(function () {
if (mw.config.exists('wgWikibaseItemId')) {
mw.util.addPortletLink(
'p-tb',
'//www.wikidata.org/wiki/' + mw.config.get('wgWikibaseItemId') + '?mobileaction=toggle_view_desktop#sitelinks-wikipedia',
'Edit interlangs'
);
} else {
mw.util.addPortletLink(
'p-tb',
'//www.wikidata.org/wiki/Special:NewItem?site=' + mw.config.get('wgWikiID') + '&page=' + encodeURIComponent(mw.config.get('wgPageName')).replace(/_/g, '+') + '&mobileaction=toggle_view_desktop',
'Add interlang'
);
}
});
}
?mobileaction=toggle_view_desktop
and + '&mobileaction=toggle_view_desktop'
if you prefer the mobile site.
Nardog (
talk)
01:37, 21 April 2022 (UTC)![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 4 | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 |
I hope this doesn't seem bitey, but it would be so helpful to have a script that could let me answer/close a post with a kindly-worded "Please read the FAQ" message on articles that are getting huge numbers of redundant posts for days and weeks on end after a major incident. It's a major time-waster for editors. —valereee ( talk) 18:42, 11 November 2020 (UTC)
window.replyLinkPreloadPingTpl = "Please, READ [[Wikipedia:FAQ]]";
.
AXONOV
(talk)
⚑
09:46, 14 May 2021 (UTC)
The idea would be to identify a list common sources in the publication= field of a news citation, and use the script to wikilink them to the relevant page.
For example, Reuters to Reuters or New York Times to The New York Times. — Preceding unsigned comment added by RoanokeVirginia ( talk • contribs) 10:28, 7 June 2021 (UTC)
|publication=
parameter in cs1|2. When Reuters or AP or AFP or other news agencies are directly referenced, their name goes in |work=
. When The New York Times or San Francisco Chronicle or other news papers are referenced, their names (without italic markup) go in |newspaper=
(or optionally, |work=
). When citing a news source that is using work from a news agency (Reuters, AP, AFP, etc), the agency name goes in |agency=
and the news source name goes in the appropriate 'work' parameter. None of these types of names belong in |publisher=
.common sources, like the two you mentioned, do not need to be wikilinked to establish their reliability.
A script for changing external links to internal links if applicable. ―
Qwerfjkl |
𝕋𝔸𝕃𝕂 (please use {{
reply to|Qwerfjkl}}
on reply)
20:32, 23 June 2021 (UTC)
It would be a timesaver for me to have a script that would show me previous "month year" sections heads on user talks, which is commonly how warnings are sectioned, maybe allowing me to limit to just the past year or two. I usually scan the section heads in the history, but I'm sure I miss things, and others probably do too: Special:Permalink/1030562622#User:Ulises142 - When a user receives three final warnings, and yet continues vandalizing. It would be good if this caught section heads that were later changed. —valereee ( talk) 18:31, 26 June 2021 (UTC)
I want a script that adds FURs of the user's choice, similar to WP:FURME. -- Kailash29792 (talk) 17:44, 13 February 2021 (UTC)
I'd like a script that allows a user to select multiple unpatrolled pages at Special:NewPages and mark them as patrolled, without leaving the page. This would be useful in patrolling, for example, talk namespaces, where the vast majority of creations are good and can be quickly patrolled without going to the page itself. Elli ( talk | contribs) 20:01, 6 July 2021 (UTC)
Copied from
User talk:DannyS712#Script requests
Please can you make these scripts (ordered by prority):
Thanks! ― Qwerfjkl talk 18:45, 11 July 2021 (UTC)
Is there, or could there be, a script that puts thanks links on talk pages? Evad37's excellent TimestampDiffs already puts the diff link on each comment date; I'd imagine picking the oldid from that to put on a ( thanks) link would be a breeze, no? — 𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚 ( talk) 06:03, 12 May 2021 (UTC)
Hi! I'll preface this and say my coding knowledge is very basic. I did make an effort to complete this myself, but I'm better at forking existing scripts than writing a new one. Some of this is quite personal to me, but easy enough to make this more useful to more editors. This would only be of help to serial nominators of GANs though! Here's what I've been looking to get:
When attempting to nominate an article for WP:GAN, you need to {{subst:GAN|subtopic=X}} on talk page. I'd like to add this, plus some additional actions in one go.
For future enhancement, most Wikiprojects have a nominations pane, it'd be nice for this to automatically add to these if possible (probably needs some sort of case-by-case addition.
In addition, something that closes GANs might also be good. To do:
I think this is quite an ask, but if anyone wants to help me work on this, let me know. I'm happy to give some more specific steps if wanted :). Best Wishes, Lee Vilenski ( talk • contribs) 09:56, 23 November 2020 (UTC)
* [[Article name]]
to the page, leaving it upon the user to ensure that such an addition would fit into the formatting of the page.did make an effort to complete this myselfis that code available so that i can take parts from it? – SD0001 ( talk) 18:15, 23 November 2020 (UTC)
Hi SD0001 - I've been using your script a lot, it's been super helpful. I wonder if you'd be interested in something for closing GANs. Here's the list that I would want it to do:
Currently, I think this is the most strenuous part of the review process, as you generally have to edit at least three pages at the bare minimum just to close the GAN. When I close, I currently use discussion closer and rater to do the work, but I think this could be a lot more convenient. Is this something we could automate? There's a lot of people who do hundreds of reviews, and this might just make it a little bit more streamlined. Best Wishes, Lee Vilenski ( talk • contribs) 19:39, 23 July 2021 (UTC)
So i want to change my background colors from the basic grey and white and due to my limited knowledge of javascript, i cannot figure out any of that stuff. I want a script that adds a button to the menu (pop-down on Timeless) and allows you to change 4 of the colors, 1 for The top bar. 1 for the secondary background (the grey portion), 1 for the main background (the thing where the text stands) and 1 for the text itself. MoonlightVector Talk page 17:47, 6 October 2021 (UTC)
I'd like a user script that turns contractions into proper phrasing per MOS:CONTRACTION. Should be easy to code. WIKINIGHTS talk 16:11, 9 August 2021 (UTC)
Hi all. Hope that you're well during these crazy times. I know this is technically a bot request but owing to the use of Javascript User:GreenC pointed me here. I was wondering if someone could take over a JavaScript bot request from a user who's now retired? ( Wikipedia:Bots/Requests for approval/AWMBot 2)
Short summary of the problem is - old peer reviews are linked using CURRENTPAGENAME/ArchiveX. That means though when a page gets renamed, the link is lost. We have now about 680 broken reviews in this manner and a user created an almost complete javascript bot to fix it (code available via the bot request). There was only one slight problem which was that sometimes duplicate parameters got inserted into the fixed up peer review template. If you had time I'd be very very grateful to have this fixed up. Once this is done I plan to insert the peer review links into all the outstanding old peer reviews but can't do this until the broken ones are fixed up.
Fingers crossed! Tom (LT) ( talk) 07:16, 19 August 2021 (UTC)
I just create the
Go portal. In it, I created a box showing the top international title holders. The code for that is: {{#lst:List of top title holders in Go|titleholders}}
. To make this work I added a section "titleholders" to part of the article
List of top title holders in Go. This seems to work fine. Now, what I'd like to do, and I can't seem to figure out how to make it work, is to rotate through the various lists of title holders in the article
List of top title holders in Go. For example, the next list in the article is for
"Continental" title holders. I know how to display that list with appropriate code, i.e., {{#lst:List of top title holders in Go|Continental titleholders}}
with an appropriate section label for that list. The problem is how to make a template or other script in the portal that will allow switching form one list to the next. It would be a bit like a slide show, as with {{
Transclude linked excerpts as random slideshow}} except I need it to be clear when you select one list or another. Ideally, I would create a horizontal list of links for "International", "Continental", "China", etc., and the reader could click on the type and the list would automatically update. Alternatively, there could be a left/right arrow above the list and the reader could simply click to advance through each list with an appropriate label appearing above the list. I would appreciate any help understanding how this can be done.
Coastside (
talk)
06:39, 9 October 2021 (UTC)
I'd like to know if there is a tool (js, I guess) that if turned on, will highlight specific characters in an article. At this point I'm looking at articles that my search has said have a latin alphabet character next to a greek one, and I'd like to easily see in the article where that is. So for example, if both ΦΒΚ and ΦBK are in an article, I'd like to have all of the first one highlighted and only the Phi highlighted in the second (the first has Beta and Kappa, the second has B and K). I'd like it to be a little flexible, since I'd like to be able to add the accented greek letters as well as the Lunate Sigma (the version of Sigma that looks like a C. Naraht ( talk) 15:10, 10 October 2021 (UTC)
I would like to add {{ WikiProject Go}} to the talk pages of all subcategories of category Go (game). Needless to say, I would only want to add it to the talk page if it isn't already added. Is there a bot or script that can do this? Coastside ( talk) 06:25, 11 October 2021 (UTC)
Hey there! I'm pretty sure this is not the best place for this request so I do apologize beforehand. In SqWiki we have this extra CS1 error tracking category for citations missing the language parameter. (I'm an admin there.) It has around 11.500 entries. It would be good if we could decrease that number (solve that error) in any way possible. We don't have an active technical community in SqWiki, me being the only user that deals with that aspect. In this situations, I thought asking for help here. Is there any kind of bot that could help me with this? Or maybe even user scripts that could semi-automatize the process of finding the language of the citation and inserting it in the templates. Of course, I'm mostly talking about citations coming from webpages because I don't believe bots and scripts could be much of help in book citations and other of the sort. Any idea that helps decrease that number even partially is much appreciated. - Klein Muçi ( talk) 21:24, 4 September 2021 (UTC)
action=languagesearch API
, which returns language codes based on the characters used in the input string, can be used to detect the language, but i have no idea how can we get a string from those citations and pass it to search
parameter.
Jeeputer (
talk)
13:14, 25 September 2021 (UTC)
Hello! I was trying to find a way to make participation in voting easier for my homewiki (SqWiki) by introducing some kind of graphical user interface for adding templates like pro/against/neutral (preferably with a text box that asks for a rationale behind that vote) in "elections"/discussions. I asked around and found this script and my intention was to localize it into a gadget but unfortunately the script makes use of hard-coded EnWiki pages which made it hard for me to modify it. I tried contacting the creator for help but he wasn't available so... Is there any other script/gadget which is "more malleable" that I can use for my case? Maybe someone with extra free time can help me create one from scratch? - Klein Muçi ( talk) 20:47, 11 October 2021 (UTC)
Some ideas copied from User:Enterprisey/Dashboard. If you make one of these scripts, strike the entry and add a link to your script.
GUYWAN ( t · c ) 19:33, 5 December 2019 (UTC)
Hey, Hope you are doing well. Since small wiki's don't have enough contributors to help in Featured picture section, I was wondering if someone can come up with an idea to get En.wikis POTD featured on these wiki's. Actually this was a suggestion from another user at Ks.wiki. Thankyou signed, Iflaq (talk) 17:21, 26 October 2021 (UTC)
Often while reverting people's vandalism I see accounts that have done enough to be reported to WP:AIV, which I do often. The process currently involves copying their username, opening WP:AIV, editing the "User reported" section, pasting their username at the bottom, then copying the template, then pasting it at the bottom, then cutting the username from where I put it, then putting it where the default name was. This is very annoying. I find it hard to believe that no one else has had this problem and made this script, I just cannot find one in the list with a name or description that says it might fix this. I'm looking for a script with a button on the page or something where I can just put their username / ip and a reason without fussing with copying the template to the bottom as well. Thanks, ― Levi_OP Talk 14:15, 10 January 2022 (UTC)
I would usually write my own scripts, but this one is a little more not straightforward so I thought I'd ask for help with it and it can be a learning experience :)
Anyway, let me describe my issue. When I'm editing wikipedia, I often want to open other pages to read them, get info from them, clarify a rule, etc. The easiest way to do this is to go to the search in the top right and type the page I want. For example, if I wanted to grab a quick deletion template, I would type wp:csd, and then down arrow, then the enter key. The issue with this is that the link will open on the current page, and there is no way to open it in a new tab. I currently take my hand off of the keyboard off of the keyboard and onto the mouse and then press the command key, which when clicking on pages opens them in a new tab. This is annoying for me as I use computers mainly with key combos and mostly using the keyboard.
With this in mind, I would like to make a script to fix this. My thoughts were modifying the search bar to open in a new tab when I have the command key held down (on mac; dunno what it is on windows). My first thoughts would be to just have a listener for onkeydown and onkeyup in the script and then setting target="_blank"
when that's the case. I'm not familiar with the mediawiki javascript api in wikipedia so I don't know if this is the best way to to do things, or if using keydown listeners are something you can do in wikipedia scripts or if there is some more official api that you can use. Thanks a lot, ―
Levi_OP
Talk
17:08, 7 January 2022 (UTC)
.mw-searchSuggest-link
appears to be the class you need to add target="_blank"
to. Maybe do a DOMNodeInserted
listener at first, just to get everything working. (This listener would add _blank
all the time, even without a keypress.) Then once you confirm that it works, you can add the complexity of a keypress listener, whether to only add _blank
while pressing, whether to remove _blank
once keypress is done, etc. –
Novem Linguae (
talk)
18:27, 7 January 2022 (UTC)
$(document.body).on('keydown', '#searchInput', function (e) {
if ((e.ctrlKey || e.metaKey) && e.which === 13) {
$('#searchform').attr('target', '_blank');
}
}).on('blur', '#searchform', function () {
this.removeAttribute('target');
});
$(document.body).on('keydown', '#searchInput', function (e) {
if (e.metaKey) {
$('#searchform').attr('target', '_blank');
if (e.which === 13) {
$("#searchButton").click()
}
}
}).on('keyup', '#searchform', function (e) {
if (!e.metaKey) {
this.removeAttribute('target');
}
});
hello, can someone make a script that removes the languages on the sidebar? i only speak english, and it makes me irritated whenever there is a small page with a lot of languages, cause it makes the footer not really the footer anymore. look at this page, Wikipedia:General disclaimer, and scroll down and you will see what i mean. thanks! Desktop. INI 17:42, 11 January 2022 (UTC)
#p-lang {
display: none;
}
Using {{ coords}} is a painful template, especially when you are trying to add coordinates en masse. A script that allows you to quickly edit and add coordinates would be greatly useful. — Berrely • Talk∕ Contribs 17:28, 28 June 2021 (UTC)
Hi. I need a script for converting unnecessary "article#section" links and piped links to available redirects per WP:NOTBROKEN and MOS:SECTLINK. A script capable of finding correct/relevant redirects. For example, if there is a "article #Section XYZ" link and there is a "redirect XYZ" to that specific section, then the script should be able to find and suggest the available redirect(s). Same for the piped links. Mann Mann ( talk) 21:00, 12 January 2022 (UTC)
Hello, I wasn't sure if this was the proper place to request this kind of stuff but the community portal says "specialized script that doesn't exist yet", and I think it falls under that line. I say that because it doesn't do anything "beneficial" to make something cool for my user talk page. I had a couple of ideas for funny "notices" to put at the top of my talk page, but putting too many would make things cluttered. Instead, I came up with the idea for a script that cycles through a large selection of notices and other things; it chooses one from a list (I'm using my sandbox) of these templates and puts uses it on the talk page. Whenever the page is refreshed or purged, a new one from that list is put there (in the same spot). Is that possible? Or is this some sort of thing that can be done without using a script? Panini! 🥪 14:52, 13 January 2022 (UTC)
Can a veteran user script creator take a look at my request at VP:VPT and give its opinion on it? :) - Klein Muçi ( talk) 03:56, 30 January 2022 (UTC)
Hi, I need a script to toggle on and off the "Temporarily disable the visual editor while it is in beta" option in Editing section of prefs. A shortcut toggle button at the top of page will be preferable as I might have to switch many times. It will be of immense help if someone can build a script to achieve that. Also, if someone does build it, they may want to do it such that any user is able to select their 5-10 most used prefs and create a shortcut list without having to go deep into preferences page. Thanks! --- CX Zoom(he/him) ( let's talk| contribs) 20:46, 14 February 2022 (UTC)
&veaction=edit
to the edit page link might be helpful. –
Jonesey95 (
talk)
20:56, 14 February 2022 (UTC)I would like to be able to save my changes without having to publish changes on /info/en/?search=Draft:Alyssa_Ruffin. — Preceding unsigned comment added by CharlesRuffin1 ( talk • contribs) 04:33, 28 February 2022 (UTC)
( ←) I freaking love The Chronicles of Amber. Much better than Game of Thrones. But no, my Random is just.. there was a Ling.Nut, a Ling.Nut2, a Ling.Nut3, then a Lingzhi, a Lingzhi2, and... the numbers became overwhelming... Thanks!! ♦ Lingzhi.Random ( talk) 23:00, 24 September 2021 (UTC)
Hi, WP:WikiBreak Enforcer is a great script for those who wish to take some time off of Wikipedia to invest in real life responsibilities. But I don't want to take some days off of Wikipedia, but want to force my WP activity into a singular 1 hour slot (say, 10pm to 11pm) each day, so that I can utilise the rest of the time to prepare for my upcoming very important exams. Is it possible to create such a script? Thanks! --- CX Zoom(he/him) ( let's talk| contribs) 07:46, 10 March 2022 (UTC)
Hello! In SqWiki we have mw:Extension:FlaggedRevs, activated for all pages, similar to DeWiki and some other wikis. With that, reviewers get an extra WP:Rollback button in Special:RecentChanges which they can use to quickly revert vandalism. Can a user script be made that it also adds an accept button beside it that can be used to quickly accept good changes? It would help a lot in keeping our backlog lower. - Klein Muçi ( talk) 13:26, 22 March 2022 (UTC)
mw.loader.load('//en.wikipedia.org/?title=User:Nardog/ButtonizeRollback.css&action=raw&ctype=text/css', 'text/css');
to your .js. Using @import
is slow.review
and rollback
, respectively, for the scripts, but you can also specify something that only admins have, like delete
, to deter non-admins from enabling it, for example. You can also make enabling the gadget impossible without also loading Navigation popups by adding ext.gadget.Navigation_popups
to the dependencies for the gadget.<li>
, press F2 and copy.) It should look like this: <li><a href="/wiki/Fshatrat_e_Shqip%C3%ABris%C3%AB" title="Fshatrat e Shqipërisë">Fshatrat e Shqipërisë</a> (<a href="/?title=Fshatrat_e_Shqip%C3%ABris%C3%AB&action=history" title="Fshatrat e Shqipërisë">versione</a>) <span dir="ltr" class="mw-plusminus-pos mw-diff-bytes" title="16.150 bajtë pas ndryshimit">+42</span> (<a href="/?title=Fshatrat_e_Shqip%C3%ABris%C3%AB&diff=cur&oldid=2133180" title="Fshatrat e Shqipërisë">shqyrtim</a>) <i>(590 ditë)</i><span class="quickrollback"><a href="#" role="button" title="Restore penultimate editor's revision">rollback</a></span><span class="quickaccept"><a href="#" role="button" title="Accept this pending revision">accept</a></span></li>
<li><a href="/wiki/Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore" title="">Shqipëria në Luftën e Dytë Botërore</a> (<a href="/?title=Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore&action=history" title="Shqipëria në Luftën e Dytë Botërore">versione</a>) <span dir="ltr" class="mw-plusminus-pos mw-diff-bytes" title="55.931 bajtë pas ndryshimit">+41</span>‎ (<a href="/?title=Shqip%C3%ABria_n%C3%AB_Luft%C3%ABn_e_Dyt%C3%AB_Bot%C3%ABrore&diff=cur&oldid=2403171" title="">shqyrtim</a>) <i>(38 orë)</i> (2 përdorues aktivë duke e mbikëqyrur)<span class="quickrollback"><a href="#" role="button" title="Restore penultimate editor's revision">rollback</a></span><span class="quickaccept"><a href="#" role="button" title="Accept this pending revision">accept</a></span></li>
mw.messages.set({
'quickrollback-custom-summary': 'Reverted edits by [[Special:Contributions/$1|$1]] ([[User talk:$1|talk]]): $2 ([[INSERT YOUR LINK HERE]])',
'quickrollback-custom-summary-anon': 'Reverted edits by [[Special:Contributions/$1|$1]]: $2 ([[INSERT YOUR LINK HERE]])'
});
quickrollback
) and put mw.messages.set('quickrollback-tag', 'quickrollback');
wherever the script is loaded, and it will (hopefully) add the tag to every rollback it performs. This should work even with the default summary.
Nardog (
talk)
23:27, 3 April 2022 (UTC)QuickRollback-tag
would have never worked, although it looks like you tried the lowercase version so it doesn't seem to be the only problem.When we go to a file page > click on the image > the image path opens on the browser > we prepend view-source:
to the URL > the source code of the image appears. It is particularly useful when I'm trying to see the code of a svg. It would be helpful if there were a button on every file page, that does all the above steps and takes us directly to that file's source code page. Thanks! —
CX Zoom[he/him] (
let's talk •
C •
L)
14:44, 19 April 2022 (UTC)
go to a file page > click on the image > the image path opens on the browser >right-click > View page source doesn't work for you? Here are a bunch of svg files to try it on.
@ CX Zoom: Here's the code; feel free to copy and paste to wherever you prefer (CC0 if that matters):
$(function() {
$($('.fileInfo')[0]).after(
$('<span>').attr('id', 'viewsvgsource').html(
$('<a>').attr('href', 'view-source:' +
$($('#file a')[0]).attr('href')
).text('view SVG source')
).prepend(' (').append(')')[0
);
});
NguoiDungKhongDinhDanh 00:34, 20 April 2022 (UTC)
@
CX Zoom: I have just learned that view-source:
link
cannot be linked using HTML or even location.assign
. I guess we can't do anything then.
NguoiDungKhongDinhDanh
19:21, 20 April 2022 (UTC)
mw.loader.load('https://en.wikipedia.org/?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript');
in
your common.js file on the Commons (or a skin specific file) or
your global.js to enable it for all projects. –
BrandonXLF (
talk)
21:25, 20 April 2022 (UTC)A script that will do the same thing described here. Thanks. — Yahya ( talk • contribs.) 09:30, 19 February 2022 (UTC)
if (mw.config.get('skin') === 'minerva' &&
mw.config.get('wgAction') === 'view' &&
mw.config.get('wgNamespaceNumber') >= 0 &&
mw.config.get('wgNamespaceNumber') % 2 === 0 &&
mw.config.get('wgArticleId')
) {
$(function () {
if (mw.config.exists('wgWikibaseItemId')) {
mw.util.addPortletLink(
'p-tb',
'//www.wikidata.org/wiki/' + mw.config.get('wgWikibaseItemId') + '?mobileaction=toggle_view_desktop#sitelinks-wikipedia',
'Edit interlangs'
);
} else {
mw.util.addPortletLink(
'p-tb',
'//www.wikidata.org/wiki/Special:NewItem?site=' + mw.config.get('wgWikiID') + '&page=' + encodeURIComponent(mw.config.get('wgPageName')).replace(/_/g, '+') + '&mobileaction=toggle_view_desktop',
'Add interlang'
);
}
});
}
?mobileaction=toggle_view_desktop
and + '&mobileaction=toggle_view_desktop'
if you prefer the mobile site.
Nardog (
talk)
01:37, 21 April 2022 (UTC)