Skip to content

Commit

Permalink
Basic "global excludes" options UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Jun 29, 2018
1 parent 01565b6 commit 0381ea4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
6 changes: 6 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
"get_user_scripts": {
"message": "Get user scripts"
},
"global_excludes": {
"message": "Global Excludes"
},
"global_excludes_explain": {
"message": "One @exclude pattern per line, applies to all user scripts."
},
"gm_notif_text_must_be_string": {
"message": "GM.notification: \"text\" must be a string"
},
Expand Down
18 changes: 17 additions & 1 deletion src/browser/monkey-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ menu heading {

/***************************** SCRIPT DETAIL *********************************/


section.user-script p {
margin: 0;
padding: 4px 12px 4px 10px;
Expand All @@ -152,3 +151,20 @@ section.user-script {
section.user-script menu {
overflow-y: auto;
}

/******************************** OPTIONS ************************************/

section.options p {
margin: 0;
padding: 4px 12px 4px 10px;
}

section.options .explain a {
color: black;
float: right;
}

section.options textarea {
font-family: monospace;
white-space: pre;
}
9 changes: 8 additions & 1 deletion src/browser/monkey-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,14 @@

<hr>

TODO something here
<p><b>{'global_excludes'|i18n}</b></p>
<p class="explain">
<a href="https://wiki.greasespot.net/Include_and_exclude_rules">
<i class="icon fa fa-question-circle"></i>
</a>
{'global_excludes_explain'|i18n}
</p>
<p><textarea rows="5"></textarea></p>
</section>


Expand Down

0 comments on commit 0381ea4

Please sign in to comment.