From 9277ea51af85095bc5e06e8ad9bb02dfb0032c40 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 5 Mar 2024 16:55:26 +0800 Subject: [PATCH] Remove unused inline script --- contents/inline.tsx | 27 --------------------------- contents/inline2.tsx | 41 ----------------------------------------- contents/invokeFetch.ts | 22 ---------------------- 3 files changed, 90 deletions(-) delete mode 100644 contents/inline.tsx delete mode 100644 contents/inline2.tsx delete mode 100644 contents/invokeFetch.ts diff --git a/contents/inline.tsx b/contents/inline.tsx deleted file mode 100644 index d98649f..0000000 --- a/contents/inline.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import type { PlasmoCSConfig, PlasmoGetInlineAnchor } from "plasmo" - -export const config: PlasmoCSConfig = { - matches: [""] -} - -export const getInlineAnchor: PlasmoGetInlineAnchor = () => - // document.querySelector(`[href="/#pricing"]`) - document.querySelector(`.text-secondly`); - -// Use this to optimize unmount lookups -// export const getShadowHostId = () => "plasmo-inline-example-unique-id" - -const PlasmoInline = () => { - return ( -
- CSUI INLINE -
- ) -} - -export default PlasmoInline \ No newline at end of file diff --git a/contents/inline2.tsx b/contents/inline2.tsx deleted file mode 100644 index d3892a3..0000000 --- a/contents/inline2.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import type { PlasmoCSConfig, PlasmoGetInlineAnchor } from "plasmo" -import { sendToBackground } from "@plasmohq/messaging" - -export const config: PlasmoCSConfig = { - matches: [""] -} - -export const getInlineAnchor: PlasmoGetInlineAnchor = () => - // document.querySelector(`[href="/#pricing"]`) - document.querySelector(`.pgc-space-follow-page`); - -// Use this to optimize unmount lookups -// export const getShadowHostId = () => "plasmo-inline-example-unique-id" - -const PlasmoInline = () => { - const onClick = () => { - const resp = sendToBackground({ - name: "test", - body: { - id: 123 - } - }).then((res) => { - console.log(res); - }) - } - - return ( -
- CSUI INLINE -
- ) -} - -export default PlasmoInline \ No newline at end of file diff --git a/contents/invokeFetch.ts b/contents/invokeFetch.ts deleted file mode 100644 index 3a88449..0000000 --- a/contents/invokeFetch.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { PlasmoCSConfig } from "plasmo" - -export const config: PlasmoCSConfig = { - matches: [""], - world: "MAIN" -} - -// export {} -console.log( - "You may find that having is not so pleasing a thing as wanting. This is not logical, but it is often true." -) - -const defaultFetch = window.fetch; - - -window.fetch = (...args) => { - console.log(args); - - return defaultFetch(...args); -} - -console.log(fetch);