Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 5966ff5

Browse files
committed
call inject_stylesheet after expression
1 parent 62c69e0 commit 5966ff5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

inject_stylesheet.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
const url = window.location.href
2-
if (url.includes('acmicpc.net')) inject('override-commons.css')
3-
41
const inject = localCss => {
52
const href = chrome.extension.getURL(`css/${localCss}`)
63
console.log(href)
74
const injection = document.createElement('link')
85
Object.assign(injection, {
96
rel: 'stylesheet',
107
type: 'text/css',
11-
href
8+
href,
129
})
1310
document.getElementsByTagName('head')[0].appendChild(injection)
1411
}
12+
13+
const url = window.location.href
14+
if (url.includes('acmicpc.net')) inject('override-commons.css')

0 commit comments

Comments
 (0)