-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave.js
More file actions
28 lines (27 loc) · 1.23 KB
/
Copy pathsave.js
File metadata and controls
28 lines (27 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Author: Sai Charan (http://saicharan.in/blog)
// Distributed without warranties or conditions of any kind, either
// express or implied except those under the CC BY-NC 3.0 license.
// You may obtain a copy of the license at:
//
// http://creativecommons.org/licenses/by-nc/3.0/
//
// Adapted from Instapaper's 'Read Later' Bookmarklet.
// - On Windows, this file should go into:
// %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Extensions\oadggleneidfmbhhedlildjnpgcggmch\1.6_0\js\
// - On Ubuntu, the location is:
// ~/.config/chromium/Default/Extensions/oadggleneidfmbhhedlildjnpgcggmch/1.6_0/js/
//
// For comments/queries, leave a comment at:
// http://saicharan.in/blog/2011/08/08/readability-for-chrome-save-to-instapaper/
(function(){
var d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;
try {
if(!b)
throw(0);
//z.setAttribute('src',l.protocol+'//www.instapaper.com/j/<FROM-BOOKMARKLET>?u='+encodeURIComponent(l.href)+'&t='+(new Date().getTime()));
z.setAttribute('src',l.protocol+'//www.instapaper.com/hello2?u='+encodeURIComponent(l.href)+'&t='+d.title);
b.appendChild(z);
} catch(e){
alert('Please wait until the page has loaded.');
}
}());