mirror of
https://codeberg.org/ashley/poke.git
synced 2025-03-31 18:21:55 -04:00
add custom js :3
This commit is contained in:
parent
971443c4ba
commit
a348fec5f3
1 changed files with 6 additions and 1 deletions
|
@ -14,4 +14,9 @@ if (style.styleSheet){
|
||||||
style.styleSheet.cssText = css;
|
style.styleSheet.cssText = css;
|
||||||
} else {
|
} else {
|
||||||
style.appendChild(document.createTextNode(css));
|
style.appendChild(document.createTextNode(css));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var script_tag = document.createElement('script');
|
||||||
|
script_tag.type = 'text/javascript';
|
||||||
|
script_tag.text = localStorage.getItem("poke-custom-script");
|
||||||
|
document.head.appendChild(script_tag);
|
||||||
|
|
Loading…
Add table
Reference in a new issue