- chrome.manifest
- content clearauth chrome/content/
- overlay chrome://browser/content/browser.xul chrome://clearauth/content/menu.xul
- install.rdf
- <?xml version="1.0"?><RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"><Description about="urn:mozilla:install-manifest"><em:id>{186C404C-8418-11E2-BC8E-582E6288709B}</em:id><em:name>ClearAuth</em:name><em:version>1.0</em:version><em:type>2</em:type><em:aboutURL>chrome://clearauth/content/about.xul</em:aboutURL><em:targetApplication><Description><em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id><em:minVersion>0</em:minVersion><em:maxVersion>100</em:maxVersion></Description></em:targetApplication></Description></RDF>
- chrome\content\about.xul
- <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="chrome://global/skin/" type="text/css"?><window class="dialog" title="ClearAuth" orient="vertical" autostretch="always" onload="sizeToContent()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><hbox><button label="Close" oncommand="window.close();"/></hbox></window>
- chrome\content\contents.rdf
- <?xml version="1.0"?><RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"><RDF:Description RDF:about="urn:mozilla:package:clearauth" chrome:displayName="ClearAuth" chrome:name="clearauth" chrome:extension="true"></RDF:Description><RDF:Seq RDF:about="urn:mozilla:package:root"><RDF:li RDF:resource="urn:mozilla:package:clearauth"/></RDF:Seq><RDF:Seq RDF:about="urn:mozilla:overlays"><RDF:li RDF:resource="chrome://browser/content/browser.xul"/><RDF:li RDF:resource="chrome://navigator/content/navigator.xul"/></RDF:Seq><RDF:Seq RDF:about="chrome://browser/content/browser.xul"><RDF:li>chrome://content/menu.xul</RDF:li></RDF:Seq><RDF:Seq about="chrome://navigator/content/navigator.xul"><RDF:li>chrome://content/menu.xul</RDF:li></RDF:Seq></RDF:RDF>
- chrome\content\functions.js
- if ("undefined" == typeof(ClearAuth)) { var ClearAuth = {}; };
- ClearAuth.ClearAuthSessions = { clearall : function(e) { var auth = Components.classes["@mozilla.org/network/http-auth-manager;1"].getService(Components.interfaces.nsIHttpAuthManager); auth.clearAll(); } };
- var event = { notify: function(timer) { ClearAuth.ClearAuthSessions.clearall(event); } }
- var timer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer);
- timer.initWithCallback(event,10000, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK);
- chrome\content\menu.xul
- <?xml version="1.0"?><overlay id="menu" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><script type="application/x-javascript" src="functions.js"></script></overlay>
Untitled
Posted by Anonymous on Sun 3rd Mar 2013 15:44
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.