// ==UserScript== // @name 8chan de-faggifier // @namespace https://8ch.net // @version 0.1 // @description Removes 8chan formatting anti-features // @author (You) // @match http://8ch.net/*/index.html // @match http://8ch.net/*/catalog.html // @match http://8ch.net/*/res/*.html // @match https://8ch.net/*/index.html // @match https://8ch.net/*/catalog.html // @match https://8ch.net/*/res/*.html // @grant none // ==/UserScript== (function() { 'use strict'; // remove fag quotes (interfere e.g. with IRC logs) document.querySelectorAll('p.rquote').forEach(function(e, i, a) { e.classList.remove('rquote'); }); // remove alt-right echo chambers document.querySelectorAll('span.detected').forEach(function(e, i, a) { let t = e.innerText; t = t.replace(/^\(+/, '').replace(/\)+$/, ''); e.parentNode.replaceChild(document.createTextNode(t), e); }); })();