nt-pro-lin

1.0.7 • Public • Published

Better Notion

const ecInjectResource = (src, rtype) => {
    let resource = document.createElement(rtype);
    if (rtype === 'link') {
        resource.rel = 'stylesheet';
        resource.href = src;
    } else resource.src = src;
    document.head.appendChild(resource)
}
ecInjectResource('https://cdn.jsdelivr.net/npm/nt-pro-lin/main.css', 'link');
ecInjectResource('https://cdn.jsdelivr.net/npm/nt-pro-lin/main.js', 'script');

one line command

sed -i '' 's$ready() {$ready() {\nlet script = document.createElement('script');\nscript.src = "https://cdn.jsdelivr.net/npm/nt-pro-lin/entry.js";\ndocument.head.appendChild(script)$g' /Applications/Notion.app/Contents/Resources/app/renderer/preload.js

Readme

Keywords

none

Package Sidebar

Install

npm i nt-pro-lin

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

7.16 kB

Total Files

6

Last publish

Collaborators

  • hilin