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
| javascript:(function() { | |
| function textNodesUnder(el){ var n, a=[], walk=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,null,false); while(n=walk.nextNode()) a.push(n); return a; } | |
| Array.prototype.forEach.call(textNodesUnder(document.body), function(elem){ | |
| const t = elem.textContent.trim(); | |
| if(t) { | |
| fetch("https://ninini-cvyphndqrn.now.sh/ninini/"+t) | |
| .then(resp => resp.text()) | |
| .then(text => elem.textContent = text) } }); | |
| })() |
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
| /** | |
| * Takes an array, a given window size and | |
| * a starting index and returns a fragment of the | |
| * array with infinite pagination. | |
| * If the window size if bigger than teh array size, | |
| * it shouldn't be paginated. | |
| **/ | |
| const a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; |
OlderNewer