This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2010, Yanik Magnan <[email protected]> | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jsss - party like it's 1996 | |
* by Yanik Magnan - http://r-ch.net | |
* | |
* A toy implementation of sorts for Netscape's long-gone CSS | |
* competitor, JavaScript Stylesheets. Please don't use this | |
* in production code. Really. | |
* | |
* Bits of the spec[1] this more or less conforms to: | |
* 1 - Basic Concepts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Five-Column SpringBoard (FCSB) by Yanik Magnan | |
* http://r-ch.net/iphone/ | |
Copyright (c) 2008-2009, Yanik Magnan <[email protected]> | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Sankaku Complex Work-Safe Edition | |
// @namespace http://r-ch.net | |
// @description Makes Sankaku Complex slightly less objectionable for work. | |
// @include http://www.sankakucomplex.com/* | |
// ==/UserScript== | |
var imgs = document.getElementsByTagName('img'); | |
for (var i=0; i < imgs.length; i++) { imgs[i].style.display = "none"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* multifader - fades out apps that support multitasking so you can get rid of those who don't | |
* an experiment by Yanik Magnan - http://r-ch.net | |
*/ | |
for each (i in [[[SBIconModel sharedInstance] applicationIcons] allObjects]) { | |
if ([[i.application.bundle.infoDictionary objectForKey:"DTSDKName"] hasPrefix:@"iphoneos4"]) | |
[i setAlpha:0.1]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env cycript | |
/* FileUtils */ | |
function mv(old, _new) { | |
[[NSFileManager defaultManager] moveItemAtPath:old toPath:_new error:nil]; | |
} | |
function mkdir(path) { | |
[[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:nil]; | |
} | |
function fileExists(path) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fileutils - four simple helper functions for Cycript | |
// this is so silly it should be public domain (so it is) | |
function mv(old, _new) { | |
[[NSFileManager defaultManager] moveItemAtPath:old toPath:_new error:nil]; | |
} | |
function cp(old, _new) { | |
[[NSFileManager defaultManager] copyItemAtPath:old toPath:_new error:nil]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env cycript -p SpringBoard | |
/* | |
* ric - retina display icon data aggregator | |
*/ | |
// App types | |
var CLASSIC_APP = 0; | |
var IPAD_ONLY_APP = 1; | |
var UNIVERSAL_APP = 2; | |
var UNKNOWN_APP = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# selache - by Yanik Magnan (r-ch.net) | |
# make selectors only appear in your cycript code ONCE | |
input_code = STDIN.read | |
selectors = input_code.scan(Regexp.new('(new)( )(Selector)(\\()(".*?")(\\))', Regexp::IGNORECASE)).uniq | |
sel_counter = 0; | |
selectors.each { |sel| | |
method_name = sel[4].gsub("\"","") |