Last active
December 7, 2021 06:34
-
-
Save fharbe/3947369 to your computer and use it in GitHub Desktop.
JavaScript Bookmarklets (Rewritten)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ⊶ ✚ | |
javascript:(function(d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var z = d.createElement('script'); | |
z.src = l.protocol + '//bitly.com/a/bitmarklet.js'; | |
b.appendChild(z); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ➼ | |
// Select All | |
javascript:(function(d) { | |
var e = d.getElementsByTagName('input'), | |
i = e.length; | |
while (i--) { | |
if (e[i].type == 'checkbox') { | |
e[i].click() | |
} | |
} | |
})(document); | |
// Invite to Group | |
(function(d) { | |
var p = d.getElementsByClassName('fbProfileBrowserResult')[0], | |
e = p.getElementsByClassName('uiButton'), | |
i = e.length; | |
while (i--) { | |
if(e[i].className.indexOf('hidden_elem') == -1) { | |
e[i].click(); | |
} | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ✪ ⊕' | |
javascript:(function(d) { | |
var b = d.body, l = d.location; | |
if(!d.xmlVersion && !b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var u = '//www.google.com/reader/', z = d.createElement('script'); | |
if(!d.xmlVersion) { | |
z.src = l.protocol + u + 'ui/subscribe-bookmarklet.js'; | |
b.appendChild(z); | |
} else { | |
l = 'https:' + u + 'view/feed/' + encodeURIComponent(l.href); | |
} | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ✿ | |
javascript:(function (d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
d.location = 'http://www.instapaper.com/text?u=' + encodeURIComponent(d.location.href); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ✿ | |
javascript:(function(d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var u = l.protocol + '//api.joliprint.com/joliprint/', z = d.createElement('script'), c = d.createElement('link'); | |
z.src = u + 'joliprint.js.jspz?u=' + encodeURIComponent(l.href) + '&t=' + (new Date().getTime()); | |
b.appendChild(z); | |
c.type = 'text/css'; | |
c.href = u + 'pnp.css.jspz'; | |
d.getElementsByTagName('head')[0].appendChild(c); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ❂ ⊛ | |
javascript:(function (d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var s = String(d.getSelection()), | |
c = (s !== '') ? ['<blockquote>', s, '</blockquote>', "\n\n"].join('') : '', | |
t = (d.querySelector && (d.getElementsByClassName('hentry').length === 1)) ? d.querySelector('.hentry .entry-title, .hentry h1, .hentry h2, .hentry h3').innerText : d.title, | |
h = d.querySelectorALl ? ([].slice.call(d.querySelectorAll('a[rel~=tag]'), 0).map(function (a) { | |
return a.href.split('/').pop(); | |
}).join(' ')) : '', | |
u = ['https://pinboard.in/add?url=', encodeURIComponent(l.href), '&description=', encodeURIComponent(c), '&tags', encodeURIComponent(h), '&title=', encodeURIComponent(t), '&later=yes&jump=close'].join(''), | |
w = window.open(u, 'Pinboard', 'status=no,toolbar=no,width=610,height=350').blur(); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ❂ ⊛ | |
javascript:(function (d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var s = String(d.getSelection()), | |
c = (s !== '') ? ['<blockquote>', s, '</blockquote>', "\n\n"].join('') : '', | |
t = (d.querySelector && (d.getElementsByClassName('hentry').length === 1)) ? d.querySelector('.hentry .entry-title, .hentry h1, .hentry h2, .hentry h3').innerText : d.title, | |
h = d.querySelectorALl ? ([].slice.call(d.querySelectorAll('a[rel~=tag]'), 0).map(function (a) { | |
return a.href.split('/').pop(); | |
}).join(' ')) : '', | |
u = ['https://pinboard.in/add?url=', encodeURIComponent(l.href), '&description=', encodeURIComponent(c), '&tags', encodeURIComponent(h), '&title=', encodeURIComponent(t)].join(''), | |
w = window.open(u, 'Pinboard', 'status=no,toolbar=no,width=610,height=350'); | |
setTimeout(function () { | |
w.focus(); | |
}, 250); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ✿ | |
javascript:(function(d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var z = d.createElement('script'); | |
z.src = l.protocol + '//www.readability.com/bookmarklet/read.js'; | |
b.appendChild(z); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ✜ | |
javascript:(function (d) { | |
var b = d.body, l = d.location; | |
if(!b) { | |
alert('Please wait until the page has loaded.'); | |
} else { | |
var s = String(d.getSelection()), | |
t = (d.querySelector && (d.getElementsByClassName('hentry').length === 1)) ? d.querySelector('.hentry .entry-title, .hentry h1, .hentry h2, .hentry h3').innerText : d.title, | |
u = ['http://www.tumblr.com/share?v=3&u=', encodeURIComponent(l.href), '&t=', encodeURIComponent(t)].join(''), | |
w = window.open(u, 'Pinboard', 'status=no,toolbar=no,width=480,height=450'); | |
setTimeout(function () { | |
w.focus(); | |
}, 250); | |
} | |
})(document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Names are ⛀ ⛁ ⛂ ⛃ | |
javascript:(function(d) { | |
var l = d.location, pid = d.getElementsByClassName('player')[0].id, | |
c = eval(pid.replace('player_', 'clip')), | |
id = l.href.match(/https?:\/\/vimeo\.com\/([0-9]+)/i)[1], | |
u = 'http://player.vimeo.com/play_redirect?clip_id=' + id + '&sig=' + c.config.request.signature + '&time=' + c.config.request.timestamp, | |
t = d.getElementById('page_header').getElementsByTagName('h1')[0].innerHTML, | |
n = d.getElementById('tools'), s = n.getElementsByClassName('stats')[0], a = d.createElement('a'); | |
a.className = 'btn'; a.innerHTML = 'SD'; a.download = t + '.mp4'; a.href = u; | |
n.insertBefore(a, s.nextSibling); | |
if(c.config.video.hd) { | |
var b = a.cloneNode(); b.innerHTML = 'HD'; b.download = t + '_HD.mp4'; b.href += '&quality=hd'; | |
n.insertBefore(b, a.nextSibling); | |
} | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment