-
Notifications
You must be signed in to change notification settings - Fork 2
/
goggles.html
209 lines (150 loc) · 6.22 KB
/
goggles.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Hackasaurus website prototype" />
<title>Hackasaurus</title>
<link href="style/main.css" rel="stylesheet" type="text/css">
<script src="http://cdn.lanyrd.net/badges/person-v1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
</head>
<header class="global">
<div class="wrapper">
<p class="logo">Hackasaurus Logo</p>
<a class="mofo" href="#">Link to MoFo</a>
</div>
<nav class="global">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="tools.html">Tools</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="get-involved.html">Get Involved</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="resources.html">Resources</a></li>
</ul>
</nav>
</header>
<body>
<div class="wrapper">
<div class="proto-col proto-col-1">
<section>
<h1>Web X-Ray Goggles</h1>
<p>See into the web and change it. Like hacking the Matrix.</p>
</section>
</div>
<div class="proto-col proto-col-1">
<section>
<ol class="step-by-step">
<li class="step-1">
<h2>Turn on your bookmarklet bar</h2>
<p>Make sure your browser's bookmarks toolbar is turned on.</p>
<ul class="tabs">
<li class="browser-firefox current"><a href="#bookmarks-bar-firefox">Firefox</a></li>
<li class="browser-chrome"><a href="#bookmarks-bar-chrome">Chrome</a></li>
<li class="browser-safari"><a href="#bookmarks-bar-safari">Safari</a></li>
</ul>
<div class="tabcontainer">
<div class="tabcontent current" id="bookmarks-bar-firefox">
<img src="http://hackasaurus.org/include/image/bookmarks-bar-firefox.jpg" alt="Turning on the bookmarks bar in Firefox" />
<p>In Firefox, go to View > Toolbars > Bookmarks Toolbar</p>
</div>
<div class="tabcontent" id="bookmarks-bar-firefox">
<img src="http://hackasaurus.org/include/image/bookmarks-bar-chrome.jpg" alt="Turning on the bookmarks bar in Chrome" class="bookmarks-bar-Chrome" />
<p>In Chrome, go to View > Always Show Bookmarks Bar</p>
</div>
<div class="tabcontent" id="bookmarks-bar-firefox">
<img src="http://hackasaurus.org/include/image/bookmarks-bar-safari.jpg" alt="Turning on the bookmarks bar in Safari" class="bookmarks-bar-safari" />
<p>In Safari, go to View > Show Bookmarks Bar</p>
</div>
</div>
</li>
<li class="step-2">
<h2>Install X-Ray Goggles</h2>
<p>Drag the X-Ray Goggles up to your web browser's bookmarks toolbar:</p>
<p><a id="bookmarklet-link" href="javascript:(function(){'use strict';var script=document.createElement('script');script.src='https://secure.toolness.com/webxray/webxray.js';script.className='webxray';document.head.appendChild(script);})();"><span>Web X-Ray Goggles</span> <img src="/include/image/bookmarklet-instructions.png" alt="drag me to your bookmarklets bar" class="bookmarklet-drag-instructions" /></a></p>
<img class="screenshot bookmarklet-demo" src="http://hackasaurus.org/include/image/bookmarklet.gif" alt="bookmarklet" width="328" height="142" />
</li>
<li class="step-3">
<h2>Turn them on</h2>
<p>Click on the X-Ray Goggles to activate. (Warning: may alter reality.)</p>
<img class="screenshot" src="http://hackasaurus.org/include/image/screenshot-bookmarklet.png" alt="Example of the bookmarklet installed" />
</li>
<li class="step-4">
<h2>Bust your hack</h2>
<p>Go to your favorite web page. Mouse over any element. Hit "R" to remix it.</p>
</li>
</ol>
</section>
<section class="proto-mini">
<h2>X-Ray Goggles controls:</h2>
<ul class="goggle-controls">
<p>Once you've installed the Goggles, click on the icon in the bookmarklet bar to turn them on. Now hover over anywhere on the page and hit one of these keys on your keyboard to make something cool happen.</p>
<li>
<kbd>R</kbd>
<p><strong>Remix</strong> an element using HTML.</p>
</li>
<li>
<kbd>I</kbd>
<p><strong>Inspect</strong> the element to learn more about it</p>
</li>
<li>
<kbd>T</kbd>
<p><strong>Tear</strong> out the page (automagically copies the page so you can make your own remix of it.)</p>
</li>
<li>
<kbd>Esc</kbd>
<p>Hit "<strong>Esc</strong>" to deactivate the goggles.</p>
</li>
</ul>
</section>
</div>
</div>
</body>
<script>
$(document).ready(function(){
$('.tabcontent').hide();
$('.tabcontent.current').show();
$('.tabs a').click(function() {
var curChildIndex = $(this).parent().prevAll().length + 1;
$(this).parent().parent().children('.current').removeClass('current');
$(this).parent().addClass('current');
$(this).parent().parent().next('.tabcontainer').children('.current').slideUp('fast',function() {
$(this).removeClass('current');
$(this).parent().children('div:nth-child('+curChildIndex+')').slideDown('normal',function() {
$(this).addClass('current');
});
});
return false;
});
});
</script>
<footer class="global">
<div class="wrapper">
<div class="proto-col proto-col-3">
<section>
<ul>
<li>Twitter</li>
<li>Facebook</li>
<li>Flickr</li>
<li>Github</li>
<li>Email</li>
<li>Identica</li>
<li>RSS</li>
</ul>
</section>
<section>
<h2>Supported by:</h2>
<ul>
<li>Hive logo</li>
<li>MacArthur Foundation logo</li>
<li>Mozilla logo</li>
</ul>
</section>
<section>
<p>Portions of this content are ©1998–2011 by individual mozilla.org contributors. Content available under a Creative Commons Attribution 3.0 Unported License.</p>
</section>
</div>
</div>
</footer>
</html>