-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
68 lines (53 loc) · 2.64 KB
/
index.html
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
58
59
60
61
62
63
64
65
66
67
68
<!doctype html>
<html>
<head>
<title>JS inject · mcdlr</title>
<meta charset='utf-8'>
<meta name="author" content="DrummerHead">
<meta name="description" content="With this tool creating a Bookmarklet is much easier. Just type the code, assign a name and an Anchor element with your code will be created below for you to drag to your bookmarks.">
<link rel="stylesheet" href="http://mcdlr.com/css/promiscuous.css">
<link rel="stylesheet" href="css/theme-default.css">
<link rel="stylesheet" href="css/codemirror.css">
<link rel="stylesheet" href="css/stijl.css">
<link rel='image_src' href='http://mcdlr.com/img/thumbs/js-inject.jpg'>
</head>
<body>
<header id='quoin'>
<div id='brand'>
<a href='http://mcdlr.com/' title='Go to mcdlr homepage'>Go to mcdlr homepage</a>
</div>
<div id='octo-peek'>
<a href='https://github.com/DrummerHead/JS-Inject' rel='external'><span>Fork me on Github!</span></a>
</div>
</header>
<div id="container">
<h1>JS inject</h1>
<p>Here you can create a Bookmarklet in an easy way. Just type the code that you want executed and the link will be generated for you to drag to your Bookmarks bar.</p>
<p>You also have a jQuery script injection if you want to work with jQuery regardless of it being present on the target page. Just tick the checkbox to have it.</p>
<form id="magia">
<label for="hasJQuery">Include jQuery</label>
<input type="checkbox" id="hasJQuery">
<label for="codeInput">Here goes your script:</label>
<textarea id="codeInput" spellcheck="false"></textarea>
<label for="nome">Bookmarklet name:</label>
<input type="text" id="nome" value="Nome" />
<input type="submit" value="Generate Bookmarklet" />
</form>
<small>Drag the Bookmarklet that will appear here to your bookmarks bar and then use it in any page you want</small>
<div id="a-holder"></div>
<p>Interested in injecting some CSS instead? You should check <a href='/css-inject/'>CSS Inject</a>!</p>
<textarea id="codeOutput" spellcheck="false"></textarea>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
<script src="js/libs/codemirror-compressed.js"></script>
<script src="js/libs/javascript.js"></script>
<script src="js/gedrag.js"></script>
<script> //Google analytics
var _gaq=[['_setAccount','UA-1030009-5'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>