sandofsky / acts_against_douchebar
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | Fri Apr 10 21:49:54 -0700 2009 | |
| |
Rakefile | ||
| |
init.rb | Fri Apr 10 21:49:54 -0700 2009 | |
| |
install.rb | ||
| |
lib/ | Fri Apr 10 14:33:24 -0700 2009 | |
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb | Fri Apr 10 14:33:24 -0700 2009 |
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'
"Dear Digg,<br />
Framing sites is bullshit.<br />
<br />
Your pal,
<a href="http://daringfireball.net">--J.G.</a>"
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

