MediaWiki:Gadget-titleparenthesis.js: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

    3 October 2022

    • curprev 17:3717:37, 3 October 2022Jacmob talk contribs 697 bytes +697 Created page with "$(function () { var conf = mw.config.get([ 'wgNamespaceNumber', 'wgTitle' ]); if (conf.wgNamespaceNumber !== 0 || conf.wgTitle.lastIndexOf('(') < 0 || $('.no-parenthesis-style').length) { return; } // use the title in the DOM so this respects DISPLAYTITLE var title = mw.html.escape($('h1#firstHeading').text()), start = title.lastIndexOf('('), end = title.substring(start, title.length).lastIndexOf(')'); // add offset here end += s..."