Content deleted Content added
DemonDays64 (talk | contribs) temporary revert for testing |
DemonDays64 (talk | contribs) Undid revision 950261326 by DemonDays64 (talk) |
||
Line 3:
$(document).ready(function () {
var pageBeforeEdit;
var modifiedPage;
//add a tab on the left
Line 8 ⟶ 10:
$(dumbQuotesLink).click(function (event) {
event.preventDefault();
});
function setEditSummary() {▼
document.editform.wpMinoredit.checked = true;▼
document.editform.wpSummary.value = 'Replaced smart quotes with dumb. Problem? [[User talk:DemonDays64|Tell me]].';▼
}
▲ function setDumbQuotes() {
var singleQuoteRegex = {▼
replace: "'"▼
}▼
function makeAndRunRegex(findRegex, replace) {
}
runRegex(regexObject);
function doEdit() {
document.editform.wpTextbox1.value = modifiedPage;▼
}
▲ function setEditSummary(summary, isMinor) {
document.editform.wpSummary.value = summary;
}
function showDiff() {
document.editform.diff();
}
function editPage() {
makeAndRunRegex(/a/g, "b")
▲ modifiedPage = modifiedPage.replace(singleQuoteRegex.find, singleQuoteRegex.replace);
makeAndRunRegex(/e/g, 'd')
doEdit();
▲ document.editform.wpTextbox1.value = modifiedPage;
▲
document.editform.diff();
}
|