This file is indexed.

/usr/share/mediawiki-extensions/collection/js/check_load_from_localstorage.js is in mediawiki-extensions-collection 3.7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(function($) {

var script_url = wgServer + ((wgScript == null) ? (wgScriptPath + "/index.php") : wgScript);

function count_articles(items) {
	var count = 0;
	return count;
}

$(function() {
	var c = $.jStorage.get('collection');
	if (c) {
		var num_pages = 0;
		for (var i = 0; i < c.items.length; i++) {
			if (c.items[i]['type'] == 'article') {
				num_pages++;
			}
		}
		if (num_pages) {
			var txt = collection_dialogtxt;
			txt = txt.replace(/%TITLE%/, c.title ? '("' + c.title + '")' : '');
			txt = txt.replace(/%NUMPAGES%/, num_pages);
			if (confirm(txt)) {
				$.post(script_url, {
					'action': 'ajax',
					'rs': 'wfAjaxPostCollection',
					'rsargs[]': [JSON.stringify(c)]
				}, function(result) {
					window.location.href = result.redirect_url;
				}, 'json');
			}
		}
	}
});
 
})(jQuery);