Add 'always hide CC drawer' option

When the CC starts up, it opens the drawer by default. The option
introduced by this commit closes it as soon as the content script gets
injected into the page.

Feature suggested at pekb/thread/67965396?msgid=69642485

Fixes: #10
Change-Id: I2a043dc9888eee2c9b1f98713d36cd1a49d3c931
diff --git a/src/content_scripts/console_inject.js b/src/content_scripts/console_inject.js
index 6a73bdc..e435b15 100644
--- a/src/content_scripts/console_inject.js
+++ b/src/content_scripts/console_inject.js
@@ -192,4 +192,11 @@
         (parseInt(window.getComputedStyle(rightControl).width) + 58) + 'px';
     rightControl.insertAdjacentElement('afterbegin', darkThemeSwitch);
   }
+
+  if (options.ccforcehidedrawer) {
+    var drawer = document.querySelector('material-drawer');
+    if (drawer !== null && drawer.classList.contains('mat-drawer-expanded')) {
+      document.querySelector('.material-drawer-button').click();
+    }
+  }
 });