Skip to content

Commit

Permalink
Add BHL Dark Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekai-s authored Aug 15, 2021
1 parent 20032d2 commit fdbd68c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions branches-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,20 @@ var Int = {
category: ""
}
};

function bhlDark() {
var bhlDarkStyle = document.createElement("style");
bhlDarkStyle.setAttribute("type", "text/css");
bhlDarkStyle.innerHTML = "@import url(https://cdn.jsdelivr.net/gh/scp-cn-tech/interwiki@cn/style-bhl-dark.css);";
document.getElementsByTagName("head")[0].insertBefore(bhlDarkStyle, document.getElementById("custom-style"));
}

function bhlDarkCheck() {
try {
if (window.parent.window.BHLDarkFrame) {
bhlDark();
}
} catch(e) {}
}

bhlDarkCheck();

0 comments on commit fdbd68c

Please sign in to comment.