|
|
| (একই ব্যবহারকারী দ্বারা সম্পাদিত একটি মধ্যবর্তী সংশোধন দেখানো হচ্ছে না) |
| ১ নং লাইন: |
১ নং লাইন: |
| mw.loader.using( 'mediawiki.util' ).done( function () { | | mw.notify("My userscript loaded!"); |
| ( function () {
| |
| // Wait for the page to be ready
| |
| $( function () {
| |
| var message = 'JavaScript (User: ARI)';
| |
| var $testDiv = $( '<div>' )
| |
| .text( message )
| |
| .css( {
| |
| 'background-color': '#d4edda',
| |
| 'color': '#155724',
| |
| 'text-align': 'center',
| |
| 'padding': '10px',
| |
| 'border-bottom': '2px solid #c3e6cb',
| |
| 'font-weight': 'bold',
| |
| 'position': 'fixed',
| |
| 'top': '0',
| |
| 'left': '0',
| |
| 'width': '100%',
| |
| 'z-index': '9999'
| |
| } );
| |
| | |
| $( 'body' ).prepend( $testDiv );
| |
| | |
| setTimeout( function () {
| |
| $testDiv.fadeOut( 'slow' );
| |
| }, 5000 );
| |
|
| |
| console.log( "JS Test: Success." );
| |
| } );
| |
| }() );
| |
| alert( "working!" );
| |
| console.log( "JS Loaded" );
| |
| } );
| |
১১:৪২, ১৮ জুন ২০২৬ তারিখে সম্পাদিত সর্বশেষ সংস্করণ
mw.notify("My userscript loaded!");