This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var links = document.getElementsByTagName("a"); | |
var link_count = links.length; | |
var checkDomain = function(url) { | |
if ( url.indexOf('//') === 0 ) { url = location.protocol + url; } | |
return url.toLowerCase().replace(/([a-z])?:\/\//,'$1').split('/')[0]; | |
}; | |
var isExternal = function(url) { | |
return ( ( url.indexOf(':') > -1 || url.indexOf('//') > -1 ) && checkDomain(location.href) !== checkDomain(url) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.pane-delete').each(function() { jQuery(this).trigger('click'); }); |