redirect for all pages on surf mode, not just offsite

This commit is contained in:
Kyle Drake 2015-03-29 19:45:02 -07:00
parent 6195c784ad
commit 44350c9d84

View file

@ -1,7 +1,7 @@
function _nc_surf_page_overload() {
var ele = document.getElementsByTagName('a')
for(var i=0; i<ele.length; i++) {
if(ele[i].href.match(/^\w+:\/\//i) && !ele[i].href.match(/^.+\.neocities\.org/i))
if(ele[i].href.match(/^\w+:\/\//i)) // && !ele[i].href.match(/^.+\.neocities\.org/i))
ele[i].setAttribute('target', '_blank')
}
}