mirror of
https://github.com/neocities/neocities.git
synced 2025-07-12 13:58:13 +02:00
fix js file, remove old surf mode crap
This commit is contained in:
parent
2e76bc9a0b
commit
eb316031a2
4 changed files with 8 additions and 85 deletions
|
@ -1,10 +1,8 @@
|
|||
<script>
|
||||
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))
|
||||
ele[i].setAttribute('target', '_blank')
|
||||
}
|
||||
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))
|
||||
ele[i].setAttribute('target', '_blank')
|
||||
}
|
||||
_nc_surf_page_overload()
|
||||
</script>
|
||||
}
|
||||
_nc_surf_page_overload()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue