Temporary fixes Material icons are not visible on Chrome

Temporary fixes Material icons are not visible on Chrome. kubernetes, Dashboard, Material icons

  1. // ==UserScript==
  2. // @name Temporary fixes Material icons are not visible on Chrome
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Temporary fixes Material icons are not visible on Chrome. kubernetes, Dashboard, Material icons
  6. // @description https://github.com/kubernetes/dashboard/issues/3144#issuecomment-518936677
  7. // @description https://bugs.chromium.org/p/chromium/issues/detail?id=627143
  8. // @homepage https://greasyfork.org/en/scripts/388258
  9. // @author chaosky
  10. // @match http://localhost:8001/api/v1/namespaces/kube-system/services/*
  11. // @grant GM_log
  12. // @grant GM_addStyle
  13. // ==/UserScript==
  14. /*jshint multistr: true */
  15.  
  16. (function() {
  17. 'use strict';
  18.  
  19. GM_addStyle(`
  20. @font-face {
  21. font-family: 'Material Icons';
  22. font-style: normal;
  23. font-weight: 400;
  24. src: url(MaterialIcons-Regular.eot); /* For IE6-8 */
  25. src:
  26. url(static/MaterialIcons-Regular.woff2) format('woff2'),
  27. url(static/MaterialIcons-Regular.woff) format('woff'),
  28. url(static/MaterialIcons-Regular.ttf) format('truetype');
  29. }
  30. `);
  31. })();