MediaWiki:Common.js: verschil tussen versies

Uit NeBelEx Wiki
Ga naar: navigatie, zoeken
(correctie)
Regel 9: Regel 9:
 
$('#fp-rc ul.special li>a[title="Speciaal:Logboeken/rights"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/delete"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/move"],#fp-rc ul.special li>a[title="Speciaal:Logboeken/renameuser"]')
 
$('#fp-rc ul.special li>a[title="Speciaal:Logboeken/rights"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/delete"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/move"],#fp-rc ul.special li>a[title="Speciaal:Logboeken/renameuser"]')
 
.parent().remove();
 
.parent().remove();
 
/* var $els = $("#fp-rc ul.special li").contents().filter( function(){
 
return this.className != 'rc-title' && this.parentNode.className != 'rc-title';
 
}).remove();
 
  
 
$("#fp-rc ul.special li:empty").remove();
 
$("#fp-rc ul.special li:empty").remove();

Versie van 16 mei 2010 om 20:18

/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers */

// Extend functionality Main_page#recentchanges-include

$(function () {

	$('#fp-rc ul.special li>a[href*="wiki"]:not(.mw-userlink)').addClass("rc-title").append(" ");

	$('#fp-rc ul.special li>a[title="Speciaal:Logboeken/rights"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/delete"], #fp-rc ul.special li>a[title="Speciaal:Logboeken/move"],#fp-rc ul.special li>a[title="Speciaal:Logboeken/renameuser"]')
	.parent().remove();

	$("#fp-rc ul.special li:empty").remove();



});



// Extend functionality External-Links (open in new window)
function getXterlinks()
// By Thong Nguyen nkthong@yahoo.com
// This code just VIRTUALLY add a target="_Blank" to any external link in the wiki document!
// NOTE: YOU DON"T Need to modify any of your text document!
{
	var Xterlinks = document.getElementsByTagName('A');
	for (var i=0;i<Xterlinks.length;i++)
	{ 
		var eachLink = Xterlinks[i];
		var regexp_isYourdomain="nebelex"; 
		var regexp_ishttp=/(http(.)*:\/\/)/;
		//Check if the link is valid and is external link
		if( (eachLink.href != null) && (eachLink.href.match(regexp_isYourdomain) == null) && eachLink.href.match(regexp_ishttp)!=null )
	  	{
  			eachLink.target ="_blank";//make the target for this external link
	  	}
	}
}
getXterlinks();