diff --git a/html/home.html b/html/home.html index 7211d5c..e627510 100644 --- a/html/home.html +++ b/html/home.html @@ -53,8 +53,8 @@ - - + + diff --git a/index.js b/index.js index d74f881..0a5ede1 100644 --- a/index.js +++ b/index.js @@ -252,7 +252,11 @@ app.get("/", function(req, res) { if (req.server.downloadsDisabled && process.platform == "linux") { downloadDisabled.forEach(x => { html = html.replace(`menu-${x}`, 'menuDisabled') }) html = html.replace('id="dl" style="display: none', 'style="display: block') - .replace('No active daily level!', '[Blocked by RobTop]') + .replace('No active < span id="noLevel">daily level!', '[Blocked by RobTop]') + } + if (html.includes('menuDisabled" src="../assets/category-weekly')) { // if weekly disabled, replace with featured + html = html.replace('block" id="menu_weekly', 'none" id="menu_weekly') + .replace('none" id="menu_featured', 'block" id="menu_featured') } return res.status(200).send(html) })