2 * Copyright (c) 2011 Todd T. Fries <todd@fries.net>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 static const char *message
[] = {
20 "I fully support your right to put restrictions on how I can modify"
21 " or distribute something you created. Calling these restrictions "
22 "\"liberty,\" however, is just Orwellian doublespeak",
23 "GET OFF MY INTERNET LAWN!!!!",
24 "here is your list of restrictions -> freedom!!!!",
25 "i am all for it being free; i am all for not allowing abuse",
26 "webkit 1.4 is a huge step backwards",
27 "i honestly dont get how people equate gpl with liberty or freedom",
28 "I have no idea where you came up with the idea that you have to "
29 "continuously patch OpenBSD. Last time I cared about that was when "
30 "I was still dicking around with Linux.",
31 "Problem with discussion is that it doesn't add any code to cvs.",
32 "I can insult you some more but I am not sure you'd get it.",
33 "the mouse is for copy/paste and the interwebs",
34 "You could run openbsd and be done with it. Unlike linux is doesn't "
35 "suck so that helps that decision.",
36 "Twitter is the dumbest fucking thing that has ever happened to the Internet.",
37 "[speaking of {open,libre}office] it is an obese crack whore with herpes boils "
38 "that are about to explode"
42 marco_message(int *len
)
46 str
= message
[arc4random_uniform(sizeof(message
)/sizeof(message
[0]))];
53 marco(struct tab
*t
, struct karg
*args
)
55 char *page
, line
[64 * 1024];
59 show_oops(NULL
, "marco invalid parameters");
62 snprintf(line
, sizeof line
, "%s", marco_message(&len
));
64 page
= get_html_page("Marco Sez...", line
, "", 0);
66 load_webkit_string(t
, page
, XT_URI_ABOUT_MARCO
, 0);