Misplaced Pages

User talk:Þjarkur/Highlight recently added text

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User talk:Þjarkur

Future development

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)

Compatibility with "Discussion tools" beta feature – and buttons

@Þjarkur Hi, folks on fa.wp using your script have let us know that it conflicts with the and 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 and 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)