mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
redirect for all pages on surf mode, not just offsite
This commit is contained in:
parent
6195c784ad
commit
44350c9d84
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue