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:
@@ -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";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user