新增xhamster视频下载,新增视频在线预览(xgPlayer)(同步更新)

This commit is contained in:
chuzhongzai
2023-02-23 13:09:02 +08:00
parent b1bd4d8a34
commit 0c2c77bc0d
2 changed files with 32 additions and 3 deletions
+5
View File
@@ -239,8 +239,13 @@ function validateLink(rawLink){
else if(rawLink.includes("pornhub.com")){
return rawLink.includes("view_video.php")
}
else if(rawLink.includes("xhamster") && rawLink.includes(".com")){
return true
}
}
function coverLink(rawLink){
if(rawLink.includes("xhamster"))
rawLink = "https://zh.xhamster" + rawLink.substring(rawLink.indexOf(".com"))
let url = new URL(rawLink)
maskDomain.value.forEach((mask) => {
if(url.host === mask['raw'])