fix: remove user agent (#695)

This commit is contained in:
nyagami
2024-01-18 20:32:01 +07:00
committed by GitHub
parent 402052bb22
commit cd3d96937a
116 changed files with 769 additions and 417 deletions
+1 -3
View File
@@ -49,7 +49,6 @@ var ReadwnPlugin = /** @class */ (function () {
this.icon = "multisrc/readwn/icons/".concat(iconFileName, ".png");
this.site = metadata.sourceSite;
this.version = "1.0.0";
this.userAgent = "";
this.filters = metadata.filters;
}
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
@@ -179,8 +178,7 @@ var ReadwnPlugin = /** @class */ (function () {
"Content-Type": "application/x-www-form-urlencoded",
Referer: this.site + "/search.html",
Origin: this.site,
"user-agent": this.userAgent ||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
},
method: "POST",
body: JSON.stringify({