Content deleted Content added
DemonDays64 (talk | contribs) hmm |
DemonDays64 (talk | contribs) temporary revert for testing |
||
Line 3:
$(document).ready(function () {
//add a tab on the left
Line 10 ⟶ 8:
$(dumbQuotesLink).click(function (event) {
event.preventDefault();
});
function runRegex(regex) {▼
modifiedPage = modifiedPage.replace(regex.find, regex.replace);▼
doaction('diff');
}
find: /(‘|’)/g,
}▼
var doubleQuoteRegex = {
find: /(“|”)/g,
▲ var regexObject = {
▲ replace: replace
}
▲ }
document.editform.wpTextbox1.value = modifiedPage;▼
▲ function setEditSummary(summary, isMinor) {
▲ document.editform.wpMinoredit.checked = isMinor;
var modifiedPage =
modifiedPage = modifiedPage.replace(doubleQuoteRegex.find, doubleQuoteRegex.replace);
▲ document.editform.wpTextbox1.value = modifiedPage;
setEditSummary();
▲ setEditSummary("Replaced smart quotes with dumb. Problem? [[User talk:DemonDays64|Tell me]].", true);
document.editform.diff();
}
|