NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name SHINTEL // @namespace AMDRules // @description intel is a bad thing do not be alive around them // @include * // @version 1 // @grant none // ==/UserScript== function htmlreplace(a, b, element) { if (!element) { htmlreplace(a, b, document.head); htmlreplace(a, b, document.body); return; } var nodes = element.childNodes; for (var n=0; n<nodes.length; n++) { if (nodes[n].nodeType == Node.TEXT_NODE) { var r = new RegExp(a, 'gi'); nodes[n].textContent = nodes[n].textContent.replace(r, b); } else { htmlreplace(a, b, nodes[n]); } } } htmlreplace('shintel', 'intel'); //we've met an AMD brother htmlreplace('intel', 'shintel'); htmlreplace('shintel inside', 'shintel outside'); htmlreplace('amd', 'AMD'); htmlreplace('ryzen 5', 'R5'); htmlreplace('ryzen 3', 'R3'); htmlreplace('ryzen 7', 'R7'); htmlreplace('threadripper', 'TR'); htmlreplace('thread ripper', 'TR'); htmlreplace('ryzen', 'Ryzen'); // every intel name we want lowercased cuz shintel is shintel var lowerCaseShintel = ["pentium", "xeon", "coffee lake", "kaby lake", "skylake", "sky lake"]; var arrayLength = lowerCaseShintel.length; for(var i = 0; i < arrayLength; i++) { htmlreplace(lowerCaseShintel[i], lowerCaseShintel[i]); }