Butun axtardiqlarinizi tapmaq ucun buraya: DAXIL OLUN
  Mp4 Mp3 Axtar Yukle
  Video Axtar Yukle
  Shekil Axtar Yukle
  Informasiya Melumat Axtar
  Hazir Inshalar Toplusu
  AZERI CHAT + Tanishliq
  Saglamliq Tibbi Melumat
  Whatsapp Plus Yukle(Yeni)

  • Ana səhifə
  • Təsadüfi
  • Yaxınlıqdakılar
  • Daxil ol
  • Nizamlamalar
İndi ianə et Əgər Vikipediya sizin üçün faydalıdırsa, bu gün ianə edin.

İstifadəçi:Nemoralis/common.js

  • İstifadəçi səhifəsi
  • Müzakirə
< İstifadəçi:Nemoralis
Etdiyiniz dəyişikliklərin yayımlanandan sonra effekt verməsi üçün brauzerinizin keşini təmizləməyə ehtiyacınız ola bilər. Bunun üçün Chrome, Firefox, Edge, yaxud Safari istifadəçisisinizsə, klaviaturanızın Shift düyməsini sıxaraq brauzerin ⟳ səhifə yeniləmək düyməsini klik edə bilərsiniz.
//mw.loader.load('http://127.0.0.1:5500/test.js');

/* Kütləvi patrullama */
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Matěj_Suchánek/patrolRevisions.js&action=raw&ctype=text/javascript'); // Backlink: [[d:User:Matěj_Suchánek/patrolRevisions.js]]
/* Eyni məzmunlu tərcümələri göstərmək */
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Amire80/allMessagesHideDifferents.js&action=raw&ctype=text/javascript'); // Backlink: [[meta:User:Amire80/allMessagesHideDifferents.js]]
mw.loader.load('//pl.wikipedia.org/w/index.php?title=Wikipedysta:Msz2001/abusefilter-analyzer-primer.js&action=raw&ctype=text/javascript'); // Backlink: [[w:pl:Wikipedysta:Msz2001/abusefilter-analyzer-primer.js]]
//mw.loader.load('//az.wikipedia.org/w/index.php?title=User:Nemoralis/transclutionCount.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Nemoralis/transclutionCount.js]]
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/all-in-one.js&action=raw&ctype=text/javascript'); // Backlink: [[meta:User:WhitePhosphorus/js/all-in-one.js]]
// [[m:User:Jon Harald Søby/diffedit.js]]
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Serhio_Magpie/diffedit.js&action=raw&ctype=text/javascript'); // Backlink: [[meta:User:Serhio_Magpie/diffedit.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Enterprisey/fancy-diffs.js&action=raw&ctype=text/javascript'); // Backlink: [[w:en:User:Enterprisey/fancy-diffs.js]]

// [[m:User:Jon Harald Søby/mobilePreview.js]]
//mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/mobilePreview.js&action=raw&ctype=text/javascript' ); 
/* Tünd rejimlə uyğun olmayan hissələri qırmızı haşiyə içərisinə al */
mw.util.addCSS(`html.skin-theme-clientpref-night body .mw-parser-output [style*='background'] { color: inherit; }`);
$('[style*="background"]:not([style*=";color"]):not([style*=" color"]):not([style^="color"])').css('border', 'dotted 3px red');
/* son */

//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); // Backlink: [[w:en:User:Joeytje50/JWB.js/load.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript'); // Backlink: [[w:en:User:Nardog/RefRenamer.js]]

mw.hook('moremenu.ready').add(function (config) {
    MoreMenu.addSubmenuLink(
        'page',
        'page-logs',
        'Patrul jurnalı',
        '/wiki/Special:Log?type=patrol&page=' + config.page.name
    );
});

// Make HotCat auto-save always, even if multiple categories are changed
mw.loader.using("mediawiki.user", function () {
  $('body').on( 'submit', '#hotcatCommitForm', function () {
    var submitType = this.wpDiff;
    if (submitType && (!this.oldid || this.oldid.value == '0')) {
      this.wpEditToken.value = mw.user.tokens.get("csrfToken");
      submitType.name = submitType.value = 'wpSave';
    }
    return true;
  });
});

/**
 * Add a custom "Examine change" action to Instant Diffs navigation.
 * Searches for abuse log entries near the current revision timestamp.
 */
mw.hook( 'instantDiffs.navigation.complete' ).add( ( navigation ) => {
	if ( !navigation ) return;

	const Api = instantDiffs.modules.Api;

	/**
	 * Handle the "Examine change" action click
	 */
	const handler = ( widget ) => {
		// Get article data
		const article = widget.getArticle();
		const title = article.get( 'title' );
		const timestamp = article.get( 'timestamp' );

		if ( !title || !timestamp ) {
			onRequestError( widget, 'Missing title or timestamp.' );
			return;
		}

		// Calculate timestamp range (±30 seconds from revision time)
		const revisionDate = new Date( timestamp );
		const startDate = new Date( revisionDate.getTime() - 30000 );  // 30 seconds before
		const endDate = new Date( revisionDate.getTime() + 30000 );    // 30 seconds after

		// Show loading state
		navigation.pendingAction( widget, true );

		// Query abuse log for entries near this revision
		const params = {
			action: 'query',
			list: 'abuselog',
			afldir: 'newer',
			afltitle: title,
			afluser: article.get( 'user' ),
			aflstart: startDate.toISOString(),
			aflend: endDate.toISOString(),
			afllimit: 1,
			aflprop: 'ids',
			format: 'json',
			formatversion: 2,
			uselang: mw.config.get( 'wgUserLanguage' ),
			errorformat: 'html',
		};

		Api.get( params, article.get( 'hostname' ) )
			.then( ( data ) => onRequestDone( widget, data ) )
			.fail( ( error, data ) => onRequestError( widget, Api.getApi.getErrorMessage( data ) ) );
	};

	/**
	 * Handle successful API response
	 */
	const onRequestDone = ( widget, data ) => {
		// Clear loading state
		navigation.pendingAction( widget, false );

		// Extract first abuse log entry
		const entry = data.query.abuselog[ 0 ];
		if ( !entry ) {
			onRequestError( widget, 'No abuse log entries found for this revision.' );
			return;
		}

		// Build URL to abuse filter examination page
		const href = mw.util.getUrl( `Special:AbuseFilter/examine/log/${ entry.id }` );

		// Update all instances of this action with the found URL
		navigation.eachCustomActionWidget( widget, ( actionWidget ) => {
			actionWidget
				.setHref( href )
				.setHandler();  // Remove handler since we now have a direct link
		} );

		// Navigate to the examination page
		navigation.execAction( widget );
	};

	/**
	 * Handle API error or no results
	 */
	const onRequestError = ( widget, message ) => {
		// Clear loading state
		navigation.pendingAction( widget, false );

		// Show error notification
		mw.notify( message, {
			type: 'error',
			tag: widget.getOption( 'name' ),
		} );
	};

	// Register the custom action
	navigation.addCustomAction( {
		name: 'examineAbuseFilter',
		label: 'Dəyişikliyi yoxla',
		icon: 'journal',
		handler: handler,
	} );
} );
Mənbə — "https://az.wikipedia.org/w/index.php?title=İstifadəçi:Nemoralis/common.js&oldid=8434752"
Informasiya Melumat Axtar