diff --git a/background_scripts/main.js b/background_scripts/main.js index eadd1f0..5a1528f 100644 --- a/background_scripts/main.js +++ b/background_scripts/main.js @@ -120,7 +120,6 @@ function getIcon(iconName, count) { context.textBaseline = 'bottom'; context.textAlign = 'right'; context.fillText(count, 15.75, 16); - } dispatch(context.getImageData(0, 0, 16, 16)); }, false); diff --git a/icons/camanjs.png b/icons/camanjs.png new file mode 100644 index 0000000..ca4d42c Binary files /dev/null and b/icons/camanjs.png differ diff --git a/icons/headjs.png b/icons/headjs.png new file mode 100644 index 0000000..01e96be Binary files /dev/null and b/icons/headjs.png differ diff --git a/icons/philogl.png b/icons/philogl.png new file mode 100644 index 0000000..490293d Binary files /dev/null and b/icons/philogl.png differ diff --git a/icons/pusher.png b/icons/pusher.png new file mode 100644 index 0000000..3416f06 Binary files /dev/null and b/icons/pusher.png differ diff --git a/icons/raphael.png b/icons/raphael.png index 937be04..be5b860 100644 Binary files a/icons/raphael.png and b/icons/raphael.png differ diff --git a/icons/requirejs.png b/icons/requirejs.png new file mode 100644 index 0000000..4bf22e2 Binary files /dev/null and b/icons/requirejs.png differ diff --git a/icons/rightjs.png b/icons/rightjs.png new file mode 100644 index 0000000..dfdd3ea Binary files /dev/null and b/icons/rightjs.png differ diff --git a/icons/typekit.png b/icons/typekit.png new file mode 100644 index 0000000..e3ac4d4 Binary files /dev/null and b/icons/typekit.png differ diff --git a/icons/yepnope.png b/icons/yepnope.png new file mode 100644 index 0000000..65eedde Binary files /dev/null and b/icons/yepnope.png differ diff --git a/library/libraries.js b/library/libraries.js index 3c22bba..66e4b3f 100644 --- a/library/libraries.js +++ b/library/libraries.js @@ -110,6 +110,9 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { if(win.Ext && win.Ext.version) { return { version: win.Ext.version }; } + else if (win.Ext && window.Ext.versions) { + return { version: window.Ext.versions.core.version }; + } return false; } }, @@ -125,18 +128,18 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } }, - 'Closure': { + 'Closure Library': { icon: 'closure', - url: 'http://code.google.com/closure', + url: 'http://code.google.com/closure/library', test: function(win) { if(win.goog) { - return { version: '2.0' }; + return { version: 'none' }; } return false; } }, - 'Raphaël': { + 'Raphaël': { icon: 'raphael', url: 'http://raphaeljs.com', test: function(win) { @@ -169,7 +172,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } }, - 'Backbone.js': { + 'Backbone': { icon: 'backbone', url: 'http://documentcloud.github.com/backbone', test: function(win) { @@ -180,7 +183,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } }, - 'Underscore.js': { + 'Underscore': { icon: 'underscore', url: 'http://documentcloud.github.com/underscore', test: function(win) { @@ -192,7 +195,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } }, - 'Sammy.js': { + 'Sammy': { icon: 'sammy', url: 'http://sammyjs.org', test: function(win) { @@ -225,7 +228,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } }, - 'gRaphaël': { + 'gRaphaël': { icon: 'graphael', url: 'http://g.raphaeljs.com', test: function(win) { @@ -243,7 +246,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { if (win.gloader) { return {version: 'none'}; } - else if (win.glow) { + else if (win.glow && win.glow.dom) { return {version: win.glow.VERSION}; } else if (win.Glow) { @@ -257,14 +260,14 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { icon: 'icon_48', // currently has no icon url: 'http://socket.io', test: function(win) { - if (win.io && win.io.sockets && win.io.version) { // fix! e.g. Google Reader currently shows up as using socket.io, which they are not doing + if (win.io && win.io.on) { return {version: win.io.version}; } return false; } }, - 'Mustache.js': { + 'Mustache': { icon: 'mustache', url: 'http://mustache.github.com', test: function(win) { @@ -313,7 +316,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { icon: 'sproutcore', url: 'http://www.sproutcore.com', test: function(win) { - if (win.SC && win.SC.bundleDidLoad) { + if (win.SC && win.SC.Application) { return {version: 'none'}; } return false; @@ -340,21 +343,117 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = { } return false; } - }/*, + }, + + 'PhiloGL': { + icon: 'philogl', + url: 'http://senchalabs.github.com/philogl', + test: function(win) { + if (win.PhiloGL) { + return {version: win.PhiloGL.version}; + } + return false; + } + }, + + 'CamanJS': { + icon: 'camanjs', + url: 'http://camanjs.com', + test: function(win) { + if (win.Caman) { + return {version: 'none'}; + } + return false; + } + }, + + 'yepnope': { + icon: 'yepnope', + url: 'http://yepnopejs.com/', + test: function(win) { + if (win.yepnope) { + return {version: 'none'}; + } + return false; + } + }, + + 'LABjs': { + icon: 'icon_48', + url: 'http://labjs.com/', + test: function(win) { + if (win.$LAB) { + return {version: 'none'}; + } + return false; + } + }, + + 'Head JS': { + icon: 'headjs', + url: 'http://headjs.com/', + test: function(win) { + if (win.head && win.head.js) { + return {version: 'none'}; + } + return false; + } + }, + + 'ControlJS': { + icon: 'icon_48', + url: 'http://stevesouders.com/controljs/', + test: function(win) { + if (win.CJS) { + return {version: 'none'}; + } + return false; + } + }, + 'RequireJS': { + icon: 'requirejs', + url: 'http://requirejs.org/', + test: function(win) { + if (win.require && win.require.version) { + return {version: win.require.version}; + } + return false; + } + }, + + 'RightJS': { + icon: 'rightjs', + url: 'http://rightjs.org/', + test: function(win) { + if (win.RightJS) { + return {version: win.RightJS.version}; + } + return false; + } + }, 'jQuery Tools': { icon: 'jquerytools', url: 'http://flowplayer.org/tools', test: function(win) { - var jq = win.jQuery || win.$ || win.$jq || win.$j; - if(jq && jq.fn && jq.fn.jquery && win.$.tools) { - - //if ((win.$ || win.jQuery) && win.$.tools) { - return {version: $.tools.version}; + var jq = win.jQuery || win.$; + if(jq && win.$.tools) { + return { version: $.tools.version }; + } + return false; + } + }, + + 'Pusher': { + icon: 'pusher', + url: 'http://pusher.com/docs/pusher_js', + test: function(win) { + if(win.Pusher) { + return { version: win.Pusher.VERSION }; } return false; } } -*/ +// maybe include some of the other javascript loaders? - http://jhn.me/7aeW }; \ No newline at end of file diff --git a/popups/libraries.html b/popups/libraries.html index ce847fe..055cb65 100644 --- a/popups/libraries.html +++ b/popups/libraries.html @@ -3,7 +3,7 @@ --> - +