Skip to content

Instantly share code, notes, and snippets.

@na2hiro
Created July 6, 2013 12:51
Show Gist options
  • Save na2hiro/5939794 to your computer and use it in GitHub Desktop.
Save na2hiro/5939794 to your computer and use it in GitHub Desktop.
MediaWikiのUserMergeへのポスト関数
var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-latest.js';
document.getElementsByTagName('head')[0].appendChild(script);
var sessid="~";
function del(name){
$.post("/index.php/%E7%89%B9%E5%88%A5:%E5%88%A9%E7%94%A8%E8%80%85%E3%81%AE%E7%B5%B1%E5%90%88",{
olduser:name,
newuser:"Anonymous",
deleteuser:1,
token:sessid,
},function(){console.log("ok")});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment