chore: block csdn

This commit is contained in:
molvqingtai 2024-10-12 11:58:07 +08:00
parent a0a8462f5f
commit a6104635d5

View file

@ -20,7 +20,7 @@ export default defineContentScript({
cssInjectionMode: 'ui', cssInjectionMode: 'ui',
runAt: 'document_end', runAt: 'document_end',
matches: ['https://*/*'], matches: ['https://*/*'],
excludeMatches: ['*://localhost/*', '*://127.0.0.1/*'], excludeMatches: ['*://localhost/*', '*://127.0.0.1/*', '*://*.csdn.net/*', '*://*.csdn.com/*'],
async main(ctx) { async main(ctx) {
const store = Remesh.store({ const store = Remesh.store({
externs: [LocalStorageImpl, IndexDBStorageImpl, BrowserSyncStorageImpl, PeerRoomImpl, ToastImpl, DanmakuImpl] externs: [LocalStorageImpl, IndexDBStorageImpl, BrowserSyncStorageImpl, PeerRoomImpl, ToastImpl, DanmakuImpl]