def darkmode_on(config, pages): for p in pages: config.set("colors.webpage.darkmode.enabled", True, p)