Skip to content

sandofsky/acts_against_douchebar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published