MediaWiki:Gadget-common-special-abusefilter.js
Qiyofa
Eslatma: Saqlaganingizdan soʻng, oʻzgarishlarni koʻrish uchun brauzeringiz keshini tozalashingizga toʻgri kelishi mumkin.
- Firefox / Safari: Shift tugmasini bosgan holda, Yangilash unsurlar darchasini bosing, yoki Ctrl-F5 yoki Ctrl-R (Macda ⌘-R) ni bosing
- Google Chrome: Ctrl-Shift-R (Macda ⌘-Shift-R) ni bosing
- Internet Explorer / Edge: Ctrlni bosgan holda, Yangilashni bosing, yoki Ctrl-F5ni bosing
- Opera: Ctrl-F5ni bosing.
mw.loader.using( 'mediawiki.util' ).done( function () {
mw.util.addCSS('tr.mw-abusefilter-list-disabled td.TablePager_col_af_public_comments * {opacity:0.5}')
} );
if( /\/examine\//.test(document.URL) ) importScript( 'MediaWiki:AbuseLog.js' );
$(function(){
//select box: append values to descriptions; was: "Normalise", will be: "Normalise (norm)"
var key
$('#wpFilterBuilder').find('option').each( function(i, opt){
key = /^[a-z\d_]+/.exec(opt.value)
if( !key ) return
key = key[0]
if( opt.text.indexOf(key) == -1 )
opt.text = opt.text + ' ('+key+')'
if( opt.title == '' ) opt.title = opt.value
})
//text boxes: auto resize
$('#wpFilterRules, #wpFilterNotes, #wpTestFilter')
.keyup( autoResizeTBox )
.each ( autoResizeTBox )
})
//400 px ix max height
function autoResizeTBox(){
var hh = Math.min( 400, Math.max(this.scrollHeight, this.clientHeight) )
if (hh > this.clientHeight) this.style.height = hh + 'px'
}