github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mgee / safariadblock forked from fishman/safariadblock

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 6
  • Source
  • Commits
  • Network (6)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (1)
    • 0.4.0-RC1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Block ads in Safari — Read more

  cancel

http://burgersoftware.com/safariadblock

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

UI tweaks from Russell 
mgee (author)
Wed Sep 30 02:45:19 -0700 2009
commit  e81ac3c275db257d5927bddac439322fe9694ea6
tree    8d39b8e40299658c500ea7ba05806a643e722f60
parent  274243e799bfb0966c1c5e0364b431f93e646531
safariadblock /
name age
history
message
file .gitignore Tue Sep 29 08:29:13 -0700 2009 Moved Method-Swizzle files. Added DS_Store to g... [mgee]
file COPYING Mon Mar 16 07:20:05 -0700 2009 GPL license [martoche]
directory Installer/ Mon Mar 16 07:03:49 -0700 2009 Initial commit, version 0.4.0 RC1 [martoche]
file README Mon Mar 16 07:13:34 -0700 2009 Fixed README [martoche]
directory Resources/ Wed Sep 30 02:45:19 -0700 2009 UI tweaks from Russell [mgee]
directory Safari AdBlock.xcodeproj/ Tue Sep 29 15:06:39 -0700 2009 Fixes and additions from Russel. [mgee]
directory Scripts/ Mon Mar 16 07:03:49 -0700 2009 Initial commit, version 0.4.0 RC1 [martoche]
directory Sources/ Wed Sep 30 02:45:19 -0700 2009 UI tweaks from Russell [mgee]
file THANKS Mon Mar 16 07:28:42 -0700 2009 THANKS [martoche]
directory Third-party/ Mon Sep 07 05:06:23 -0700 2009 updated regexkit for 64bit compat [fishman]
README
Safari AdBlock
http://burgersoftware.com/safariadblock


INTRODUCTION
==================

Safari AdBlock blocks ads in Safari.
It works as an InputManager to inject code in Safari and uses the Adblock Plus <http://adblockplus.org> filters.



BUILD INSTRUCTIONS
==================

The following command

  sudo xcodebuild install

builds Safari AdBlock and produces an installer located at

  build/Release/Safari AdBlock x.x.x.pkg
  

Alternatively, you can open the Xcode project "Safari AdBlock.xcodeproj" and build it from within Xcode. Note that this 
method will not produce the installer.



FRAMEWORKS
==================

If you want to build yourself the third-party frameworks, you need to change the dynamic shared library install names 
recorded in the Mach-O binary. A quick an easy way to do it is to first build the framework without altering the build 
settings and then work on the executable file. We will take Sparkle as an example.
Start by doing
  
  otool -L Sparkle.framework/Sparkle
  
The output should be something like

  @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle (compatibility version 1.5.0, current version 
  1.5.0)
  ...
  
What we need to do is change @"executable_path" to "@loader_path" so that when Safari AdBlock is loaded, it looks for 
the framework inside its bundle and not inside Safari's bundle. It is done with the command

  install_name_tool -id "@loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle" Sparkle.framework/Sparkle

Finally, verify that it worked:

  otool -L Sparkle.framework/Sparkle

now outputs

  @loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle (compatibility version 1.5.0, current version 1.5.0)
  ...
  ...
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server