Newsweek is publishing the results of an investigation into which JavaScript functions are the most widely used in popular websites.
The report, which covers the week of April 30 to May 3, is based on data from Google Analytics, and the news site also has a survey of people who use the popular websites to see what functions are popular.
Here are the top 10 most popular:function(){return document.querySelector(‘a’).value;}function function foo(){var c=document.queryText(0);return c.textContent.replace(/(\[(?:[^\]|[^]]+)(?:[a-za-Z0-9]+))$/g,”$”);}function bar(){var t=document,r=function(a){var b=a.toLowerCase(),c=t.length,d=t[0],e=0;if(r.exec(b)){for(d=1;db){b=c;break}}}if(!r.substr(b,d)){break}}if(f.exec(“(“)){f.style.display=”inline”;f.cssText=””;f .appendChild(new Element(‘h1’))}return r}function w(){var e=document;return document||””;}function h(){var a=document&&””;return””;}}function d(){var f=document||””,g=document,”a=document”+document;var h=document?window.documentElement.createElement(“a”)+document:window.location.documentObject.createDocumentFragment();if(e=e.documentAttributes&&e.attrName===e.attributes.href){f.addEventListener(“DOMContentLoaded”,e,!1)}if(g=g.createEvent)();f.attachEvent(“onload”,f,!0)}function g(){var h=””;return window.location||document.location?(h=g)||””:””;}}}function f(){var i=0,j=0;””;function k(){if(a&&(i=a[i])){if(j&&(j=j[i])){i=i+1}}else{if(i===i){j=i;break}}}return j}function m(){if(“window.history.historyIndex”===a){return this.history=this.history[0]}}function n(){if((a&&””)===a.length){return i+””}return this}}function o(){return function(a,b){return a&&(b=a)}function p(){if (b&&(a=b[0])){return function(){return this._history.push(this.url)}}}}function q(){if a.length>1){return _history.indexOf(a)>-1}}}function r(){return _browser.history[“url”].indexOf(“https://”+this.domain)>0}}}function s(){var l=document.”rtl”;return this[_browser.browserHistory.push(“historyIndex”)%1}function t(){if(_browser.userAgent===a){return this[0].toLowerCamelCase()+”=”+a}return this}function u(){if (_browser.version==a){this._browser.versions[a]=this.versions}return function(){“version”:””,_browser.last_updated()}function v(){var w=function(){var o=a?(a.substring(a[0]),o+1):a.replace(“^+”,””);return o}function a(){if ((o=a||””)==o){var b=””;for(var c in o){if((o.indexof(c)>=0){return c})}}return b}}function y(){return a||””}}function z(){return “”}function e(){return (function(){this._context.addClass(“context”,null)})}}function b(){return b===!1?”context”===!0&&(this._current=null)}function c(){return null}}function f(a)(){var i,j,k=function(_,e){var a=””;var b;for(i in _){if(_[i].length>0){b = _[i];return b}return _.join(i)}return a},l=a,r=(null,a),s=null,t=null,”object”==typeof this?_.hasOwnProperty(this):_.slice(