From a74bb8ae5e20afa57cbd8bcbffa9420a6281593e Mon Sep 17 00:00:00 2001 From: NateN1222 Date: Sun, 30 Jul 2017 15:27:52 -0500 Subject: Changed browser action UI --- html/display_panel/content/main_panel.js | 14 ++++++-------- html/display_panel/content/panel-styles.css | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'html/display_panel/content') diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js index 3bcb164..2becb4e 100644 --- a/html/display_panel/content/main_panel.js +++ b/html/display_panel/content/main_panel.js @@ -36,6 +36,7 @@ function generate_HTML(blocked_data){ var button_allow_all = 'Allow all scripts in this page'; var button_block_nonfree = 'Block all nonfree/nontrivial scripts from this page'; var button_new_tab = 'Open this report in a new tab'; + var button_whitelist = '
'; var htmlDoc = document;// Not neccessary var accept = htmlDoc.getElementById("accepted"); var blocked = htmlDoc.getElementById("blocked"); @@ -44,14 +45,12 @@ function generate_HTML(blocked_data){ accept.innerHTML = '
  • LibreJS did not allow the execution of any scripts on this page: \n\n
  • '; } else{ accept.innerHTML = ""; - accept.innerHTML = '

    List of
    ACCEPTED
    javascript in '+a["url"]+':

    '; + accept.innerHTML = '

    List of
    ACCEPTED
    javascript in '+a["url"]+':

    '; accept.innerHTML += '"; @@ -61,14 +60,13 @@ function generate_HTML(blocked_data){ blocked.innerHTML += '
  • LibreJS did not block any scripts on this page: \n\n
  • '; } else{ blocked.innerHTML = ""; - blocked.innerHTML = "

    List of
    BLOCKED
    javascript in" + a["url"]+":

    "; + blocked.innerHTML = "

    List of
    BLOCKED
    javascript in" + a["url"]+":

    "; blocked.innerHTML += '"; diff --git a/html/display_panel/content/panel-styles.css b/html/display_panel/content/panel-styles.css index 2e5223b..075c0d2 100644 --- a/html/display_panel/content/panel-styles.css +++ b/html/display_panel/content/panel-styles.css @@ -187,4 +187,4 @@ span.blocked { margin-top: 8px; font-size: 14px; list-style-type: disc; -} \ No newline at end of file +} -- cgit v1.2.3