forked from openai-translator/openai-translator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize: remove the insertion of "content_script.css" from the conte…
…nt page. (openai-translator#381) * fix:reset's css overrides the CSS of the content page in content_script.css * chore:remove unused grants in userscript.js
- Loading branch information
Showing
4 changed files
with
3 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,10 @@ | |
// @icon https://cdn.jsdelivr.net/gh/yetone/[email protected]/public/icon.png | ||
// @match *://*/* | ||
// @require https://cdn.jsdelivr.net/gh/yetone/[email protected]/dist/userscript/index.js | ||
// @resource MAIN_CSS https://cdn.jsdelivr.net/gh/yetone/[email protected]/dist/userscript/index.css | ||
// @grant GM.setValue | ||
// @grant GM.getValue | ||
// @grant GM_xmlhttpRequest | ||
// @grant GM_addStyle | ||
// @grant GM_getResourceText | ||
// @license MIT | ||
// ==/UserScript== | ||
|
||
/* eslint-disable no-undef */ | ||
;(function () { | ||
'use strict' | ||
const css = GM_getResourceText('MAIN_CSS') | ||
GM_addStyle(css) | ||
})() |