Loading...   


$(document).ready(function() { 
					$(".wikidisplay a:not(a:has(img))").each(function( index ) {
						// console.log( index + ": " + $( this ).text() );
						
						// We want to append classes to http and https where they are not original wiki links
						if($( this ).attr("href")){
							url = $( this ).attr("href");
							if($( this ).attr("href").match(/https/i) && !($( this ).attr("href").match(/p\?/i)) && !(url.match(/' . preg_replace('/"/i', '', json_encode($GM_Root)). '/i))){ 
								$( this ).addClass( "ssllink" ); 
								// Get Favicons via Googles API
								$(this).css("background", "url(\'includes/img?GetFavicon=" + encodeURIComponent($( this ).attr("href")) + "&type=https\') center left no-repeat");
								$(this).css("padding-left", "18px");
							}
							else if($( this ).attr("href").match(/http/i) && !($( this ).attr("href").match(/p\?/i)) && !(url.match(/' . preg_replace('/"/i', '', json_encode($GM_Root)). '/i))){ 
								$( this ).addClass( "reglink" ); 
								// Get Favicons via Googles API
								$(this).css("background", "url(\'includes/img?GetFavicon=" + encodeURIComponent($( this ).attr("href")) + "&type=http\') center left no-repeat");
								$(this).css("padding-left", "18px");
							}
						}
						
						$(this).addClass("tooltips");
						$(this).attr("data-placement", "top");
						// $(this).attr("data-original-title", $( this ).attr("href"));
						// $(this).data("data-original-title", "test");
						// 
					});

Raw Paste Data