MediaWiki:Gadget-SureSureSure.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
ora anche per segnare come verificata - aggiunto anche prefisso azione; tolto .ready() deprecato |
aggiunta nota documentativa e rimosso .off() |
||
Riga 1:
/**
* Per ringraziare chiede conferma, mentre per rollbackare no. BENE. asd
*
* To thank it asks for confirmation. To rollback no. GOOD. asd
*
* Note that this snippets should be executed after
* the 'mediawiki.page.patrol.ajax' ResourceLoader module in order
* to prevent its default action.
*
* @license [[WTFPL]]
Line 11 ⟶ 17:
};
$( function () {
$( '.mw-rollback-link a, .patrollink a
var yes = 'ok-guy-im-not-accidetally-clicking-this';
if( ! $(this).hasClass(yes) && ! window.sureSureSure.opts._yetConfirmed ) {
|