-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
43 lines (25 loc) · 813 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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