User:Takiten/monobook.js: Difference between revisions

Content deleted Content added
Takiten (talk | contribs)
No edit summary
Takiten (talk | contribs)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 50:
document.getElementById('contentSub').innerHTML = '(<a href="http://en.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&revert=1&user1='+user1+'&user2='+user2+'">Revert</a> / <a href="javascript:var message = getMessage(\'revert\', \''+user1+'\', \''+user2+'\');">Message</a>) (<a href="http://en.wikipedia.org/w/index.php?title=' + _GET['title'] + '&action=edit&oldid=' + _GET['oldid'] + '&vandalism=1&user1='+user1+'&user2='+user2+'">Vandalism</a> / <a href="javascript:var message = getMessage(\'vandalism\', \''+user1+'\', \''+user2+'\');">Message</a>) (Warn: <a href="http://en.wikipedia.org/w/index.php?title=User_talk:'+user2+'&action=edit&section=new&warn=1">Test</a> / <a href="http://en.wikipedia.org/w/index.php?title=User_talk:'+user2+'&action=edit&section=new&warn=2">Blatant</a> / <a href="http://en.wikipedia.org/w/index.php?title=User_talk:'+user2+'&action=edit&section=new&warn=3">Nonsense</a> / <a href="http://en.wikipedia.org/w/index.php?title=User_talk:'+user2+'&action=edit&section=new&warn=4">Blanking</a>)';
} else if (___location.href.match(/revert=1/)) {
document.getElementById('wpSummary').value = 'Reverted edits by Special[[User:Contributions/'+_GET['user2']+'|'+_GET['user2']+']] to last version by Special[[User:Contributions/'+_GET['user1']+'|'+_GET['user1']+']]';
document.getElementById('editform').submit();
} else if (___location.href.match(/revert=2/)) {
document.getElementById('wpSummary').value = 'Reverted edits by Special[[User:Contributions/'+_GET['user2']+'|'+_GET['user2']+']] to last version by Special[[User:Contributions/'+_GET['user1']+'|'+_GET['user1']+']] ('+_GET['message']+')';
document.getElementById('editform').submit();
} else if (___location.href.match(/vandalism=1/)) {
document.getElementById('wpSummary').value = 'Reverted vandalism by Special[[User:Contributions/'+_GET['user2']+'|'+_GET['user2']+']] to last version by Special[[User:Contributions/'+_GET['user1']+'|'+_GET['user1']+']]';
document.getElementById('editform').submit();
} else if (___location.href.match(/vandalism=2/)) {
document.getElementById('wpSummary').value = 'Reverted vandalism by Special[[User:Contributions/'+_GET['user2']+'|'+_GET['user2']+']] to last version by Special[[User:Contributions/'+_GET['user1']+'|'+_GET['user1']+']] ('+_GET['message']+')';
document.getElementById('editform').submit();
} else if (___location.href.match(/warn=1/)) {