Created
July 6, 2013 12:51
-
-
Save na2hiro/5939794 to your computer and use it in GitHub Desktop.
MediaWikiのUserMergeへのポスト関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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