const injectScriptURL = "https://gist.g.../annibal/.../raw/.../prepareInjection.js";
const injectParams = {
bustCache : true,
fetchCode : false,
ROSE : true,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .text-border { | |
| /* ___________ Parameters */ | |
| /* Alpha */ --ts_a: 100%; | |
| /* Blur */ --ts_b: 0px; | |
| /* Color */ --ts_c: 136 136 136; | |
| /* Distance */ --ts_d: 0.2px; | |
| /* ⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣⌢⌣ */ | |
| /* Variables Math */ | |
| /* */ | |
| /* K Shell */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "rules": { | |
| "domain": [ | |
| ".com .net .org and .info domain names cannot exceed 67 characters", | |
| ".info and .biz must have at least 3 characters not including .info and .biz", | |
| "Other domain names cannot exceed 22 characters not including the extension", | |
| "2 letter domains are not allowed." | |
| ], | |
| "edge-cases": [ | |
| "'http://url.com/path///////otherpath' is technically valid per RFC 3986 and 9110. Most servers normalize or collapse them ('/path///////otherpath' and '/path/otherpath' yield the same resource), others don't (several empty segments (\"\") between 'path' and 'otherpath').", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const regExVersion = new RegExp([ | |
| // starts with "v" ➔ v1, v2, v56, v100 works. vv1, 12345, 1.2.3 fails. | |
| "^(?:v)", | |
| // major version: either "0" or a number that not starts with 0. ➔ v01 fails | |
| "(?<major>(?:[1-9][0-9]*)|(?:0))", | |
| // minor version (optional) - same as major ➔ v1.1, v0.1, v2.15, v9, v9.0, v9.9 works. v9.09 fails | |
| "(?:\.(?<minor>(?:[1-9][0-9]*)|(?:0)))?", | |
| // revision (optional too) - same as major ➔ v1.2.3, v0.0.1, v9.0.9 works, v0.0.0, v6.5.04 fails. | |
| "(?:\.(?<revision>(?:[1-9][0-9]*)|(?:0)))?", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .BEM { /* Quick Reference Sheet + Comments */ | |
| --def: B "Block", E "Element", M "Modifier"; | |
| --usage: | |
| "block" "__element" "--modifier || _name_value", | |
| "button" "button__icon" "button__icon--disabled", | |
| "card" "card__footer" "card__footer--is_bad" "card__footer_is_bad" | |
| "nibol-slider__item--active" | |
| ; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const makeColorFormatConverterHelpers = (() => { | |
| function rgbToHsl([r, g, b]) { | |
| r /= 255; g /= 255; b /= 255; | |
| const max = Math.max(r, g, b), min = Math.min(r, g, b); | |
| let h, s, l = (max + min) / 2, d = max - min; | |
| if (!d) h = s = 0; | |
| else { | |
| s = l > 0.5 ? d / (2 - max - min) : d / (max + min); | |
| switch (max) { | |
| case r: h = (g - b) / d + (g < b ? 6 : 0); break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| const NoneOneAll = (predicate) => [ | |
| () => null, | |
| (p) => p[0], | |
| (p) => Array.from(p), | |
| ][((len) => +!!len + (len > 1))(predicate?.length)](predicate); | |
| let defaultRootElm = []; | |
| try { | |
| if (!document) throw new Error("[H()+Q()]: Global variable Document (<html />) is not accessible"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Example usage: | |
| console.log(testWidthReductionTechniques("Hello World")); | |
| console.log(runWidthTests()); | |
| function testWidthReductionTechniques(inputText) { | |
| // Store original for comparison | |
| const original = inputText; | |
| // Key directional control characters | |
| const RLM = "\u200F"; // Right-to-Left Mark |
NewerOlder