diff --git a/manifest.json b/manifest.json index 8abb601..5bf7d52 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "manifest_version": 2, "name": "InteractiveFics", - "version": "4.0", - "description": "Replaces Y/N in Reader Insert/second person fics with a name of your choice.", + "version": "4.1", + "description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.", "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" }, diff --git a/popup.html b/popup.html index 15c6824..b258226 100644 --- a/popup.html +++ b/popup.html @@ -34,13 +34,9 @@ label *{ .otherWords .change{ margin-right:0; } - -button{ - border:none; - text-transform: uppercase; - font-size:0.8em; - background-color: #16a085; - color:white; +#clear-name{ + margin-top:0.5em; + width:87%; } @@ -51,7 +47,8 @@ button{

Enter the name here:

-
+
+

Is the author not using Y/N?

Enter the expression the author's using instead:

(Make sure you already entered a name above. This change will go away if you refresh, so you'll have to enter it again)

diff --git a/popup.js b/popup.js index a7e8ca2..7b9db39 100644 --- a/popup.js +++ b/popup.js @@ -1,11 +1,14 @@ document.addEventListener('DOMContentLoaded', function () { document.getElementById('submit').addEventListener('click', clickHandler); + document.getElementById('clear-name').addEventListener('click', function(){ chrome.storage.local.remove("person", chrome.tabs.reload()) } ); var others = document.getElementsByClassName('changeForm'); for(var i=0; i