diff --git a/src/content-script/index.tsx b/src/content-script/index.tsx index 1a3710d..8389eeb 100644 --- a/src/content-script/index.tsx +++ b/src/content-script/index.tsx @@ -83,6 +83,7 @@ try { } catch (error) { siteName = location.pathname.match(siteRegex)![0] } +console.log('siteName', siteName) const siteConfig = config[siteName] async function run() { diff --git a/src/content-script/search-engine-configs.ts b/src/content-script/search-engine-configs.ts index 79b65d2..a09c959 100644 --- a/src/content-script/search-engine-configs.ts +++ b/src/content-script/search-engine-configs.ts @@ -351,4 +351,10 @@ export const config: Record = { sidebarContainerQuery: ['#gsc_oci_title_wrapper'], appendContainerQuery: [], }, + ssrn: { + inputQuery: [], + bodyQuery: ['div.abstract-text > p'], + sidebarContainerQuery: ['div.abstract-text'], + appendContainerQuery: [], + }, } diff --git a/src/manifest.json b/src/manifest.json index c269d51..43a7f1c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -75,7 +75,8 @@ "https://psycnet.apa.org/record/*", "https://chemrxiv.org/*", "https://elifesciences.org/articles/*", - "https://scholar.google.com/*" + "https://scholar.google.com/*", + "https://*.ssrn.com/*" ], "js": ["content-script.js"], "css": ["content-script.css"] diff --git a/src/manifest.v2.json b/src/manifest.v2.json index 01ea26c..cb61104 100644 --- a/src/manifest.v2.json +++ b/src/manifest.v2.json @@ -74,7 +74,8 @@ "https://psycnet.apa.org/record/*", "https://chemrxiv.org/*", "https://elifesciences.org/articles/*", - "https://scholar.google.com/*" + "https://scholar.google.com/*", + "https://*.ssrn.com/*" ], "js": ["content-script.js"], "css": ["content-script.css"]