mirror of
https://github.com/gogs/gogs.git
synced 2026-02-08 15:37:09 +01:00
16 lines
453 B
JavaScript
16 lines
453 B
JavaScript
// Fix landing page tab title: "Introduction - ..." → "Gogs - ..."
|
|
(function () {
|
|
var old = "Introduction - Gogs";
|
|
var fix = function () {
|
|
if (document.title.startsWith(old)) {
|
|
document.title = document.title.replace(old, "Gogs");
|
|
}
|
|
};
|
|
new MutationObserver(fix).observe(
|
|
document.querySelector("title") || document.head,
|
|
{ childList: true, subtree: true, characterData: true }
|
|
);
|
|
fix();
|
|
setTimeout(fix, 100);
|
|
})();
|