Fix antiproxying (again).

Fuck it, just hardcode it. They rewrite certain parts of our markup so
we can't rely on anything in the html.
This commit is contained in:
evazion
2020-06-02 23:03:04 -05:00
parent bfa76abb56
commit 647556761b
4 changed files with 8 additions and 14 deletions

View File

@@ -20,8 +20,8 @@ $(function() {
e.preventDefault();
});
if (Danbooru.config["enable_antiproxying?"] && !location.hostname.endsWith(Danbooru.config.domain)) {
location.hostname = Danbooru.config.hostname;
if (location.hostname.endsWith("danbooru.me")) {
location.hostname = "danbooru.donmai.us";
}
});