Skip to content

Commit

Permalink
ssrn
Browse files Browse the repository at this point in the history
  • Loading branch information
ishandutta2007 committed Mar 3, 2024
1 parent 77c7708 commit 38bca24
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/content-script/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ try {
} catch (error) {
siteName = location.pathname.match(siteRegex)![0]
}
console.log('siteName', siteName)
const siteConfig = config[siteName]

async function run() {
Expand Down
6 changes: 6 additions & 0 deletions src/content-script/search-engine-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,10 @@ export const config: Record<string, SearchEngine> = {
sidebarContainerQuery: ['#gsc_oci_title_wrapper'],
appendContainerQuery: [],
},
ssrn: {
inputQuery: [],
bodyQuery: ['div.abstract-text > p'],
sidebarContainerQuery: ['div.abstract-text'],
appendContainerQuery: [],
},
}
3 changes: 2 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 2 additions & 1 deletion src/manifest.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 38bca24

Please sign in to comment.