Content deleted Content added
Mike Dillon (talk | contribs) mNo edit summary |
Mike Dillon (talk | contribs) mNo edit summary |
||
Line 36:
// Prepend the current page to the list, remove duplicates, and control item count
if (wgIsArticle) {
for (var n = 1; n < historyItems.length; n++) {
if (historyItems[n] ==
historyItems.splice(n, 1);
}
Line 56 ⟶ 55:
var itemUrl = wgArticlePath.replace(/\$1/,
encodeURIComponent(historyItems[n]));
itemUrl = itemUrl.replace(/%2f/
var itemLabel = historyItems[n].replace(/_/g, " ");
var itemSlash = itemLabel.lastIndexOf("/");
if (itemSlash != -1) itemLabel = itemLabel.substr(itemSlash + 1);
|