Wikipedia:User scripts/Requests/Archive 3: Difference between revisions
Content deleted Content added
Added threads from Wikipedia:User_scripts/Requests |
m Fix Linter errors. Fix misused inline markup. |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 146:
:3 {{yellow tick}} [[User:Ais523/stubtagtab2.js]] without untag option
:4 {{tick}} [[User:Abelmoschus Esculentus/Skiptobottom]] and install Hotcat
:'''―[[User talk:Abelmoschus Esculentus#s|<span style="color:darkblue">Abelmoschus </span><span style="color:green">Esculentus</span>]] <sup>[[User talk:Abelmoschus Esculentus#s|<span style="color:orange">talk</span>]] / [[Special:Contribs/Abelmoschus Esculentus|<span style="color:red">contribs</span>]]</sup>''' 03:40, 25 November 2018 (UTC)
::{{reply to|Abelmoschus Esculentus}} Thanks. The 4th suggestion was really helpful, but my goal was more to be able to create a new menu than to have this specific functionality. --[[User:DannyS712|DannyS712]] ([[User talk:DannyS712|talk]]) 04:01, 25 November 2018 (UTC)
Line 246:
:{{ping|The Transhumanist}} Two years later ... {{done}}? Check out [[User:Guywan/Scripts/LEA.js]] if you're still interested. It works like this:
: Create a bulleted list, exactly like so:
<syntaxhighlight lang="text">
* [[linkA]]
* [[linkB|linkBname]]
</syntaxhighlight>
: Then click '''List Entry Annotator''' in the sidebar. You'll see something like:
* [[linkA]] – Holy crap it actually worked!
Line 303:
{{dedent}}
{{ping|Qono}} I have removed that error message to see if the console comes up with anything better. [[User:Danski454|Danski454]] ([[User talk:Danski454|talk]]) 10:31, 20 December 2018 (UTC)
:{{ping|Danski454}} I'm not getting the pop-up error any longer, and the Javascript Console shows the following in Safari: <
[Error] TypeError: undefined is not an object (evaluating 'text.toLowerCase')
testWikitext (index.php:70)
Line 313:
done (load.php:551:588)
(anonymous function) (load.php:554:981)
</syntaxhighlight>
: [[User:Qono|Qono]] ([[User talk:Qono|talk]]) 15:52, 20 December 2018 (UTC)
::{{ping|Qono}} It seems the script can't find the contents of the editing box, somehow. If you inspect the edit box, you should find a <code><nowiki><textarea></nowiki></code> element. It should have something that looks like <code>id="something"</code> inside of it, can you find the id? [[User:Danski454|Danski454]] ([[User talk:Danski454|talk]]) 17:11, 20 December 2018 (UTC)
Line 537:
:: {{ping|Dishita Bhowmik}} Since you would like it in the top toolbar, do you mean you want a link to a list of all the subpages of your userpage? if so, [[User:PrimeHunter/My subpages.js]] does that (minus the dropdown part).<span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 09:04, 1 March 2020 (UTC)
:::{{ping|BrandonXLF}} and {{ping|1997kB}}, thank you! [[User:Dishita Bhowmik|'''''<span style="font-family:Times New Roman"><span style="color:Teal">Dishita</span><span style="color:Navy">Bhowmik</span></span>''''']] 16:35, 1 March 2020 (UTC)
{{Clear}}
== Request for an ISBN script ==
A script which hyphenates ISBN-13 digits (with four hyphens), similar to [http://pcn.loc.gov/isbncnvt.html this website]. A script which converts ISBN-10 to 13 would be appreciated also. Thank-you.--[[User:Neve-selbert|Nevé]][[Special:Contributions/Neve-selbert|–]][[User talk:Neve-selbert|selbert]] 23:13, 25 June 2017 (UTC)
:{{ping|Neve-selbert}} is this still needed? I'm not saying, that I will do this, but... --'''[[User:Edgars2007|<span style="color:#FF6600;">Edgars2007</span>]]''' <small>([[User talk:Edgars2007|talk]]/[[Special:Contributions/Edgars2007|contribs]])</small> 06:41, 6 March 2018 (UTC)
::{{re|Edgars2007}} it would come in handy, certainly.--[[User:Neveselbert|Neve]]~[[User talk:Neveselbert|selbert]] 17:07, 22 March 2018 (UTC)
:That website uses JavaScript which is [http://pcn.loc.gov/Templates/isbncnvt.js open source] so I guess it would be easy to port it here. [[User:SD0001|SD0001]] ([[User talk:SD0001|talk]]) 06:35, 1 January 2019 (UTC)
:{{re|Neveselbert}} At least for English and German books, [[m:User:TMg/autoFormatter]] adds dashes to ISBNs. '''[[User:Sam Sailor|Sam]] [[User talk:Sam Sailor|Sailor]]''' 09:26, 17 April 2019 (UTC)
{{Clear}}
==User script to help guide students working on medical articles==
Students make similar errors when editing and each new batch repeats similar errors made by the last batch. I am wanting a user script that analysis the students edits and provides them feedback. For example:
# If they use a url to the inside net of their library it will remind them that this is not useful to anyone outside their institution.
# If they use caps for every word in a heading it will point out that generally only the first word in a heading gets a cap unless the other words are proper names.
# If they put refs before the punctuation or leave a space after the punctuation before the ref it will remind them that the house style is refs go immediately after the punctuation.
# If they use a book (ie an ISBN) without a page number they will be reminded to provide a page number.
# If they do not use "cite templates" to match those already used in the article they will be requested to do so.
# If they use a pmid that is listed as a "primary source" they will be requested to use a secondary source. Whether or not a pmid is primary or secondary can generally be determined by pubmed.
I am involved with supporting a number of classes, including one of medical students at UCSF. I am wanting to trial this sort of script on them to see if they find it useful and it decreases the work load for other volunteers. Currently education initiatives are not really scalable and this sort of script will help make them so. [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 04:57, 15 March 2018 (UTC)
::First draft [https://en.wikipedia.org/wiki/User:TheSandDoctor/scripts/test2.js here] [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 02:53, 19 March 2018 (UTC)
:::Thanks for [[User:TheSandDoctor|TheSandDoctor]] who already started to work on it. I just want to refer to [[User:ערן/WeaselWords.js]] and [[Wikipedia:Manual of Style/Words to watch/Config]] which can be used as a sketch example how to do it (though someone should review the code which was written in WM'14). Particularally I suggest enwiki to adapt hewiki practices here and to put the "rules" above in two format:
:::* as human readable rules in [[Wikipedia:Manual of Style]] (or a sub page) - where users can read the rational behind the rule. Probably some of the rules [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] mentioened above are already there - if not please consider to add them. Doing it means users who don't have user script installed can still be aware to it (though it is less accessible)
:::* as machine readable rules (as in [[Wikipedia:Manual of Style/Words to watch/Config]] or some other format) for a user script to verify the rules. Doing it will greatly simplity further adding/removing/twiking the style rules.
:::Thanks, [[User:ערן|Eran]] ([[User talk:ערן|talk]]) 07:30, 21 March 2018 (UTC)
:::You should use [https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/jQuery.plugin.textSelection jquery.textSelection] [https://phabricator.wikimedia.org/source/mediawiki/browse/master/resources/src/jquery/jquery.textSelection.js source] api module to access the contents of the wiki text editors. That synchronises between the various wiki text editors, so that when two tools makes changes to the form value, they don't overwrite each other. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:16, 21 March 2018 (UTC)
{{Clear}}
== Disabling Media viewer and Page preview ==
There is the page [[Wikipedia:Tools/Greasemonkey_user_scripts]] which shows publicly usable Greasemonkey scripts to give the users a better experience. Sadly there is no list for requested scripts. So I guess, this one here has to be the right one for this purpose, too.
I think, I have a request to make Wikipedia usable / readable for normal people (without an account) again.
Please, provide us (or at least the technically versed parts of us) with some means to disable these annoying "features" of the Wikipedia once and for all. I don't think that I have to name reasons here - there are multiple comments on the appropriate discussion pages which seem to be ignored altogether.
So please, give at least the Greasemonkey users the possibility to turn off Media viewer and Page preview. It's really no help at all to have to choose to disable them about a hundred times a day (for every browser instance [in case of the Page preview also for every already opened browser tab!], for every language version, multiple times a day again and again and again)!
Otherwise Wikipedia seems not to be usable in an effective manner anymore. Even on big screens it's hard to find a spot to "park" your mouse cursor at to be able to scroll the site without having previews popping up every now and then. - Which totally disturbs the normal workflow!
--[[Special:Contributions/141.76.83.180|141.76.83.180]] ([[User talk:141.76.83.180|talk]]) 16:04, 21 June 2018 (UTC)
:unfortunately, without an account you cannot activate a user script or enable a gadget. But, I encourage you to make an account ([[WP:ACCOUNT]]) - you may find what you are looking for in your account's settings ("preferences"). --[[User:DannyS712|DannyS712]] ([[User talk:DannyS712|talk]]) 04:47, 1 March 2019 (UTC)
:You can also use a popup-blocker to get rid of all popups on Wikipedia articles. Moreover there exist Extensions at Google Chrome Store, that let you disable popups on selected websites, you can use them as well. --[[Special:Contributions/180.151.77.214|180.151.77.214]] ([[User talk:180.151.77.214|talk]]) 19:30, 10 April 2019 (UTC)
::A pop-up blocker will not work for page preview pop-ups, as they use html rather than creating a window. However, there is a gear icon in the pop-up which allows you to disable them. Alternatively, you can add <code>.mwe-popups{display:none!important}</code> using user css. --[[User:Danski454|Danski454]] ([[User talk:Danski454|talk]]) 11:30, 12 April 2019 (UTC)
|