From bacded47d21f04d93b5d52ccebb9a7464e4fa5e5 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 4 Jul 2021 20:06:08 +0200 Subject: [PATCH] Remove adlists tab from settings page Signed-off-by: yubiuser --- scripts/pi-hole/js/settings.js | 3 ++- settings.php | 20 +------------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/scripts/pi-hole/js/settings.js b/scripts/pi-hole/js/settings.js index 02f5b5a2..dd407348 100644 --- a/scripts/pi-hole/js/settings.js +++ b/scripts/pi-hole/js/settings.js @@ -121,7 +121,8 @@ $(".confirm-disablelogging-noflush").confirm({ }); $(".api-token").confirm({ - text: "Make sure that nobody else can scan this code around you. They will have full access to the API without having to know the password. Note that the generation of the QR code will take some time.", + text: + "Make sure that nobody else can scan this code around you. They will have full access to the API without having to know the password. Note that the generation of the QR code will take some time.", title: "Confirmation required", confirm: function () { window.open("scripts/pi-hole/php/api_token.php"); diff --git a/settings.php b/settings.php index a59fe423..1790503f 100644 --- a/settings.php +++ b/settings.php @@ -219,7 +219,7 @@ if (isset($setupVars["API_PRIVACY_MODE"])) { ?> class="active"> " role="tab" data-toggle="tab">System -
  • class="active"> - " role="tab" data-toggle="tab">Adlists -
  • class="active"> " role="tab" data-toggle="tab">DNS
  • @@ -439,21 +436,6 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "adlists", " - -
    in active"> -
    -
    -
    -
    -

    Adlists used to generate Pi-hole's Gravity

    -
    -
    -

    Please use the group management pages to edit the adlists used by Pi-hole.

    -
    -
    -
    -
    -
    in active">