| Attributes | Values |
|---|
| rdfs:label
| - Użytkownik:Dominiol/QuickTRE.js
|
| rdfs:comment
| - // QuickTRE // by Dominiol // var treCount = ($.cookie('treCount') == null)?0:$.cookie('treCount'); function sB() { addPortletLink('p-cactions', 'javascript:eksterminuj()', 'Eksterminuj (' + treCount + ')', 'ca-exterm'); } function addToCookieCount() { $.cookie('treCount', parseInt(treCount) + 1); } if($('#ca-edit')[0]) {$(document).ready(sB);} function eksterminuj() { var api = new mw.Api(); api.post({ format: 'json', action: 'edit', title: mw.config.get('wgPageName'), prependtext: '{{tre}}
', token: mw.user.tokens.get('editToken'), summary: 'Zeksterminowano!' }) .done( function (data) { addToCookieCount(), window.location.reload() }) .fail( function(error) { console.log(error); }); } //
|
| dbkwik:nonsensoped...iPageUsesTemplate
| |
| abstract
| - // QuickTRE // by Dominiol // var treCount = ($.cookie('treCount') == null)?0:$.cookie('treCount'); function sB() { addPortletLink('p-cactions', 'javascript:eksterminuj()', 'Eksterminuj (' + treCount + ')', 'ca-exterm'); } function addToCookieCount() { $.cookie('treCount', parseInt(treCount) + 1); } if($('#ca-edit')[0]) {$(document).ready(sB);} function eksterminuj() { var api = new mw.Api(); api.post({ format: 'json', action: 'edit', title: mw.config.get('wgPageName'), prependtext: '{{tre}}
', token: mw.user.tokens.get('editToken'), summary: 'Zeksterminowano!' }) .done( function (data) { addToCookieCount(), window.location.reload() }) .fail( function(error) { console.log(error); }); } //
|