在友链中点击网站,有的网址后面跟个.com/#{start:/}是什么意思
在友链中点击网站,有的网址后面跟个https://XXX.com/#{start:/}是什么意思,这种情况下,谷歌浏览器的小五星可以点击收藏,如果把后面的/#{start:/}这个去掉,小五星收藏就没有了,严控怀疑这个网站是个坑
看他网站前面有段代码是干什么的
<script> | |
if (sessionStorage) { | |
if (!sessionStorage.getItem("lm_session")) { | |
var r = document.referrer; | |
var s = {}; | |
if (location.search.substr(1)) { | |
s.q = location.search.substr(1) | |
} | |
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
s.d = "m" | |
} | |
if (/^http(s)?:\/\/www.baidu.com\/link\?(.*)$/i.test(r) || /^http(s)?:\/\/m.baidu.com\/from=(.*)$/i | |
.test(r)) { | |
s.se = "b" | |
} | |
if (/^http(s)?:\/\/www.so.com\/link\?(.*)$/i.test(r) || /^http(s)?:\/\/m.so.com\/s\?q=(.*)$/i.test(r)) { | |
s.se = "s" | |
} | |
if (/^http(s)?:\/\/www.sogou.com\/link\?(.*)$/i.test(r) || | |
/^http(s)?:\/\/wap.sogou.com\/web\/searchList.jsp\?(.*)$/i.test(r)) { | |
s.se = "sogo" | |
} | |
if (/^http(s)?:\/\/(.*).bing.com\/(.*)$/i.test(r)) { | |
s.se = "bing" | |
} | |
if (/^http(s)?:\/\/(.*).google.(.*)\/(.*)$/i.test(r)) { | |
s.se = "g" | |
} | |
s.start = "/" + location.href.replace(/^http(s)?:\/\/(.*?)\//, "").split("?")[0].split("#")[0]; | |
if (r) { | |
s.sr = r | |
} | |
sessionStorage.setItem("lm_session", JSON.stringify(s).replace(/\"/g, "")); | |
location.hash = sessionStorage.getItem("lm_session") | |
} else { | |
location.hash = sessionStorage.getItem("lm_session") | |
} | |
}; | |
Object.freeze(location) | |
</script> |
这种网站是高质量站还是垃圾站?