Jump to content

User talk:Þjarkur/Highlight recently added text

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

Future development

[edit]

For watched pages, it should go through the history and find the "updated since your last visit" markers. – Thjarkur (talk) 14:56, 11 December 2019 (UTC)[reply]

Compatibility with "Discussion tools" beta feature – [reply] and [subscribe] buttons

[edit]

@Þjarkur Hi, folks on fa.wp using your script have let us know that it conflicts with the [reply] and [subscribe] buttons provided by the "Discussion tools" beta feature (fa:Topic:Wf0adf5efaianhsg). It always highlights them in green, and also causes them not to work when clicked. (I'm one of the developers working on the beta feature.)

It looks like your script already has a list of elements to ignore, and adding the [reply] and [subscribe] buttons to that list seems to work in my testing.

So, please replace:

var ignore = '.reference, .noprint, .mw-cite-backlink, .mw-editsection, .toc, style, script, .navbox, .reply-link-wrapper, .scriptInstallerLink'

With:

var ignore = '.reference, .noprint, .mw-cite-backlink, .mw-editsection, .toc, style, script, .navbox, .reply-link-wrapper, .scriptInstallerLink, .ext-discussiontools-init-replylink-buttons, .ext-discussiontools-init-section-subscribe'

Thanks! (Very cool script, by the way!) Matma Rex talk 19:02, 25 August 2021 (UTC)[reply]