@@ -24,7 +24,7 @@ import wechatpay from './donation/wechatpay.jpg'
2424import bugmeacoffee from './donation/bugmeacoffee.png'
2525import { useWindowTheme } from '../hooks/use-window-theme.mjs'
2626import { languageList } from '../config/language.mjs'
27- import { isFirefox , isSafari } from '../utils/index.mjs'
27+ import { isSafari } from '../utils/index.mjs'
2828import { useTranslation } from 'react-i18next'
2929
3030function GeneralPart ( { config, updateConfig } ) {
@@ -307,9 +307,7 @@ function AdvancedPart({ config, updateConfig }) {
307307 updateConfig ( { userSiteRegexOnly : checked } )
308308 } }
309309 />
310- { `${ t ( 'Exclusively use Custom Site Regex for website matching,' ) } ${
311- isFirefox ( ) ? < br /> : ' '
312- } ${ t ( 'ignoring built-in rules' ) } `}
310+ { t ( 'Exclusively use Custom Site Regex for website matching, ignoring built-in rules' ) }
313311 </ label >
314312 < br />
315313 < label >
@@ -500,8 +498,11 @@ function Popup() {
500498 document . documentElement . dataset . theme = config . themeMode === 'auto' ? theme : config . themeMode
501499 } , [ config . themeMode , theme ] )
502500
501+ const search = new URLSearchParams ( window . location . search )
502+ const popup = search . get ( 'popup' ) // manifest v2
503+
503504 return (
504- < div className = " container" >
505+ < div className = { popup === 'true' ? ' container-popup-mode' : 'container-page-mode' } >
505506 < form style = "width:100%;" >
506507 < Tabs selectedTabClassName = "popup-tab--selected" >
507508 < TabList >
0 commit comments