diff --git a/README.md b/README.md index 58c48c8..b86b5fa 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ Or install manually ### Updates +#### 1.4.0 +Added support for [https://readmedium.com/](https://readmedium.com/) #### 1.3.2 Changed logo @@ -65,3 +67,6 @@ Added support for all medium.com based websites such as: ### 1.0.1 Minor fixed and updates. + +### 1.0.0 +Initial release. \ No newline at end of file diff --git a/app.js b/app.js index 0d93256..119ba25 100644 --- a/app.js +++ b/app.js @@ -109,7 +109,7 @@ function runMedium(url) { ); //Set div attributes a = document.createElement("a"); a.href = `http://webcache.googleusercontent.com/search?q=cache:${url}&strip=0&vwsrc=1&referer=medium-parser`; // Instead of calling setAttribute - a.innerHTML = "Read from Google Cache"; + a.innerHTML = "Open in Google Cache"; a.setAttribute( "style", "padding:14px 25px; color:white; background: #242424; display:block;text-align:center;" @@ -118,7 +118,7 @@ function runMedium(url) { archive = document.createElement("a"); archive.href = `https://archive.today?url=${url}&run=1&referer=medium-parser`; // Instead of calling setAttribute - archive.innerHTML = "Read from Archive"; + archive.innerHTML = "Open in Archive"; archive.setAttribute( "style", "padding:14px 25px; color:white; background: #242424; display:block; margin-top:10px;text-align:center;" @@ -135,9 +135,20 @@ function runMedium(url) { ); //Set div attributes oldAPI.setAttribute("target", "_blank"); //Set div attributes + // add readmedium.com + readMedium = document.createElement("a"); + readMedium.href = `https://readmedium.com/${url}`; // Instead of calling setAttribute + readMedium.innerHTML = "Open in Read-Medium"; + readMedium.setAttribute( + "style", + "padding:14px 25px; color:white; background: #242424; display:block; margin-top:10px;text-align:center;" + ); //Set div attributes + readMedium.setAttribute("target", "_blank"); //Set div attributes + messageEl = createMessageElement(); leftDiv.appendChild(a); // Append the link to the div + leftDiv.appendChild(readMedium); leftDiv.appendChild(archive); leftDiv.appendChild(oldAPI); leftDiv.appendChild(messageEl); @@ -192,7 +203,7 @@ function createMessageElement() { // old API messageEl = document.createElement("div"); messageEl.innerHTML = - "Iframes/gists/embeds are not loaded in the Google Cache proxy. For those, use the Archive.is proxy instead."; + "Iframe/gist/embeds are not loaded in the Google Cache proxy. For those, please use the Read-Medium/Archive proxy instead."; messageEl.setAttribute( "style", "padding:2px 4px; color:#242424; display:block; text-align:left;max-width: 212px;font-size: 0.83em;border: 1px solid black; margin-top:10px; position:relative;" diff --git a/img/sample2.png b/img/sample2.png index 1758149..ab4bc97 100644 Binary files a/img/sample2.png and b/img/sample2.png differ diff --git a/manifest.json b/manifest.json index cf1c9f6..22e8155 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Medium parser", - "version": "1.3.2", + "version": "1.4.0", "description": "Unlocks the whole medium article on the go.", "icons": { "16": "img/icon16.jpg",