diff options
| author | Stephen Blott | 2017-09-30 07:22:22 +0100 |
|---|---|---|
| committer | GitHub | 2017-09-30 07:22:22 +0100 |
| commit | 0d059c1ac60798598ad6608eca38f6008cc50f53 (patch) | |
| tree | 0194f5c9869e991777f38fe2345285918f9e0a5c /lib | |
| parent | 245fd88b58297733765571b4db37ff958f7a32c2 (diff) | |
| parent | 55fde386c99bae9748212ef66fd57929ffd316a5 (diff) | |
| download | vimium-0d059c1ac60798598ad6608eca38f6008cc50f53.tar.bz2 | |
Merge pull request #2683 from mrmr1993/inject-css-for-frames
Inject user css into all frames
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dom_utils.coffee | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index c2d83b1d..ff5991dc 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -408,5 +408,13 @@ DomUtils = windowIsTooSmall: -> return window.innerWidth < 3 or window.innerHeight < 3 + # Inject user styles manually. This is only necessary for our chrome-extension:// pages and frames. + injectUserCss: -> + Settings.onLoaded -> + style = document.createElement "style" + style.type = "text/css" + style.textContent = Settings.get "userDefinedLinkHintCss" + document.head.appendChild style + root = exports ? window root.DomUtils = DomUtils |
