diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index a57693bd..102a775f 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -1,7 +1,6 @@ /* eslint-disable no-console */ import { onMessage } from 'webext-bridge' import { createApp } from 'vue' -import { createI18n } from 'vue-i18n' // Firefox `browser.tabs.executeScript()` requires scripts return a primitive value @@ -29,10 +28,6 @@ import { getCookie, i18n, setCookie, SVG_ICONS } from '~/utils' setCookie('i-wanna-go-back', '-1', 1) location.reload() } - else { - document.querySelectorAll('script').forEach(script => script.remove()) - document.body.innerHTML = '' - } const container = document.createElement('div') const root = document.createElement('div') diff --git a/src/styles/reset.scss b/src/styles/reset.scss index 8a524e41..d94c9be0 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -22,6 +22,15 @@ button { } } +// hide the original home page .login-tip { display: none; +} +body > #i_cecream, +#i_cecream * { + visibility: hidden !important; + width: 0; + height: 0; + overflow: hidden !important; + pointer-events: none !important; } \ No newline at end of file