משתמש:IKhitron/common.js
מראה
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
mw.loader.using( 'mediawiki.util' ).done(function(){
function importMyScript() {
'use strict';
var args = arguments;
mw.loader.using('mediawiki.util', function() {
for (var arg = 0; arg < args.length; arg++) {
try {
importScript( "User:IKhitron/" + args[arg] + ".js" );
}
catch(e) {}
}
});
}
// removed: 16, 22, 75; 9, 61
// moved to global: 88
importUserScript(65, 76, 52, 71, 73);
importUserScript(46, 67, 81, 101);
importScript('en:User:Guycn2/UserInfoPopup.js');
// window.rollbackConfirm = true;
// myscripts
//importMyScript(95);
mw.util.addPortletLink('p-personal', mw.util.getUrl() + "?action=purge", 'מטמון', 'pt-refresh-cache', '', '', '#pt-mytalk');
//mw.loader.load("https://fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget" +
// "-FlowDeluxe.js&action=raw&ctype=text/javascript");
//mw.loader.load('ext.gadget.FlowDeluxeLocal');
if (typeof window.orientation == 'undefined') {
// desktop
mw.loader.load('ext.gadget.RestoreWarnings');
importUserScript(33, 89);
importUserScript(40, 44);
importUserScript(78, 80);
if ( mw.config.get( 'wgNamespaceNumber' ) == 14 && mw.config.get( 'wgPageName' ) == 'קטגוריה:קטגוריות_לריקון_מיידי') {
$( '.CategoryTreeEmptyBullet' ).closest( 'li' ).remove(); // remove empty cats
$( '.mw-category-group:not(:has(li))' ).remove(); // remove emptied sections
}
$( mw.util.addPortletLink( 'p-cactions', '#', 'מיספור רשימות' ) )
.click( function() {
$( '.mw-body-content ul' ).each( function() {
$( this ).children( 'li' ).wrapAll( '<ol> ');
} ); // each
} ); //click
}
// mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Iniquity/test.js&action=raw&ctype=text/javascript');
// mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript');
importScript('User:1Or/misdar.js');
});
var hash = navigator.userAgent.indexOf( 'Firefox' ) === -1 ? location.hash :
decodeURIComponent( location.hash );
if ( hash.indexOf( ' ' ) !== -1 ) {
var restoredFragment = hash.substring( 1 ).replace( / /g, '_' );
var targetElement = document.getElementById( restoredFragment );
if ( targetElement ) {
if ( typeof targetElement.scrollIntoView !== 'undefined' ) {
targetElement.scrollIntoView();
console.log(typeof history);
if ( typeof history !== 'undefined' ) {
history.replaceState( {}, '', '#' + restoredFragment );
}
} else {
location.hash = '#' + restoredFragment;
}
}
}
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Samwilson/TemplateWizard.js&action=raw&ctype=text/javascript' );
$(function() {
$('.mw-diff-movedpara-left, .mw-diff-movedpara-right')
.parent()
.parent()
.find('.diff-deletedline, .diff-addedline')
.addClass('my-moved-para');
});
/*$('#pt-talk-alert')
.text('שיחה')
.css({
background: 'none',
padding: 0
});*/
// mw.loader.load('ext.gadget.GlobalWatchlist');
importScript('user:Uziel302/JWB.js/loader.js');
importScript('משתמש:קיפודנחש/pv-errors.js');
window.script88limit = 1010;
//importScript('user:IKhitron/infobox.js');
//importScript('user:IKhitron/infobox1.js');
importScript('משתמש:מקף/common.js/MyScripts/מדיה ויקי:Gadget-CheckRequest.js');
//importScript('user:IKhitron/tooltip.js');