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

sandofsky / acts_against_douchebar

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

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
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.

A Rails plugin that delivers a special message to DiggBar users, or runs frame-killer javascript. — Read more

  cancel

http://twitter.com/sandofsky

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

This URL has Read+Write access

Add a frame-killer option. 
sandofsky (author)
Fri Apr 10 21:49:54 -0700 2009
commit  50928203c730da51941019f03b7b6ba9a91a4484
tree    0f5f9bd9392dd3319e2a7165d3f1bf90c478e632
parent  016248f715ffa33667b412a7f999d7b97a52797e
acts_against_douchebar /
name age
history
message
file MIT-LICENSE Loading commit data...
file README Fri Apr 10 21:49:54 -0700 2009 Add a frame-killer option. [sandofsky]
file Rakefile
file init.rb Fri Apr 10 21:49:54 -0700 2009 Add a frame-killer option. [sandofsky]
file install.rb
directory lib/ Fri Apr 10 14:33:24 -0700 2009 First checkin of actual plugin. [sandofsky]
directory tasks/
directory test/
file uninstall.rb Fri Apr 10 14:33:24 -0700 2009 First checkin of actual plugin. [sandofsky]
README
ActsAgainstDouchebar
====================

This plugin adds a special message to DiggBar users, or runs frame-killer Javascript.


Example
=======

In your controller:

  class HomepageController < ApplicationController

    acts_against_douchebar
  
    def index
    end

  end


  $ curl 'http://localhost:3000/homepage'
  <h1>This is my regular homepage<h1>

  $curl 'http://localhost:3000/homepage' -e 'http://digg.com/d1oNOZ'
  &quot;Dear Digg,<br />
  Framing sites is bullshit.<br />
  <br />
  Your pal,
  <a href="http://daringfireball.net">--J.G.</a>&quot;


You can also use:

  acts_against_douchebar :with => "My custom message"
  
for a custom message, or:

  acts_against_douchebar :with => :frame_killer
  
to run a frame-killer.

Copyright (c) 2009 Ben Sandofsky, released under the MIT license
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