-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
57 lines (57 loc) · 1.59 KB
/
index.php
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<title><?php echo $_GET['t'] ?> bookmarklet</title>
</head>
<style>
body {
text-align: center;
background-color: #E6E6E6;
color:#494949;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:76%;
}
.bubble {
width: auto;
margin-top: 20px;
padding: 20px;
background-image: url(arr2.gif);
background-repeat: no-repeat;
background-position: top center;
}
.bubble cite {
margin-top: 20px;
padding: 10px;
background-color: white;
}
h1 {
margin-bottom: 20px;
}
.bookmarklet {
color: grey;
text-decoration: none;
border:solid 1px;
border-color:ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
padding:10px;
background-color:ThreeDFace;
}
.bookmarklet:hover {
color: inherit;
text-decoration: inherit;
}
a.editsource {
position: fixed;
bottom: 3px;
right: 3px;
text-decoration: none;
background-color: green;
color: white;
padding: 3px 5px;
}
</style>
<body>
<h1><?php print stripslashes($_GET['t']) ?> bookmarklet</h1>
<a class="bookmarklet" href="javascript:document.loadscript=function(u){var%20es=['body','frameset','head'];try{var%20s=document.createElement('script');s.setAttribute('src',u);for%20(var%20i=0;i<es.length;i++)%20{var%20e=document.getElementsByTagName(es[i])[0];if(e){e.appendChild(s);break;}}}catch(e){alert('This%20doesn\'t%20work%20here.');}void(0);};<?php print stripslashes($_GET['j']) ?>" /><?php print stripslashes($_GET['t']) ?></a>
<p class="bubble"><cite><?php print stripslashes($_GET['d']) ?></cite></p>
<a class="editsource" href="<?php print "form/?". $_SERVER['QUERY_STRING'] ?>">Edit the source code of this bookmarklet</a>
</body>
</html>