User:NguoiDungKhongDinhDanh/RedLinks.js

// For attribution: User:DannyS712/Red files.js function noredfilelinks { $('a.new').each(function {		this.href = this.href					.replace(/(?<=[\w\-]{2,}\/|title=)[^:\/]+?:[^:]+?(?:\?|&)wpDestFile=/g, 'File:')					.replace(/(\?|&)action=edit&redlink=1/g, '');	}); }

$.when($.ready).then(function {	mw.hook('wikipage.content').add(noredfilelinks); });