-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookmarklet.html
More file actions
33 lines (33 loc) · 1.52 KB
/
bookmarklet.html
File metadata and controls
33 lines (33 loc) · 1.52 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body {
font-family: arial, helvetica, sans-serif;
margin-left:50px;
margin-right: 80px;
}
a#bookmark {
text-decoration: none;
font-size: 48px;
font-weigth: bold;
color: red;
background-color: yellow;
border: solid 2px red;
}
#footer {
text-align: right;
}
</style>
</head>
<body>
<h1>Analytics: data custom view HTML bookmarklet installation</h1>
<p>Drag and drop the above link to your browser bookmark bar:</p>
<a id="bookmark" href="javascript:(function()%7Bvar%20htmldata%20%3D%20%22%40%5Bhtml%5D%40H%22%3Bvar%20sel%20%3D%20document.getElementsByName('TreatTextAs')%3Bvar%20ctext%20%3D%20document.getElementsByName('CustomTextFormat')%3Bfor%20(i%3D0%3B%20i%3Csel%5B0%5D.length%3B%20i%2B%2B)%20%7Bif%20(sel%5B0%5D.options%5Bi%5D.value%20%3D%3D%20%22custom%22)%20%7Bsel%5B0%5D.value%20%3D%20%22custom%22%3Bctext%5B0%5D.value%20%3D%20htmldata%3Bctext%5B0%5D.disabled%20%3D%20false%3Breturn%3B%7D%7Dvar%20ov%20%3D%20document.getElementsByName('OverrideDefault')%3Bov%5B0%5D.checked%20%3D%20true%3Bvar%20custom%20%3D%20document.createElement('option')%3Bcustom.value%3D%22custom%22%3Bcustom.innerHTML%3D%22Custom%22%3Bsel%5B0%5D.appendChild(custom)%3Bsel%5B0%5D.value%20%3D%20%22custom%22%3Bctext%5B0%5D.value%20%3D%20htmldata%3Bctext%5B0%5D.disabled%20%3D%20false%7D)()">AnalyticsDataHTML</a>
<p>Return to <a href="https://bediniupi.github.io/AnalyticsDataHTML/">README</a></p>
<div id="footer">
<p>2020 Nazzareno Bedini - Università di Pisa</p>
</div>
</body>
</html>