diff --git a/lib/core.js b/lib/core.js
index c57967d09..4f4d96f10 100644
--- a/lib/core.js
+++ b/lib/core.js
@@ -578,7 +578,7 @@
var foundPluginsDict = {},
result = [];
- // TODO: gether secondaryPlugins by dict, who uses mandatory params. Not full for-loop.
+ // TODO: gather secondaryPlugins by dict, who uses mandatory params. Not full for-loop.
for(var i = 0; i < mandatoryParams.length; i++) {
var pluginsIds = usedParamsDict[mandatoryParams[i]];
if (pluginsIds) {
@@ -1162,7 +1162,7 @@
}
}
- // Check if some domain plugin returned some links (any data from `getLinks`, including `message`) withouth runtime or callback error.
+ // Check if some domain plugin returned some links (any data from `getLinks`, including `message`) without runtime or callback error.
// Also check if `getData` returned `message`.
// Also check if `getData` returned something, and no `getLink` method in plugin.
for(var i = 0; i < allData.length && !hasDomainData; i++) {
@@ -1273,7 +1273,7 @@
var link3 = link._uri?.replace(/\/+$/, '');
if (link1 === link2) {
- link.error = "Canonical link is removed unlesss explicitely allowed";
+ link.error = "Canonical link is removed unless explicitly allowed";
} else if (link3 === link2) {
link.error = "Link redirected to the canonical";
}
@@ -2101,7 +2101,7 @@
if (hasRuns === 0) {
- // If no available mathods found - check if some async methods still running.
+ // If no available methods found - check if some async methods still running.
for(var pluginId in usedMethods) {
var pluginMethods = usedMethods[pluginId];
for(var method in pluginMethods) {
@@ -2113,7 +2113,7 @@
}
if (getVarsInfo.pendingMethods) {
- // Make last iteration. All `getVars` argumenets must be loaded at this moment.
+ // Make last iteration. All `getVars` arguments must be loaded at this moment.
getVarsInfo.pendingMethods = false;
getVarsInfo.lastIteration = true;
// Run last iteration.
diff --git a/plugins/domains/readymag.com.js b/plugins/domains/readymag.com.js
index e0073b5a4..ff8269417 100644
--- a/plugins/domains/readymag.com.js
+++ b/plugins/domains/readymag.com.js
@@ -7,13 +7,12 @@ export default {
mixins: ["*"],
- getLink: function(url, urlMatch) {
+ getLink: function(url) {
return {
- html: '' +
- '',
- type: CONFIG.T.text_html,
- rel: [CONFIG.R.app, CONFIG.R.ssl], // not inline due to ID in script tag
+ href: url.replace('readymag.com/', 'readymag.website/'),
+ accept: CONFIG.T.text_html,
+ rel: [CONFIG.R.app, CONFIG.R.ssl, CONFIG.R.iframely],
'aspect-ratio': 4/3
};
@@ -23,5 +22,7 @@ export default {
"https://readymag.com/rbphotography/57005/",
"https://readymag.website/rbphotography/57005/",
"https://readymag.website/rbphotography/57005/11/",
+ "https://readymag.com/designs/2818584/",
+ "https://readymag.com/designs/3290418/",
]
};
\ No newline at end of file