Content deleted Content added
Polygnotus (talk | contribs) hm? |
Polygnotus (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
//This userscript was written by BilledMammal
//https://en.wikipedia.org/wiki/User:BilledMammal/MovePlus.js
//I made some minor changes as requested over at https://en.wikipedia.org/wiki/Wikipedia:User_scripts/Requests#User:BilledMammal/MovePlus.js_and_User:Frost/moveplus.js
const WATCHLISTPAGES = false;
//movePlus
//<nowiki>
Line 725 ⟶ 732:
var talkpage = new Morebits.wiki.page(movePlus.talktitle, 'Closing move.');
if (WATCHLISTPAGES) {
talkpage.setWatchlist('watch');
}
talkpage.load(function(talkpage) {
var text = talkpage.getPageText();
Line 1,770 ⟶ 1,782:
let pageToMove = new Morebits.wiki.page(from, `Moving ${from} to ${to}.`);
if (WATCHLISTPAGES) {
pageToMove.setWatchlist('watch');
}
pageToMove.setMoveDestination(to);
pageToMove.setMoveSubpages(config.moveSubpages);
Line 2,060 ⟶ 2,076:
console.log(`Updating links at ${item.title}`);
let page = new Morebits.wiki.page(item.title, `Updating links at ${item.title}`);
if (WATCHLISTPAGES) {
page.setWatchlist('watch');
}
page.load(function(linkCorrection) {
let originalText = page.getPageText();
Line 2,177 ⟶ 2,199:
const editTask = () => {
let redirect = new Morebits.wiki.page(page, `Creating redirect to ${target}`);
if (WATCHLISTPAGES) {
redirect.setWatchlist('watch');
}
redirect.load(function(redirect) {
redirect.setPageText(`#REDIRECT [[${target}]]\n{{Rcat shell|\n{{R from move}}\n}}`);
|