diff --git a/assets/travelling.js b/assets/travelling.js index c4a455a89..2a8a40254 100644 --- a/assets/travelling.js +++ b/assets/travelling.js @@ -134,12 +134,12 @@ function travelling(){ url[130]="https://sorryfu.top"; - - - //修正概率 - url[131]="https://github.com/volfclub/travelling"; + if (document.referrer) { + var origin = new URL(document.referrer).origin; + url.splice(url.indexOf(origin), 1); + } - var ints=parseInt(Math.random()*(url.length)); + var ints=Math.floor(Math.random() * url.length); window.location=url[ints]; - } \ No newline at end of file + }