User talk:SoledadKabocha/vector.js
- User talk:SoledadKabocha/common.js formerly redirected here. Most of the discussion really refers to common.js.
Dubious linkclassifier feature requests
This is not a request for help; these are just notes to myself.
These are dubious because I need to read the source code more carefully to decide whether they're feasible enough to be worth mentioning on the relevant talk page.
- Check whether each redlink has a nonempty deletion log — NB: User:Writ Keeper/Scripts/deletionFinder.js (dubious: it operates on pages, like sysopdetector, rather than on links - to be worked on as a separate script User:SoledadKabocha/redlinkDeletionLog.js)
- Check for Category:All articles with topics of unclear notability (or any of the other categories that could be applied by
{{notability}}
) - Retrieve latest move log entry, if it exists
- Merge with unattributed image finder — the structure of the code looks quite similar, but there are some key differences in the API query etc.
Detect deceased Wikipedians — wontfix? betterdone in markblocked (scraping the block reason) because there is no category used for this purpose
The reason I haven't installed sysopdetector is that it might clash with markblocked. Thus, I may as well write my own script that combines the functionality of linkclassifier with markblocked and sysopdetector. Note that sysopdetector is intended to work on user pages, whereas the other scripts operate on links. SoledadKabocha (talk) 00:08, 10 September 2012 (UTC) (last edit 22:54, 24 September 2013 (UTC))
- The markblocked enhancement will be at User:SoledadKabocha/markBlockedPlus.js. The linkclassifier enhancement
willmay be worked on at a later dateis located at User:SoledadKabocha/linkclassifier.js. Merging these two is beyond my JavaScript programming ability at this point. SoledadKabocha (talk) 17:21, 12 September 2012 (UTC) (last edit 21:38, 31 October 2012 (UTC))- TODO: Figure out why markBlockedPlus doesn't successfully modify tooltips when called from ajaxPreviewExec. SoledadKabocha (talk) 03:50, 21 September 2012 (UTC)
Other TODOs
Figure out how to make the "Warn me when I leave an edit page with unsaved changes (Vector skin only)" user preference ignore the "Cancel" link but otherwise function normally(initially wontfix, but I eventually wrote User:SoledadKabocha/betterCancel-vector.js)Remove(done: see User:SoledadKabocha/scriptDocClassifier.js)#mw-script-doc
on user stylesheets without associated scripts nor documentation, such as User:Isarra/diffs.css; this is listed here because it requires JS coding / can't be done in CSS alone, and it is dubious whether it is worth the effortRegex that does approximately the same job as the current sandbox test:(wontfix)var isPageSandbox = ( /[:\/][Ss]andbox(\/|_?\d*$)/.test( wgPageName ) );
- Fork User:Splarka/diffreveal.js so it can be triggered from a portlet link rather than automatically (wontfix?)
Write User:SoledadKabocha/cleanArrows.js which replaces the entities←
and→
with the proper characters ← and → respectively in the edit text box
-- SoledadKabocha (talk) 17:10, 24 September 2012 (UTC) (last edit 01:17, 14 March 2014 (UTC))
Edit request
The init module ext.visualEditor.viewPageTarget.init
has been renamed to ext.visualEditor.desktopArticleTarget.init
. There is an alias in place but you should update your code as the old name is now deprecated. ESanders (WMF) (talk) 14:56, 25 August 2015 (UTC)
Done The relevant code was a hack, adapted from MediaWiki:Gadget-oldeditor.js, to delay the loading of 6tabs-vector.js until VisualEditor is finished loading. It is no longer necessary and has been removed. (I did not respond very promptly because I don't watch this page.) --SoledadKabocha (talk) 22:37, 12 September 2015 (UTC)
New wikitext editor
Reminder to self to remove syntax highlighter experimental.js
and all configuration related to it if the sunset mentioned in mw:2017 wikitext editor ever takes place --SoledadKabocha (talk) 16:09, 25 December 2016 (UTC)
common.js numLinks test
It seems to overcount by one. Why? Hypotheses:
- One of the
ca-nstab-...
links is being treated as inside bodyContent (unlikely) - There is a link hidden inside
#siteSub
or something else that is invisible by default (unlikely) - The jQuery
length
property counts some "root" list item that does not represent a real link (most likely)
--SoledadKabocha (talk) 17:30, 17 April 2017 (UTC)
- A quick View Source (which I should have done in the first place) shows that none of these hypotheses was correct. The problem is with the link inside
<div class="printfooter">
. --SoledadKabocha (talk) 17:41, 17 April 2017 (UTC)