Fast Math Tricks


1)ytcfg.d()[a[0]]=a[1];else for(var k in a[0])ytcfg.d()[k]=a[0][k]}}; window.ytcfg.set(\’EMERGENCY_BASE_URL\’, \’/error_204?tx3djserrorx26levelx3dERRORx26client.namex3d1x26client.versionx3d2.20210804.05.00\’);]]>=5)return;window.unhandledErrorCount+=1;window.unhandledErrorMessages[message]=true;var img=new Image;window.emergencyTimeoutImg=img;img.onload=img.onerror=function(){delete window.emergencyTimeoutImg}; var combinedLineAndColumn=err.lineNumber;if(!isNaN(err[\”columnNumber\”]))combinedLineAndColumn+=\”:\”+err[\”columnNumber\”];var stack=err.stack||\”\”;var values={\”msg\”:message,\”type\”:err.name,\”client.params\”:\”unhandled window error\”,\”file\”:err.fileName,\”line\”:combinedLineAndColumn,\”stack\”:stack.substr(0,500)};var thirdPartyScript=!err.fileName||err.fileName===\”\”||stack.indexOf(\”extension://\”)>=0;var replaced=stack.replace(/https://www.youtube.com//g,\”\”);if(replaced.match(/https?://[^/]+//))thirdPartyScript= true;else if(stack.indexOf(\”trapProp\”)>=0&&stack.indexOf(\”trapChain\”)>=0)thirdPartyScript=true;else if(message.indexOf(\”redefine non-configurable\”)>=0&&message.indexOf(\”userAgent\”)>=0)thirdPartyScript=true;var baseUrl=window[\”ytcfg\”].get(\”EMERGENCY_BASE_URL\”,\”https://www.youtube.com/error_204?t=jserror&level=ERROR\”);var unsupported=message.indexOf(\”window.customElements is undefined\”)>=0;if(thirdPartyScript||unsupported)baseUrl=baseUrl.replace(\”level=ERROR\”,\”level=WARNING\”);var parts=[baseUrl];for(var key in values){var value= values[key];if(value)parts.push(key+\”=\”+encodeURIComponent(value))}img.src=parts.join(\”&\”)}; (function(){function _getExtendedNativePrototype(tag){var p=this._nativePrototypes[tag];if(!p){p=Object.create(this.getNativePrototype(tag));var p$=Object.getOwnPropertyNames(window[\”Polymer\”].Base);for(var i=0,n=undefined;i

<![CDATA[var ytcsi={gt:function(n){n=(n||\"\")+\"data_\";return ytcsi[n]||(ytcsi[n]={tick:{},info:{}})},now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()},tick:function(l,t,n){var ticks=ytcsi.gt(n).tick;var v=t||ytcsi.now();if(ticks[l]){ticks[\"_\"+l]=ticks[\"_\"+l]||[ticks[l]];ticks[\"_\"+l].push(v)}ticks[l]=v},info:function(k, v,n){ytcsi.gt(n).info[k]=v},setStart:function(s,t,n){ytcsi.info(\"yt_sts\",s,n);ytcsi.tick(\"_start\",t,n)}}; (function(w,d){ytcsi.setStart(\"dhs\",w.performance?w.performance.timing.responseStart:null);var isPrerender=(d.visibilityState||d.webkitVisibilityState)==\"prerender\";var vName=!d.visibilityState&&d.webkitVisibilityState?\"webkitvisibilitychange\":\"visibilitychange\";if(isPrerender){ytcsi.info(\"prerender\",1);var startTick=function(){ytcsi.setStart(\"dhs\");d.removeEventListener(vName,startTick)};d.addEventListener(vName,startTick,false)}if(d.addEventListener)d.addEventListener(vName,function(){ytcsi.tick(\"vc\")}, false);function isGecko(){if(!w.navigator)return false;try{if(w.navigator.userAgentData&&w.navigator.userAgentData.brands&&w.navigator.userAgentData.brands.length){var brands=w.navigator.userAgentData.brands;for(var i=0;i0&&ua.toLowerCase().indexOf(\"webkit\")<0&&ua.indexOf(\"Edge\")Fast Math Tricks – How to multiply 2 digit numbers up to 100 – the fast way! – YouTube

>0),A=0;function B(a,b){this.width=a;this.height=b} B.prototype.aspectRatio=function(){return this.width/this.height}; B.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; B.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; B.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function C(){var a=document;var b=\”DIV\”;\”application/xhtml+xml\”===a.contentType&&(b=b.toLowerCase());return a.createElement(b)} ;var D=new WeakMap;function aa(a,b){a=[a];for(var d=b.length-1;0<=d;–d)a.push(typeof b[d],b[d]);return a.join(\"x0B\")} ;function E(a,b,d){if(b instanceof B)d=b.height,b=b.width;else if(void 0==d)throw Error(\"missing height argument\");a.style.width=F(b);a.style.height=F(d)} function F(a){\"number\"==typeof a&&(a=Math.round(a)+\"px\");return a} ;var G,H,I=x.window,J=(null===(G=null===I||void 0===I?void 0:I.yt)||void 0===G?void 0:G.config_)||(null===(H=null===I||void 0===I?void 0:I.ytcfg)||void 0===H?void 0:H.data_)||{},K=[\"yt\",\"config_\"],L=x;K[0]in L||\"undefined\"==typeof L.execScript||L.execScript(\"var \"+K[0]);for(var M;K.length&&(M=K.shift());)K.length||void 0===J?L[M]&&L[M]!==Object.prototype[M]?L=L[M]:L=L[M]={}:L[M]=J;function N(a){var b={};return a in J?J[a]:b} ;function O(a){a=P(a);return\"string\"===typeof a&&\"false\"===a?!1:!!a} function P(a){var b=N(\"EXPERIMENTS_FORCED_FLAGS\");return void 0!==b[a]?b[a]:N(\"EXPERIMENT_FLAGS\")[a]} ;var Q=function(a,b){function d(f){f=u(f);f.next();f=v(f);return b(g,f)} b=void 0===b?aa:b;var g=y(a);return function(f){for(var h=[],e=0;e=1550-Q()&&800<=a.height)f=!U(b)||1550b)){var l=1327;O(\”kevlar_watch_split_pane\”)&&(l+=Q());!O(\”kevlar_watch_flexy_disable_small_window_sizing\”)&& (630>a.height&&657<=a.width||630<=a.height&&1E3<=a.width&&a.widthb?f=g/b:1E3a)} ;var V=document.querySelector(\”#player.skeleton #player-api\”);if(V){var W=.5625,X=V.querySelector(\”.html5-video-player\”);X&&\”function\”===typeof X.getVideoAspectRatio&&(W=1/X.getVideoAspectRatio());var Y=window.document,Z=\”CSS1Compat\”==Y.compatMode?Y.documentElement:Y.body,ba=T(new B(Z.clientWidth,Z.clientHeight),W);E(V,ba)};}).call(this); ]]>AboutPressCopyrightContact usCreatorAdvertiseDevelopersTermsPrivacyPolicy & SafetyHow YouTube worksTest new features

Source

Leave a Reply