For iPhone/iPod users, advertisements can become a real problem when using Cydia. While the package installer itself isn’t the fastest one around, it gets even slowed down much more due to the ads mostly sponsored by Google or Fastclick. Although most users are not aware of it, it is relatively easy to get rid of these annoying ads in Cydia once and for all.
Today we present to you two methods that can fix this issue.
SSH into your iDevice, and find the navigation path /Applications/Cydia.app/package.js
Search for the following line of code (usually this is line number 209)
if (depiction == null)
Replace this line with the one given below. Note that you will need terminal or WinSCP to perform these steps.
if (depiction == null || true)
That’s it. Save and you’re done.
Some users have reported that they have been unable to view screenshots after using this method. For this reason we present the better, safer method two below.
For this method two work, you need to edit the hosts file found in /etc by SSHing into your iPhone/iPod Touch. Note that you must not have performed the steps above (or reversed them if you have already) for this second method to work.
Locate the hosts file as specified above, open it for editing and insert the following lines of code.
Again, that’s it. Reboot your device and no more annoying Google or fastclick ads in Cydia for you!
The second method is advisable as it will also disable or block ads from the description page of a package appearing from Google and Fastclick on all applications of your iPhone/iPod Touch.
Tell us how these methods worked for you through your comments below.