User:IKhitron/global.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
mw.loader.load('//he.wikipedia.org/w/index.php?title=MediaWiki:סקריפטים/88.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');
mw.loader.load('https://ru.wikipedia.org/w/index.php?title=User:Stjn/cdAutocompleteFix.js&action=raw&ctype=text/javascript');
$(function() {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Watchlist' &&
window.location.hostname !== 'he.wikipedia.org') {
$('.mw-changeslist-line-not-watched ').hide();
$('.mw-changeslist-line-watched span.mw-title').before( // Thanks to חיים 7
$('<a>', {text: '♦', title: 'סמן עריכה כנצפתה', href: '#nw'})
.css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'})
.click(function() {
var $this = $(this);
$.getJSON($this.siblings('span.mw-title').find('a:first').attr('href'));
$this.closest('.mw-changeslist-line-watched').removeClass('.mw-changeslist-line-watched')
.addClass('mw-changeslist-line-not-watched').hide();
$this.remove();
}
)
);
mw.loader.using('mediawiki.util').done( function() {
$( mw.util.addPortletLink('p-cactions', '#', 'גלה עריכות שהוסתרו') )
.click(function() {
$('.mw-changeslist-line-not-watched ').show();
$('.mw-changeslist-line-watched ').show();
} );
} );
mw.loader.using('mediawiki.util').done( function() {
$( mw.util.addPortletLink('p-cactions', '#', 'הסתר עריכות שנקראו') )
.click(function() {
$('.mw-changeslist-line-not-watched ').hide();
} );
} );
}
});
mw.loader.using( 'mediawiki.util' ).done( function () {
mw.util.addCSS( '\
.cd-comment-menu { display:inline-block; margin:0 0 0 1em; font-size:inherit; }\
.sitedir-rtl .cd-comment-menu { margin:0 1em 0 0; }\
' );
} );
mw.hook( 'convenientDiscussions.pageReady' ).add( function ( cd ) {
cd.comments.forEach( function ( comment ) {
comment.$menu.appendTo( comment.$header );
} );
} );
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' );
$(function() {
$('.diff-currentversion-title').before($('<div>').text(mw.config.get('wgPageName').replace(/_/g, ' '))
.addClass('diff-currentversion-title')
.css({background: 'lightyellow',fontSize:'30px',textAlign:'center'}));
});