Content deleted Content added
Joshua Scott (talk | contribs) ipd |
Joshua Scott (talk | contribs) mv insert code |
||
Line 13:
var pendch_str_enable = "Enable this box";
var pendch_str_disable = "Disable this box";
if (window.___location.toString().search(/diffonly=1/) != -1) {▼
var currURL = window.___location.toString();▼
var newURL=currURL.replace(/diffonly=1/,diffonly=0);▼
console.log(document.getElementById("difference").innerHTML);▼
if (document.getElementById("difference").innerHTML.match(/Show page below diff/) == -1) {▼
document.getElementById("difference").innerHTML += ' (<a href="' + newURL + '">Show page below diff</a>)';▼
}▼
addOnloadHook( pendch_init );
Line 29 ⟶ 19:
function pendch_init() {
▲ if (window.___location.toString().search(/diffonly=1/) != -1) {
▲ var currURL = window.___location.toString();
▲ var newURL=currURL.replace(/diffonly=1/,diffonly=0);
▲ console.log(document.getElementById("difference").innerHTML);
▲ if (document.getElementById("difference").innerHTML.match(/Show page below diff/) == -1) {
▲ document.getElementById("difference").innerHTML += ' (<a href="' + newURL + '">Show page below diff</a>)';
}
▲ }
// allow user settings through
if (pendch_enabled == null) {
|