From 764d7f627e35b57905663c7c69f609f80e95cdde Mon Sep 17 00:00:00 2001 From: derv82 Date: Sat, 18 Nov 2017 03:03:29 -0800 Subject: [PATCH] Loads styles from userstyles.org - Cannot 'install', needs cosmetic improvements --- .gitignore | 1 + _locales/en/messages.json | 8 ++ popup.html | 46 ++++++++++- popup/popup.js | 2 - popup/remoteStyles.css | 40 ++++++++++ popup/remoteStyles.js | 160 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 253 insertions(+), 4 deletions(-) create mode 100755 popup/remoteStyles.css create mode 100755 popup/remoteStyles.js diff --git a/.gitignore b/.gitignore index 1708dc40..ac8fd4e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store pull_locales_login.rb +.vscode diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0e109179..b19da47a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -337,6 +337,14 @@ "message": "Load Styles", "description": "Text for a link that loads styles within the popup" }, + "remoteStyleInstall": { + "message": "Install", + "description": "Text for a button that installs a remote style" + }, + "remoteStyleInstallTooltip": { + "message": "Install this style permanently", + "description": "Tooltip for a button that installs a remote style" + }, "findStylesForSite": { "message": "Find more styles for this site", "description": "Text for a link that gets a list of styles for the current site" diff --git a/popup.html b/popup.html index 0d0e959c..4573ab94 100644 --- a/popup.html +++ b/popup.html @@ -3,6 +3,7 @@ +