File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,3 +93,9 @@ footer {
9393 margin-top : 16px ;
9494 padding : 8px 0 ;
9595}
96+
97+ /* By default the "Add a rule" link is hidden. It's shown on HTTPS sites for
98+ * which there is no rule. */
99+ # add-rule-link {
100+ display : none
101+ }
Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ function gotTab(tab) {
7878 listDiv . style . position = "static" ;
7979 listDiv . style . visibility = "visible" ;
8080 }
81+ // Only show the "Add a rule" link if we're on an HTTPS page
82+ if ( / ^ h t t p s : / . test ( tab . url ) ) {
83+ show ( e ( "add-rule-link" ) ) ;
84+ }
8185}
8286
8387document . addEventListener ( "DOMContentLoaded" , function ( ) {
Original file line number Diff line number Diff line change 1818# "dummy-chromium.pem" private key for you to sign your own local releases,
1919# but these .crx files won't detect and upgrade to official HTTPS Everywhere
2020# releases signed by EFF :/. We should find a more elegant arrangement.
21+ RULESETS_SQLITE=" $PWD /src/defaults/rulesets.sqlite"
2122
2223if [ -n " $1 " ]; then
2324 if [ " $1 " = today ] ; then
@@ -52,18 +53,7 @@ die() {
5253}
5354
5455if [ " $1 " != " --fast" ] ; then
55- if [ -f utils/trivial-validate.py ]; then
56- VALIDATE=" python2.7 ./utils/trivial-validate.py --ignoredups google --ignoredups facebook"
57- elif [ -f trivial-validate.py ] ; then
58- VALIDATE=" python2.7 trivial-validate.py --ignoredups google --ignoredups facebook"
59- elif [ -x utils/trivial-validate ] ; then
60- # This case probably never happens
61- VALIDATE=./utils/trivial-validate
62- else
63- VALIDATE=./trivial-validate
64- fi
65-
66- if $VALIDATE src/chrome/content/rules >&2
56+ if python2.7 ./utils/trivial-validate.py --quiet --db $RULESETS_SQLITE >&2
6757 then
6858 echo Validation of included rulesets completed. >&2
6959 echo >&2
You can’t perform that action at this time.
0 commit comments