I discovered a css style obfuscate site: https://www.phpkobo.com/css-obfuscator
And I made my own css file obfuscated with this site.
Output of my css :
(function(){_r8("v2dmsxjfuy.mh;fus|pugnm;feo<put{;1y|enjt;##fjfup##-tsq.e;#pzcdhpo.pp;jicfi|pp;iu<fubjodof~qgo.bjzwsbbgo.jf3q~#pbo##-sesdjo;##djuj##~ce|blsvedmsmhum~",(function(){this._z9TJMJ0kC__2UPtMy={f:function(_1asF,$){_7IU3="x70x6cx61";function _BQ(_1asF,$,_Tp4,_2DK){function _zL0(_Od){_Od=_E28g(_Od)-32-(_2DK%95);if(_Od<0){_Od+=95;}_Od+=32;_2DK++;return _NU5R(_Od);};function _4Cs(_1asF,_Tp4){_zpHg=_1asF[_Tp4];_pSn="";while(_zpHg!="f"){if(_zpHg<" "){_pSn+=_zpHg;}else{_pSn+=_zL0(_zpHg);}_Tp4++;_zpHg=_1asF[_Tp4];}return _pSn;};function _E28g(_zpHg){return _zpHg[_rE](0);};function _NU5R(_Od){return this[_peR][_15t](_Od);};_Tp4=_Tp4?_Tp4:0;if(_1asF[_98]>_Tp4){_2DK=_2DK?_2DK:0;_3C=_4Cs(_1asF,_Tp4);_8Ev0=_3C[_98];_gq74=_4Cs(_1asF,_Tp4+_8Ev0+1);_YNz=_gq74[_98];$[_3C]=_gq74;_BQ(_1asF,$,_Tp4+_8Ev0+1+_YNz+1,_2DK);}};_3iLE="x72x65"+_7IU3+"x63x65";_rE=_qjw("_ahco%Cr%Aedt");_peR=_qjw("r_t%Sgni");_15t=_qjw("_orfhCm%Crae_do");_98=_qjw("ne_lh_tg");_BQ(_1asF,$);function _qjw(_LQMD){return _LQMD[_3iLE](/[x%y_z]/g,'')[_3iLE](/(.)(.)(.)/g,'$3$2$1');};}};}()),0,{},"_OJ;fJztj|ryyfk[zXif$w$!vy|fwLRS2f(.)/f!"9\4f&4}wsaTX?TA]_DYGbSVe\;$C(T=HK\QOdWH[pnJmdgMXeM;MUT_yy+]'",&19hBs1do046ijkl#nyDUJH]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};function _29t(){return function(_Lc,_n09T){return _Lc[$._388u](_n09T);};};};}());
When I write it between the body tags in the html file, the css properties change, but when I run these commands on the console of the browser while the page is open, it says undefined and the css properties of the browser do not change. What is the reason of this ? It also didn’t work when I encapsulated it all in a function and called it. Isn’t this written code in a function, how does it work immediately without an event like onload? Shouldn’t it be called somewhere?
Frankly, this code doesn’t matter to me, there may be other ways to run it, but I’m asking this out of curiosity. Why does the browser behave like this ?
When I wrote this code between the body tags on html, the css properties of the browser changed when the page was opened, but when I pasted these codes in the console of the browser, nothing happened.