mft3k

Firefox Extension that adds a MST3K row of seats to the bottom of the browser
git clone Https://wehaveforgeathome.hates.computer/mft3k.git
Log | Files | Refs | LICENSE

commit 38c2a0e8f30f8440fb6ec37465a33ad541a9cc30
Author: Ryan Wolf <rwolf@borderstylo.com>
Date:   Fri, 25 Jun 2010 15:05:19 -0700

initial clone from beffy

Diffstat:
A.gitignore | 1+
AMakefile | 11+++++++++++
AREADME.md | 24++++++++++++++++++++++++
Achrome.manifest | 6++++++
Achrome/content/about.xul | 17+++++++++++++++++
Achrome/content/browser.xul | 15+++++++++++++++
Achrome/content/content.js | 4++++
Achrome/modules/module.js | 7+++++++
Achrome/skin/images/.gitignore | 0
Achrome/skin/stylesheets/stylesheet.css | 0
Adefaults/preferences/.gitignore | 0
Ainstall.rdf | 21+++++++++++++++++++++
Alocale/en-US/stringbundle.dtd | 7+++++++
13 files changed, 113 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +mft3k.xpi diff --git a/Makefile b/Makefile @@ -0,0 +1,11 @@ +package : clean + zip -r mft3k.xpi chrome/ defaults/ locale/ chrome.manifest install.rdf + +clone : clean + cp -R . ${DIR}${NAME} && \ + find ${DIR}${NAME}/ -not -regex '^\./\.git/.*' -type f | \ + xargs sed -i 's/mft3k/${NAME}/g' + +clean : + rm -f mft3k.xpi + diff --git a/README.md b/README.md @@ -0,0 +1,24 @@ +mft3k - a Barebones Extension For Firefox, Ya'll +============ + +A basic Firefox extension with a menu item, for copying and pasting into new projects. + +For Development +============ + +Like they say in the [good book](https://developer.mozilla.org/en/Setting_up_extension_development_environment#Firefox_extension_proxy_file), navigate to: + + ~/.mozilla/firefox/$PROFILE_NAME/extensions + +...and create a file named: + + mft3k@thebigbad.github.com + +Inside that file, write the path of this project (making sure it ends in slash). + +For Sharing +=========== + + make + +... and open mft3k.xpi in Firefox diff --git a/chrome.manifest b/chrome.manifest @@ -0,0 +1,6 @@ +content mft3k chrome/content/ +content mft3k chrome/content/ contentaccessible=yes +locale mft3k en-US locale/en-US/ +skin mft3k classic/1.0 chrome/skin/ +resource mft3k chrome/modules/ +overlay chrome://browser/content/browser.xul chrome://mft3k/content/browser.xul diff --git a/chrome/content/about.xul b/chrome/content/about.xul @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> +<!DOCTYPE overlay SYSTEM "chrome://mft3k/locale/stringbundle.dtd"> +<window class="dialog" title="&mft3k.about;" orient="vertical" + onload="sizeToContent();" autostretch="always" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + <groupbox align="center" orient="horizontal"> + <vbox style="font-weight: bold; font-size: x-large;"> + <text value="&mft3k.about;" /> + </vbox> + <spring flex="1"/> + </groupbox> + <hbox> + <spacer flex="1"/> + <button label="&mft3k.about.close;" oncommand="window.close();"/> + </hbox> +</window> diff --git a/chrome/content/browser.xul b/chrome/content/browser.xul @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/css" + href="chrome://mft3k/skin/stylesheets/stylesheet.css" ?> +<!DOCTYPE overlay SYSTEM "chrome://mft3k/locale/stringbundle.dtd"> +<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + <script type="application/x-javascript" + src="chrome://mft3k/content/content.js" /> + <menubar id="main-menubar"> + <menu label="&mft3k.menu.title;" insertbefore="tools-menu"> + <menupopup> + <menuitem label="&mft3k.menu.item;" oncommand="alert('Hello World!');"/> + </menupopup> + </menu> + </menubar> +</overlay> diff --git a/chrome/content/content.js b/chrome/content/content.js @@ -0,0 +1,4 @@ +new function () { + var scope = {}; + Components.utils.import("resource://mft3k/module.js", scope); +}; diff --git a/chrome/modules/module.js b/chrome/modules/module.js @@ -0,0 +1,7 @@ +var EXPORTED_SYMBOLS = ["state"]; + +var state = { + foo: 0, + bar: 1, + baz: 2 +}; diff --git a/chrome/skin/images/.gitignore b/chrome/skin/images/.gitignore diff --git a/chrome/skin/stylesheets/stylesheet.css b/chrome/skin/stylesheets/stylesheet.css diff --git a/defaults/preferences/.gitignore b/defaults/preferences/.gitignore diff --git a/install.rdf b/install.rdf @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#" + xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> + <Description about="urn:mozilla:install-manifest"> + <em:id>rwolf+mft3k@borderstylo.com</em:id> + <em:name>mft3k</em:name> + <em:version>1.0.0</em:version> + <em:type>2</em:type> + <em:targetApplication> + <Description> + <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> + <em:minVersion>1.5</em:minVersion> + <em:maxVersion>3.6.*</em:maxVersion> + </Description> + </em:targetApplication> + <em:aboutURL>chrome://mft3k/content/about.xul</em:aboutURL> + <em:creator>Ryan Wolf</em:creator> + <em:description>Barebones Extension For Firefox, Ya'll</em:description> + <em:homepageURL>http://github.com/thebigbad/mft3k</em:homepageURL> + </Description> +</RDF> diff --git a/locale/en-US/stringbundle.dtd b/locale/en-US/stringbundle.dtd @@ -0,0 +1,7 @@ +<!-- See: https://developer.mozilla.org/en/Localizing_an_extension --> +<!ENTITY mft3k.menu.title "mft3k"> +<!ENTITY mft3k.menu.item "Say Hi"> + +<!ENTITY mft3k.about "mft3k"> +<!ENTITY mft3k.about.close "close"> +