This file is indexed.

/usr/share/javascript/tinycon/tinycon.min.js is in libjs-tinycon 0.6.5+ds-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
(function(){var Tinycon={};var currentFavicon=null;var originalFavicon=null;var faviconImage=null;var canvas=null;var options={};var r=window.devicePixelRatio||1;var size=16*r;var defaults={width:7,height:9,font:10*r+"px arial",color:"#ffffff",background:"#F03D25",fallback:true,crossOrigin:true,abbreviate:true};var ua=function(){var agent=navigator.userAgent.toLowerCase();return function(browser){return agent.indexOf(browser)!==-1}}();var browser={ie:ua("trident"),chrome:ua("chrome"),webkit:ua("chrome")||ua("safari"),safari:ua("safari")&&!ua("chrome"),mozilla:ua("mozilla")&&!ua("chrome")&&!ua("safari")};var getFaviconTag=function(){var links=document.getElementsByTagName("link");for(var i=0,len=links.length;i<len;i++){if((links[i].getAttribute("rel")||"").match(/\bicon\b/i)){return links[i]}}return false};var removeFaviconTag=function(){var links=document.getElementsByTagName("link");var head=document.getElementsByTagName("head")[0];for(var i=0,len=links.length;i<len;i++){var exists=typeof links[i]!=="undefined";if(exists&&(links[i].getAttribute("rel")||"").match(/\bicon\b/i)){head.removeChild(links[i])}}};var getCurrentFavicon=function(){if(!originalFavicon||!currentFavicon){var tag=getFaviconTag();currentFavicon=tag?tag.getAttribute("href"):"/favicon.ico";if(!originalFavicon){originalFavicon=currentFavicon}}return currentFavicon};var getCanvas=function(){if(!canvas){canvas=document.createElement("canvas");canvas.width=size;canvas.height=size}return canvas};var setFaviconTag=function(url){if(url){removeFaviconTag();var link=document.createElement("link");link.type="image/x-icon";link.rel="icon";link.href=url;document.getElementsByTagName("head")[0].appendChild(link)}};var log=function(message){if(window.console)window.console.log(message)};var drawFavicon=function(label,color){if(!getCanvas().getContext||browser.ie||browser.safari||options.fallback==="force"){return updateTitle(label)}var context=getCanvas().getContext("2d");var color=color||"#000000";var src=getCurrentFavicon();faviconImage=document.createElement("img");faviconImage.onload=function(){context.clearRect(0,0,size,size);context.drawImage(faviconImage,0,0,faviconImage.width,faviconImage.height,0,0,size,size);if((label+"").length>0)drawBubble(context,label,color);refreshFavicon()};if(!src.match(/^data/)&&options.crossOrigin){faviconImage.crossOrigin="anonymous"}faviconImage.src=src};var updateTitle=function(label){if(options.fallback){var originalTitle=document.title;if(originalTitle[0]==="("){originalTitle=originalTitle.slice(originalTitle.indexOf(" "))}if((label+"").length>0){document.title="("+label+") "+originalTitle}else{document.title=originalTitle}}};var drawBubble=function(context,label,color){if(typeof label=="number"&&label>99&&options.abbreviate){label=abbreviateNumber(label)}var len=(label+"").length-1;var width=options.width*r+6*r*len,height=options.height*r;var top=size-height,left=size-width-r,bottom=16*r,right=16*r,radius=2*r;context.font=(browser.webkit?"bold ":"")+options.font;context.fillStyle=options.background;context.strokeStyle=options.background;context.lineWidth=r;context.beginPath();context.moveTo(left+radius,top);context.quadraticCurveTo(left,top,left,top+radius);context.lineTo(left,bottom-radius);context.quadraticCurveTo(left,bottom,left+radius,bottom);context.lineTo(right-radius,bottom);context.quadraticCurveTo(right,bottom,right,bottom-radius);context.lineTo(right,top+radius);context.quadraticCurveTo(right,top,right-radius,top);context.closePath();context.fill();context.beginPath();context.strokeStyle="rgba(0,0,0,0.3)";context.moveTo(left+radius/2,bottom);context.lineTo(right-radius/2,bottom);context.stroke();context.fillStyle=options.color;context.textAlign="right";context.textBaseline="top";context.fillText(label,r===2?29:15,browser.mozilla?7*r:6*r)};var refreshFavicon=function(){if(!getCanvas().getContext)return;setFaviconTag(getCanvas().toDataURL())};var abbreviateNumber=function(label){var metricPrefixes=[["G",1e9],["M",1e6],["k",1e3]];for(var i=0;i<metricPrefixes.length;++i){if(label>=metricPrefixes[i][1]){label=round(label/metricPrefixes[i][1])+metricPrefixes[i][0];break}}return label};var round=function(value,precision){var number=new Number(value);return number.toFixed(precision)};Tinycon.setOptions=function(custom){options={};if(custom.colour){custom.color=custom.colour}for(var key in defaults){options[key]=custom.hasOwnProperty(key)?custom[key]:defaults[key]}return this};Tinycon.setImage=function(url){currentFavicon=url;refreshFavicon();return this};Tinycon.setBubble=function(label,color){label=label||"";drawFavicon(label,color);return this};Tinycon.reset=function(){currentFavicon=originalFavicon;setFaviconTag(originalFavicon)};Tinycon.setOptions(defaults);if(typeof define==="function"&&define.amd){define(Tinycon)}else if(typeof module!=="undefined"){module.exports=Tinycon}else{window.Tinycon=Tinycon}})();
//# sourceMappingURL=tinycon.min.js.map