Move addStyle to default.js

This commit is contained in:
Shadowfacts 2016-09-09 18:33:05 -04:00
parent dcbbf12d2e
commit 69f38e6d17
No known key found for this signature in database
GPG Key ID: F802198A7D7F309D
3 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View File

@ -18,4 +18,4 @@
!.gvimrc
!.vim/*
!.js/*.js
!.js/

3
.js/default.js Normal file
View File

@ -0,0 +1,3 @@
function addStyle(style) {
$("body").after(`<style>${style}</style>`);
}

View File

@ -1,10 +1,6 @@
// utils
let repoUrl = $("div.repohead-details-container > h1.public > strong[itemprop=name] > a").attr("href");
function addStyle(style) {
$("body").after(`<style>${style}</style>`);
}
// don't use the (ugly) new font
// $("body").css("font-family", $("body").css("font-family").replace("BlinkMacSystemFont,", ""));