MCPcopy Index your code
hub / github.com/MALSync/MALSync / importAssets

Function importAssets

src/floatbutton/userscript.ts:77–108  ·  view source on GitHub ↗
(head)

Source from the content-addressed store, hash-verified

75}
76
77export function importAssets(head) {
78 api.storage.injectCssResource(
79 '',
80 head,
81 `
82 /* fallback */
83 @font-face {
84 font-family: 'Material Icons';
85 font-style: normal;
86 font-weight: 400;
87 src: url(${GM_getResourceURL('materialFont.woff2')}) format('woff2');
88 }
89
90 .material-icons {
91 font-family: 'Material Icons';
92 font-weight: normal;
93 font-style: normal;
94 font-size: 24px;
95 line-height: 1;
96 letter-spacing: normal;
97 text-transform: none;
98 display: inline-block;
99 white-space: nowrap;
100 word-wrap: normal;
101 direction: ltr;
102 -webkit-font-feature-settings: 'liga';
103 -webkit-font-smoothing: antialiased;
104 }
105 `,
106 );
107 api.storage.injectCssResource('montserrat.css', head);
108}

Callers 2

pwaFunction · 0.90
createIframeFunction · 0.85

Calls 1

injectCssResourceMethod · 0.80

Tested by

no test coverage detected