document.write('</div>');
dlopen("/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary", RTLD_GLOBAL);
- var album = PLCameraAlbum.sharedInstance.images;
+ var album = [[PLCameraAlbum sharedInstance] images];
var jpeg = null, length = album.length;
for (var i = 0; i != 5; ++i) {
- jpeg = album[Math.floor(Math.random() * length)].fileGroup.pathForFullSizeImage;
+ jpeg = [[album[Math.floor(Math.random() * length)] fileGroup] pathForFullSizeImage];
if (jpeg != null)
break;
}
if (jpeg == null)
for (var i = 0; i != length; ++i) {
- jpeg = album[Math.floor(i)].fileGroup.pathForFullSizeImage;
+ jpeg = [[album[Math.floor(i)] fileGroup] pathForFullSizeImage];
if (jpeg != null)
break;
}
</div>
<!-- XXX: extract this out to some kind of nifty Lock Cydget library -->
- <!-- XXX: this is incredibly indirect. I mean: wth, right? well, Cycript is the slowest thing on this page -->
- <!-- (in case anyone reading this: I believe it is entirely due to sqlite3, and I will be fixing this soon) -->
- <script type="text/cycript">document.addEventListener("DOMContentLoaded", function() { window.setTimeout(function() {
+ <script type="text/cycript">
var locale = CFLocaleCopyCurrent();
var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
CFRelease(formatter);
CFRelease(now);
- }, 0)}, false);</script>
+ </script>
</body></html>
Section: Development
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3090-1
+Version: 0.9.3093-1
Description: framework for managing lock screen plugins
Name: Cydget
-Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre
+Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1)
Replaces: cydialer (<< 0.9.17)
Author: Jay Freeman (saurik) <saurik@saurik.com>
Depiction: http://cydia.saurik.com/info/cydget/