Jump to content

User talk:Aaron Liu/duplinks.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Interface-protected edit request on 19 January 2025

[edit]

See User talk:Evad37/duplinks-alt.js § Update for mw:Heading HTML changes for reason for change, copied from there:

As reported at Wikipedia:Village pump (technical)#Broken template in Vector 2010, this script does not work correctly following the MediaWiki changes described at mw:Heading HTML changes.

To fix it, it should be sufficient to replace this line:

if (this.nodeName.toLowerCase() == 'h2') {

with this:

if ( $(this).is('h2, .mw-heading2') ) {

I pinged the author, @Evad37, previously, but it seems they're not very active these days. Matma Rex talk 17:03, 18 June 2024 (UTC)

@Aaron Liu. -- waddie96 ★ (talk) 20:49, 19 January 2025 (UTC)[reply]

Oh yeah, I noticed that a while before, but since I'm me I forgot about it and instead went down a rabbit hole on how the original proposed hgroup implementation of the heading changes were dropped due to W3C politics that happened a decade earlier.  Done, and thanks! Aaron Liu (talk) 21:20, 19 January 2025 (UTC)[reply]
Thanks! waddie96 ★ (talk) 22:51, 20 January 2025 (UTC)[reply]