From cb1f636b9761da5791358f5ae8ff21ac562dd880 Mon Sep 17 00:00:00 2001 From: ElbertF Date: Fri, 15 Oct 2010 17:50:44 +1100 Subject: [PATCH] Added support for Firefox Mobile and moved icons to the address bar --- chrome.manifest | 6 +- chrome/content/apps.js | 160 ++++++++ chrome/content/content.js | 75 ++++ chrome/content/mobile/dialogs/prompt.xul | 19 + chrome/content/mobile/options.xul | 8 + chrome/content/mobile/overlay.xul | 31 ++ chrome/content/overlay.js | 470 ++++++++++------------- chrome/content/overlay.xul | 39 +- chrome/locale/en-US/overlay.properties | 1 + chrome/skin/app_icons/TYPO3.ico | Bin 894 -> 21590 bytes chrome/skin/mobile/overlay.css | 9 + chrome/skin/overlay.css | 10 +- install.rdf | 48 ++- 13 files changed, 574 insertions(+), 302 deletions(-) create mode 100644 chrome/content/apps.js create mode 100644 chrome/content/content.js create mode 100755 chrome/content/mobile/dialogs/prompt.xul create mode 100755 chrome/content/mobile/options.xul create mode 100755 chrome/content/mobile/overlay.xul create mode 100755 chrome/locale/en-US/overlay.properties create mode 100755 chrome/skin/mobile/overlay.css diff --git a/chrome.manifest b/chrome.manifest index cc3605458..808d7b4ae 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -2,4 +2,8 @@ content wappalyzer chrome/content/ locale wappalyzer en-US chrome/locale/en-US/ skin wappalyzer classic/1.0 chrome/skin/ -overlay chrome://browser/content/browser.xul chrome://wappalyzer/content/overlay.xul \ No newline at end of file +overlay chrome://browser/content/browser.xul chrome://wappalyzer/content/overlay.xul + +override chrome://wappalyzer/content/overlay.xul chrome://wappalyzer/content/mobile/overlay.xul application={a23983c0-fd0e-11dc-95ff-0800200c9a66} +override chrome://wappalyzer/content/options.xul chrome://wappalyzer/content/mobile/options.xul application={a23983c0-fd0e-11dc-95ff-0800200c9a66} +override chrome://wappalyzer/skin/overlay.css chrome://wappalyzer/skin/mobile/overlay.css application={a23983c0-fd0e-11dc-95ff-0800200c9a66} diff --git a/chrome/content/apps.js b/chrome/content/apps.js new file mode 100644 index 000000000..2a09d868c --- /dev/null +++ b/chrome/content/apps.js @@ -0,0 +1,160 @@ +if ( typeof(wappalyzer) != 'undefined' ) +{ + wappalyzer.apps = { + 'phpBB': { html: /(Powered by (]+)?phpBB|]+phpBB Group)/i }, + 'WordPress': { html: /(]+wp-content|]+WordPress)/i }, + 'MediaWiki': { html: /(]+MediaWiki|]+>Powered by MediaWiki<\/a>)/i }, + 'Joomla': { html: /(]+Joomla|]+drupal\.js|jQuery\.extend\(Drupal\.settings, \{|Drupal\.extend\(\{ settings: \{|]+sites\/(default|all)\/themes\/|]+Kolibri/i }, + 'vBulletin': { html: /]+vBulletin/i }, + 'SMF': { html: /