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
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cydia Tweak</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/cydia/CydiaIcon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-70692932-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
var infolinks_pid = 2861232;
var infolinks_wsid = 1;
</script>
<script type="text/javascript" src="//resources.infolinks.com/js/infolinks_main.js"></script>
<style>
body {background-color: #efeff4;}
a:link, a:visited, a:hover {text-decoration: none;}
h1, h2, .package-desc {margin-left: 7px;}
.badge-label {border-radius:1em;}
.panel, .list-group-item, .alert {border-radius: 0 !important;}
.list-group-item:last-child {margin-bottom: -1px;}
.subshots {text-align: center;}
.subshots:nth-child(1) {margin-bottom: 10px;}
.screenshots img {border: thin solid #BEB6D8;}
.package-buttons {margin-top: 10px;}
.repo-buttons {margin-top: 20px;}
.package-error {display: none;}
.screenshots {display: none;}
.fullchangelog {display: none;}
.latest-version {vertical-align: right;}
</style>
</head>
<body>
<div class="container">
<center><div class="row alert alert-danger package-error"></div></center>
<div class="panel row panel-default">
<div class="panel-heading">
<center><h1 class="package-name"></h1></center>
<small class="package-author"></small>
</div>
</div>
<div class="package-info">
<div class="row panel panel-default">
<div class="panel-heading">
<center>
<span class="glyphicon glyphicon-align-left"></span> Description
</center>
</div>
<p class="panel-body package-desc"></p>
</div>
<div class="row panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-pencil"></span> Recent Changes
<div class="label label-info badge-label latest-version"></div>
</div>
<div class="panel-body changelog-list"></div>
</div>
<div class="row panel panel-default">
<div class="panel-heading screenshots-header">
<span class="glyphicon glyphicon-picture"></span> Screenshots
<small><span class="glyphicon glyphicon-triangle-bottom"></span></small>
</div>
<div class="panel-body row screenshots"></div>
</div>
<div class="row panel panel-default">
<div class="panel-heading fullchangelog-header">
<span class="glyphicon glyphicon-tasks"></span> Full Changelog
<small><span class="glyphicon glyphicon-triangle-bottom"></span></small>
</div>
<div class="package-info package-versions fullchangelog"></div>
</div>
</div>
<div class="row package-buttons">
<ul class="list-group"></ul>
</div>
<div class="row repo-buttons">
<ul class="list-group">
<li class="list-group-item">
<center>
<a href="https://reddit.com/user/FivePixels" target="_blank">
<span class="glyphicon glyphicon-wrench"></span> FivePixels' Reddit
</a>
</center>
</li>
</ul>
</div>
</div>
<script>
$(document).ready(function() {
var dPackage = getParameterByName("p");
if (!dPackage) {
$(".package-error").text("This package doesn't seem to exist!").css("display", "block");
$(".package-info").css("display", "none");
$(".package-name").text("Not Found");
return;
}
$.getJSON("packages/" + dPackage + ".json", function(data) {
document.title = data.name + " by " + data.author;
$(".package-name").text(data.name);
$(".package-desc").text(data.description);
$(".latest-version").text(data.version);
$(".package-author").text(" by " + data.author);
var cList = $(".changelog-list");
var changes = data.changelog[data.version];
for (var c in changes) {
var change = changes[c];
cList.append("<li>" + change + "</li>")
}
$(".screenshots-header").click(function() {
$(".screenshots").slideToggle(function() {
});
});
var count = 0;
var screenshots = data.screenshots;
var sKeys = Object.keys(screenshots);
for (var s in sKeys) {
var screenshot = sKeys[s];
if (count % 2 === 0) {
$(".screenshots").append("<div class=\"subshots col-xs-12\"></div>");
}
$(".screenshots .subshots:last-child").append("<div class=\"col-xs-6\"><img class=\"img-responsive\" src=\"screenshots/" + dPackage + "/" + screenshot + "\" title=\"" + screenshots[screenshot] + "\"><p>" + screenshots[screenshot] + "</p><br></div>");
count += 1;
}
$(".fullchangelog-header").click(function() {
$(".fullchangelog").slideToggle(function() {
});
});
var latest = data.version;
var versions = Object.keys(data.changelog).reverse();
for (var v in versions) {
var version = versions[v];
var panel = $("<div class=\"panel-default \"></div>");
panel.append(" <div class=\"panel-heading\">" + version + "</div>");
panel.append(" <div class=\"panel-body changelog-list\"></div>");
if (version === latest) {
panel.find(".panel-heading").append(" <div class=\"label label-info badge-label latest-version\">Current</div>");
}
var changes = data.changelog[version];
for (var c in changes) {
var change = changes[c];
panel.find(".changelog-list").append("<li>" + change + "</li>");
}
$(".package-versions").append(panel);
}
var links = data.links;
var lKeys = Object.keys(links);
for (var l in lKeys) {
var link = lKeys[l];
var wrap = $("<a href=\"" + links[link] + "\" target=\"_blank\"><li class=\"list-group-item\"></li></a>");
wrap.find(".list-group-item").append($.parseHTML(link));
$(".package-buttons .list-group").append(wrap);
}
})
.fail(function() {
$(".package-error").text("An error occurred while retrieving package info!").css("display", "block");
$(".package-info").css("display", "none");
$(".package-name").text("Repository Error");
return;
});
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? null : decodeURIComponent(results[1].replace(/\+/g, " "));
}
});
</script>
</body>
</html>
|