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
| self.compareWordSamePer100 = function compareWordSamePer100(s, s2) | |
| { //at least ##% of words must be the same for it to be considered the same | |
| var re=/\s\s/g, haz={}, wut=[], i=0, L=s.length-3, cs; | |
| s=s.toLowerCase().replace(re," ").replace(re," "); | |
| s2=s2.toLowerCase().replace(re," ").replace(re," "); | |
| while(i!=L){ | |
| cs="_"+s.substr(i,4); | |
| if( ! (cs in haz) ){ haz[cs] = 1; wut.push(cs); } | |
| else haz[cs] |= 1; | |
| i++; |
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
| //Importiant: original code author: | |
| //grabbed from: https://github.com/AdrS/CppToHTML | |
| //GNU liscense or something IDK | |
| //USAGE: Select and upload file from the file input element if you can find it, | |
| //run this file on example.com or a blank webpage | |
| // run: var htmlString=cpp_syntax_hi.htmlPrettyPrint(cpp_syntax_hi.files_e[0].textC), od2=document.createElement("div"); od2.innerHTML=htmlString; document.body.appendChild(od2); | |
| //I might need this to make: https://gist.github.com/DreamOfTranscendence/0dbb2267f4ebd19441869fe793f46cab |
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
| //https://gist.github.com/DreamOfTranscendence/1660dd5d50857ea3686e321d0f6a89fe | |
| var js_req2=function js_require2_xhr(url){ | |
| var xhr=new XMLHttpRequest(); | |
| xhr.open("GET",url); | |
| xhr.responseType="text"; | |
| xhr.onload=function(){ | |
| var j=document.createElement("script"); j.type="text/javascript"; j.setAttribute("data-from-url",url); |
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
| var parryTHIS=this.self||this; //the global js object should always be named "self", if you disagree with this you're no good at programming. | |
| //(function gitRespDigSearchJs(){ | |
| var _M=(parryTHIS.gitRespDig={err:[],"c_syslib":[]}), | |
| files_by_path=(_M.filesp={}), | |
| xh=new XMLHttpRequest(), | |
| xhBL=[], //xh backlog (I don't want infinite XHR object instances) | |
| rpth="https://raw.githubusercontent.com/", rpth2="/refs/heads/master/", | |
| getHubFile=(xh.onreadystatechange=(_M.gitFile= |
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
| //sndcld craker, nodejs. lol. | |
| //this is a fun client-side-only lite 'hack'. It may not continue to work if the bot-detection system is well designed or if the developers see this hack and change the exact text patterns in their API | |
| //designed to run in nodejs, nodejs has no audio player so I reccomend using ffplay that comes with the ffmpeg library/full-install | |
| var https=require("https"); | |
| //exec_=require("child_process"); | |
| //zlib = require("zlib"); //use on resp buffer if needed to implement accept-encoding: gzip request header | |
| if(typeof self=="undefined") let self=this; //must be global context this right here |