MediaWiki:Gadget-titleparenthesis.js: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

13 October 2024

  • curprev 01:2101:21, 13 October 2024Alex 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..."