Commit 7c8a1dac authored by Vincent's avatar Vincent

Merge branch '162-support-medrxiv-in-the-extension' into 'master'

Support medRxiv in the extension

Closes #162

See merge request !137
parents e0c258c4 31c372c2
Pipeline #70836700 passed with stages
in 24 minutes and 35 seconds
......@@ -13,7 +13,7 @@ import { inject as injectToWiley } from './wiley';
import { inject as injectToSpringer } from './springer';
import { inject as injectToTandF } from './tandf';
import { inject as injectToOUP } from './oup';
import { inject as injectToBiorXiv } from './biorxiv';
import { inject as injectToBiorXivAndMedRxiv } from './biorxiv';
import { inject as injectToPreprintsOrg } from './preprints';
import { inject as injectToZenodo } from './zenodo';
import { inject as injectToMdpi } from './mdpi';
......@@ -130,8 +130,12 @@ function initialise() {
injectToTandF();
} else if (document.location.host === 'academic.oup.com') {
injectToOUP();
} else if (document.location.host === 'www.biorxiv.org') {
injectToBiorXiv();
} else if (
document.location.host === 'www.biorxiv.org' ||
// medRxiv has the same DOM structure as biorXiv, even using classes like `pane-biorxiv-art-tools`
document.location.host === 'www.medrxiv.org'
) {
injectToBiorXivAndMedRxiv();
} else if (document.location.host === 'www.preprints.org') {
injectToPreprintsOrg();
} else if (document.location.host === 'www.zenodo.org' ||
......
{
"manifest_version": 2,
"name": "Plaudit",
"version": "0.1.25",
"version": "0.1.26",
"description": "View and add endorsements to scholarly articles",
"icons": {
"16": "icon-16.png",
......
{
"name": "plaudit-extension",
"version": "0.1.25",
"version": "0.1.26",
"description": "View and add endorsements to scholarly articles",
"scripts": {
"start": "rm -r build/*; webpack --mode=development;",
......@@ -20,12 +20,12 @@
"sign-addon": "^0.3.1",
"ts-loader": "^5.3.0",
"typescript": "^3.1.6",
"web-ext": "^3.0.0",
"web-ext": "^3.1.0",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
},
"dependencies": {
"get-dois": "^1.0.2",
"get-dois": "^1.1.1",
"iframe-resizer": "^3.6.3",
"webextension-polyfill": "^0.3.1"
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -81,6 +81,7 @@ const initialise = async () => {
'https://www.tandfonline.com',
'https://academic.oup.com',
'https://www.biorxiv.org',
'https://www.medrxiv.org',
'https://www.preprints.org',
'https://www.zenodo.org',
'https://zenodo.org',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment