@@ -109,7 +109,7 @@ function runMedium(url) {
109
109
) ; //Set div attributes
110
110
a = document . createElement ( "a" ) ;
111
111
a . href = `http://webcache.googleusercontent.com/search?q=cache:${ url } &strip=0&vwsrc=1&referer=medium-parser` ; // Instead of calling setAttribute
112
- a . innerHTML = "Read from Google Cache" ;
112
+ a . innerHTML = "Open in Google Cache" ;
113
113
a . setAttribute (
114
114
"style" ,
115
115
"padding:14px 25px; color:white; background: #242424; display:block;text-align:center;"
@@ -118,7 +118,7 @@ function runMedium(url) {
118
118
119
119
archive = document . createElement ( "a" ) ;
120
120
archive . href = `https://archive.today?url=${ url } &run=1&referer=medium-parser` ; // Instead of calling setAttribute
121
- archive . innerHTML = "Read from Archive" ;
121
+ archive . innerHTML = "Open in Archive" ;
122
122
archive . setAttribute (
123
123
"style" ,
124
124
"padding:14px 25px; color:white; background: #242424; display:block; margin-top:10px;text-align:center;"
@@ -135,9 +135,20 @@ function runMedium(url) {
135
135
) ; //Set div attributes
136
136
oldAPI . setAttribute ( "target" , "_blank" ) ; //Set div attributes
137
137
138
+ // add readmedium.com
139
+ readMedium = document . createElement ( "a" ) ;
140
+ readMedium . href = `https://readmedium.com/${ url } ` ; // Instead of calling setAttribute
141
+ readMedium . innerHTML = "Open in Read-Medium" ;
142
+ readMedium . setAttribute (
143
+ "style" ,
144
+ "padding:14px 25px; color:white; background: #242424; display:block; margin-top:10px;text-align:center;"
145
+ ) ; //Set div attributes
146
+ readMedium . setAttribute ( "target" , "_blank" ) ; //Set div attributes
147
+
138
148
messageEl = createMessageElement ( ) ;
139
149
140
150
leftDiv . appendChild ( a ) ; // Append the link to the div
151
+ leftDiv . appendChild ( readMedium ) ;
141
152
leftDiv . appendChild ( archive ) ;
142
153
leftDiv . appendChild ( oldAPI ) ;
143
154
leftDiv . appendChild ( messageEl ) ;
@@ -192,7 +203,7 @@ function createMessageElement() {
192
203
// old API
193
204
messageEl = document . createElement ( "div" ) ;
194
205
messageEl . innerHTML =
195
- "Iframes/gists /embeds are not loaded in the Google Cache proxy. For those, use the Archive.is proxy instead." ;
206
+ "Iframe/gist /embeds are not loaded in the Google Cache proxy. For those, please use the Read-Medium/ Archive proxy instead." ;
196
207
messageEl . setAttribute (
197
208
"style" ,
198
209
"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;"
0 commit comments