Changes

Jump to: navigation, search

MediaWiki:Gadget-AjaxSetListTabs.js

376 bytes added, 3 months ago
document that blanket-removing `style` elements could theoretically come back to bite us (since if it ever *does* this will probably save some time finding the cause), but for now it's fine
"use strict";
var LAST_LOG = '2018:2145, 6 October 2023 26 February 2024 (UTC)';
function getListData( setListPagePath ) {
.append( $.parseHTML( data ) )
.find( '#mw-content-text .mw-parser-output' )
.childrenfind('.page-header') .remove( ).end() // removing all styles theoretically could cause issues if we ever // add other stuff to set lists, *and* that stuff uses its own // TemplateStyles, *and* that stuff only gets used on a page':firsts // non-default list(s), but there's nothing like that currently // for set lists and nothing like it is planned or even being // thought about, so for now it' )s fine .removefind('style').page-header'remove() .end()
.html()
;

Navigation menu