nfart

Turns all text on page to Fart

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          nfart
// @namespace     http:/penple.org/
// @description	  Turns all text on page to Fart 
// @include       *
// @version       1.0
// ==/UserScript==

var words=['Fart ','fart ','FART! ','Fart! ','Fart. ','FaRt ','fart. ','f-fart? ','Fart? ','fart? ','FART?! '];function groot(node){if(node.nodeType===Node.TEXT_NODE){var text=node.textContent;var iam=text.replace(/\b(\w\S*\s?){1,3}/ig,function(){var idx=Math.floor(Math.random()*words.length);return words[idx];});node.textContent=iam;return;}else if(node.nodeType===Node.ELEMENT_NODE){for(var i=0;i<node.childNodes.length;++i){groot(node.childNodes[i]);}return;}else{return;}}groot(document.body);