temp fixed Material Design icons on Chrome

fixed Material Design icons on Chrome

目前为 2019-08-07 提交的版本,查看 最新版本

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