Jump to content

User talk:SoledadKabocha/vector.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
User talk:SoledadKabocha/common.js formerly redirected here. Most of the discussion really refers to common.js.

Dubious linkclassifier feature requests

[edit]

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.

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))[reply]

The markblocked enhancement will be at User:SoledadKabocha/markBlockedPlus.js. The linkclassifier enhancement will may be worked on at a later date is 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))[reply]
TODO: Figure out why markBlockedPlus doesn't successfully modify tooltips when called from ajaxPreviewExec. SoledadKabocha (talk) 03:50, 21 September 2012 (UTC)[reply]

Other TODOs

[edit]
  • 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 #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 effort (done: see User:SoledadKabocha/scriptDocClassifier.js)
  • Regex that does approximately the same job as the current sandbox test: var isPageSandbox = ( /[:\/][Ss]andbox(\/|_?\d*$)/.test( wgPageName ) ); (wontfix)
  • 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))[reply]

Edit request

[edit]

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)[reply]

 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)[reply]

New wikitext editor

[edit]

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)[reply]

[edit]

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)[reply]

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)[reply]