mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
15 lines
439 B
JavaScript
15 lines
439 B
JavaScript
import "../styles/global.scss";
|
|
import { suffix as siteSuffix } from "virtual:jekyll-config";
|
|
|
|
if (siteSuffix) {
|
|
if (
|
|
!document.location.hostname.endsWith(siteSuffix) &&
|
|
!document.location.hostname.endsWith(siteSuffix + ".")
|
|
) {
|
|
document.title = document.title.replace(/(清华)|(tsinghua)|(tuna)/gi, "");
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
document.body.classList.add("nonthu");
|
|
});
|
|
}
|
|
}
|