Skip to content

Instantly share code, notes, and snippets.

@dwiyatci
Created April 24, 2014 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwiyatci/11271505 to your computer and use it in GitHub Desktop.
Save dwiyatci/11271505 to your computer and use it in GitHub Desktop.
A monkey script for halal-ing chickens in KFC Deutschland. Just for fun! No offense to the muslim brotherhood. :'p
// ==UserScript==
// @name kfc.de-face
// @creator Glenn Dwiyatcita
// @namespace https://gist.github.com/dwiyatci
// @description A monkey script for halal-ing chickens in KFC Deutschland. Just for fun! No offense to the muslim brotherhood. :'p
// @include http://www.kfc.de/faq
// @version 1
// @grant none
// @require http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==
$(function () {
console.info('A bunch of highly-trained Islamic monkeys are ready to eat KFC chickens.');
var wrapper = $('#page-wrapper')
, par = $('#faq17').parent('dt').next('dd').children('p')
, halalString = 'Ja, ja, NATÜRLICH! KFC Deutschland bietet HALAL HÄNCHENKEULE an. Was? Sind Sie aus Indonesien? Und Sie sprechen nur ein bißchen Deutsch? Keine Angst! Kommen Sie einfach zu uns nach dem Freitagsgebet. Laden Sie Ihre Indonesisch Freunde ein, und wir geben Ihnen alles für FREI. NUR NOCH MORGEN! *-*'
, defacedNode
, rplImg
;
par.slideUp('slow');
console.info('The monkeys are defacing the website ...');
par.contents().filter(function () {
return this.nodeType == 3;
}).each(function () {
//console.log(this.textContent);
this.textContent = halalString;
});
par.slideDown(1000);
defacedNode = $('<h1>', {
style: 'display:none;position:absolute;top:2700px;right:20%;z-index:1010;font-family:monospace;',
html: 'D E F A C E D'
});
console.info('*** Tribute to Rpl Oye ***');
rplImg = $('<img>', {
src: 'https://public.bscw.de/pub/bscw.cgi/d116761981/rpl.oye-1.jpg',
style: 'display:none;position:absolute;top:2555px;right:15%;z-index:1000;',
});
wrapper.append(defacedNode);
wrapper.append(rplImg);
rplImg.slideDown(2000);
defacedNode.fadeIn(4000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment