-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbookmarklet.js
43 lines (40 loc) · 1.18 KB
/
bookmarklet.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
javascript:(function(e,a,g,h,f,c,b,d){
if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){
c=a.createElement("script");
c.type="text/javascript";
c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";
c.onload=c.onreadystatechange=function(){
if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){
h((f=e.jQuery).noConflict(1),b=1);
f(c).remove()
}
};
a.documentElement.childNodes[0].appendChild(c)
}
})
(window,document,"1.4.2",function($,L){
$(document).ready(function(){
$("iframe,object,embed,input[type=image],ins").hide();
$("div,table").live("mouseover%20mouseout%20click",function(a)
{
a.type=="mouseover"?$(this).css({
border:"1px%20solid%20red"
}):$("div,table").css({
border:"none"
});
if(a.type=="click"){
fm=document.createElement("form");
fm.style.display="none";
fm.method="post";
fm.action="http://xato.net/parse/";
myInput=document.createElement("input");
myInput.setAttribute("name","data");
myInput.setAttribute("value",this.innerHTML);
fm.appendChild(myInput);
document.body.appendChild(fm);
fm.submit();
document.body.removeChild(fm);
}return false
})
});
});