// ==UserScript==
// @name          Profanity Filter (Static)
// @author        adisib
// @namespace     namespace_adisib
// @description   Basic filtering for profanity from website text. Designed to have minimal performance impact.
// @version       2018.10.10
// @include       http://*
// @include       https://*
// @noframes
// @grant         none
// ==/UserScript==

// https://github.com/adisib/Profanity-Filter

(function(){
"use strict";
let a=new RegExp("\\youtu(be\.com|\.be)","gi"),b=document.evaluate(".//text()[string-length() > 2 and not(parent::script or parent::code)]",
document.body,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);if(a.test(document.title))document.title=document.title.replace(a,"invidio.us");for(let c=b.snapshotLength,d=0;d<c;++d){let e=b.snapshotItem(d);if(a.test(e.data))e.data=e.data.replace(a,"invidio.us");}
})();
