View bookmarklet_megalodon.js
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
javascript: | |
(function(){ | |
var l=location.href; | |
l=prompt('URL',l); | |
var u='http://megalodon.jp/?url='+escape(l); | |
with(window.open().document){ | |
location.href=u; | |
close(); | |
} | |
} |
View bookmarklet_makehtml.js
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
javascript:(function(){ | |
function tim(){ | |
ele.parentNode.removeChild(ele); | |
} | |
var ele=document.createElement('textarea'); | |
ele.style.width='100%'; | |
ele.value='<a href='+location.href+'>'+document.title+'</a>'; | |
document.body.insertBefore(ele,document.body.firstChild); | |
ele.focus(); | |
ele.select(); |
View bookmarklet_unofficial_retweet_for_twitter.js
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
javascript: | |
(function(){ | |
if(location.href.match(/twitter\.com\/(.+?)\//)){ | |
var id=RegExp.$1; | |
var s=document.getElementsByTagName('span'); | |
for(var i=0;i<s.length;i++){ | |
if(s[i].getAttribute('class')=='entry-content'){ | |
var u='http://twitter.com/home?status='; | |
u+=encodeURIComponent('RT @'+id+': '+(s[i].innerText||s[i].textContent)); | |
location.href=u; |