Ticket #53: greasemonkey-songbird-patch.2.diff
| File greasemonkey-songbird-patch.2.diff, 4.4 kB (added by i..@mckellar.org, 2 years ago) |
|---|
-
trunk/src/chrome.manifest
old new 1 1 content greasemonkey chrome/chromeFiles/content/ 2 2 overlay chrome://browser/content/browser.xul chrome://greasemonkey/content/browser.xul 3 overlay chrome://songbird/content/xul/mainScriptsOverlay.xul chrome://greasemonkey/content/browser.xul 3 4 locale greasemonkey en-US chrome/chromeFiles/locale/en-US/ -
trunk/src/chrome/chromeFiles/content/browser.js
old new 11 11 GM_BrowserUI.QueryInterface = function(aIID) { 12 12 if (!aIID.equals(Components.interfaces.nsISupports) && 13 13 !aIID.equals(Components.interfaces.gmIBrowserWindow) && 14 !aIID.equals(Components.interfaces.nsISupportsWeakReference)) 14 !aIID.equals(Components.interfaces.nsISupportsWeakReference) && 15 !aIID.equals(Components.interfaces.nsIWebProgressListener)) 15 16 throw Components.results.NS_ERROR_NO_INTERFACE; 16 17 17 18 return this; … … 55 56 this.toolsMenu = document.getElementById("taskPopup"); 56 57 } 57 58 59 // songbird compat 60 if (!this.appContent && this.tabBrowser) { 61 this.appContent = this.tabBrowser.parentNode; 62 } 63 58 64 // update visual status when enabled state changes 59 65 this.enabledWatcher = GM_hitch(this, "refreshStatus"); 60 66 GM_prefRoot.watch("enabled", this.enabledWatcher); … … 74 80 .getService(Components.interfaces.nsIWindowWatcher); 75 81 76 82 // this gives us onLocationChange 77 document.getElementById("content").addProgressListener(this,83 this.tabBrowser.addProgressListener(this, 78 84 Components.interfaces.nsIWebProgress.NOTIFY_LOCATION); 79 85 80 86 // update enabled icon … … 107 113 */ 108 114 GM_BrowserUI.openInTab = function(domWindow, url) { 109 115 if (this.isMyWindow(domWindow)) { 110 document.getElementById("content").addTab(url);116 this.tabBrowser.addTab(url); 111 117 } 112 118 } 113 119 -
trunk/src/chrome/chromeFiles/content/browser.xul
old new 62 62 <statusbarpanel id="gm-status" insertafter="livemark-button"> 63 63 <label id="gm-status-label" collapsed="true" crop="end" style="width:0px; margin:0;" /> 64 64 <image id="gm-status-image" width="16" height="16" style="margin:0 5px" 65 mousethrough="never" 65 66 onclick="if (!event.button) GM_setEnabled(!GM_getEnabled()); 66 67 else if (event.button == 1) GM_BrowserUI.manageMenuItemClicked();" 67 68 context='gm-status-popup'/> -
trunk/src/install.rdf
old new 7 7 8 8 <em:name>Greasemonkey</em:name> 9 9 <em:id>{e4a8a97b-f2ed-450b-b12d-ee082ba24781}</em:id> 10 <em:version>0.7.2007 0607.0</em:version>10 <em:version>0.7.20071101.0</em:version> 11 11 <em:description>A User Script Manager for Firefox</em:description> 12 12 <em:creator>Aaron Boodman; http://youngpup.net/</em:creator> 13 13 <em:contributor>Anthony Lieuallen; http://arantius.com</em:contributor> … … 30 30 <em:optionsURL>chrome://greasemonkey/content/manage.xul</em:optionsURL> 31 31 <em:iconURL>chrome://greasemonkey/content/status_on.gif</em:iconURL> 32 32 33 <!-- Firefox --> 33 34 <em:targetApplication> 34 35 <Description> 35 36 <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> … … 38 39 </Description> 39 40 </em:targetApplication> 40 41 42 <!-- Songbird --> 43 <em:targetApplication> 44 <Description> 45 <em:id>songbird@songbirdnest.com</em:id> 46 <em:minVersion>0.3pre</em:minVersion> 47 <em:maxVersion>0.3.*</em:maxVersion> 48 </Description> 49 </em:targetApplication> 50 41 51 <em:file> 42 52 <Description about="urn:mozilla:extension:file:greasemonkey"> 43 53 <em:package>content/</em:package>
