MediaWiki:Gadget-Twinkle.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
Baris 4.465:
{
title: "
preferences: [
// TwinkleConfig.openTalkPage (array)
Baris 4.471:
{
name: "openTalkPage",
label: "Buka halaman pembicaraan pengguna setelah
type: "set",
setValues: { agf: "
},
Baris 4.489:
{
name: "markRevertedPagesAsMinor",
label: "
type: "set",
setValues: { agf: "
},
Baris 4.498:
{
name: "watchRevertedPages",
label: "
type: "set",
setValues: { agf: "
},
Baris 6.414:
if( parseInt( Morebits.queryString.get('oldid'), 10) !== mw.config.get('wgCurRevisionId') ) {
// not latest revision
alert("
return;
}
Baris 6.442:
var revLink = document.createElement('a');
revLink.appendChild( spanTag( 'Black', '[' ) );
revLink.appendChild( spanTag( 'SteelBlue', '
revLink.appendChild( spanTag( 'Black', ']' ) );
revNode.appendChild(revLink);
Baris 6.449:
var revVandLink = document.createElement('a');
revVandLink.appendChild( spanTag( 'Black', '[' ) );
revVandLink.appendChild( spanTag( 'Red', '
revVandLink.appendChild( spanTag( 'Black', ']' ) );
revVandNode.appendChild(revVandLink);
Baris 6.566:
agfLink.appendChild( spanTag( 'Black', '[' ) );
agfLink.appendChild( spanTag( 'DarkOliveGreen', '
agfLink.appendChild( spanTag( 'Black', ']' ) );
vandLink.appendChild( spanTag( 'Black', '[' ) );
vandLink.appendChild( spanTag( 'Red', '
vandLink.appendChild( spanTag( 'Black', ']' ) );
normLink.appendChild( spanTag( 'Black', '[' ) );
normLink.appendChild( spanTag( 'SteelBlue', '
normLink.appendChild( spanTag( 'Black', ']' ) );
Baris 6.655:
if (revertToRevID !== self.params.rev) {
self.statitem.error( '
return;
}
Baris 6.702:
if( revs.length < 1 ) {
self.statelem.error( '
return;
}
Baris 6.787:
var userHasAlreadyConfirmedAction = false;
if (self.params.type !== 'vand' && count > 1) {
if ( !confirm( self.params.user + '
Morebits.status.info( '
return;
}
Baris 6.804:
switch( self.params.type ) {
case 'agf':
extra_summary = prompt( "
if (extra_summary === null)
{
self.statelem.error( '
return;
}
Baris 6.813:
userstr = self.params.user;
summary = "
userstr + "|
break;
Baris 6.821:
userstr = self.params.user;
gooduserstr = self.params.gooduser;
summary = "
userstr + "|" + userstr + "]] ([[User talk:" + userstr + "|
gooduserstr + "." + Twinkle.getPref('summaryAd');
break;
Baris 6.830:
default:
if( Twinkle.getPref('offerReasonOnNormalRevert') ) {
extra_summary = prompt( "
if (extra_summary === null)
{
self.statelem.error( '
return;
}
Baris 6.840:
userstr = self.params.user;
summary = "
userstr + "|" + userstr + "]] ([[User talk:" + userstr + "|
Twinkle.getPref('summaryAd');
break;
}
if (Twinkle.getPref('confirmOnFluff') && !userHasAlreadyConfirmedAction && !confirm("
self.statelem.error( '
return;
}
Baris 6.855:
Twinkle.getPref('openTalkPage').indexOf( self.params.type ) !== -1 &&
mw.config.get('wgUserName') !== self.params.user ) {
Morebits.status.info( 'Info', [ '
query = {
Baris 6.897:
Morebits.wiki.actionCompleted.redirect = self.params.pagename;
Morebits.wiki.actionCompleted.notice = "
var wikipedia_api = new Morebits.wiki.api( '
wikipedia_api.params = self.params;
wikipedia_api.post();
Baris 6.910:
code.style.fontFamily = "monospace";
code.appendChild(document.createTextNode(blacklist));
apiobj.statelem.error(['
} else {
apiobj.statelem.info("
}
}
|