Skip to content
This repository was archived by the owner on Sep 18, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildxpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def print_info(self):
self.msg(" - Version: %s" % self.info["version"], False)
self.msg(" - Filename: %s" % self.pn("xpi"), False)

xpifile = open(self.pn("xpi"), "r")
xpifile = open(self.pn("xpi"), "rb")
hashname, hash = sha_hash(xpifile.read())
xpifile.close()
self.msg(" - %s: %s" % (hashname, hash), False)
Expand Down
10 changes: 5 additions & 5 deletions src/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
em:minVersion="3.6"
em:maxVersion="9.*" />
<RDF:Description RDF:about="urn:mozilla:install-manifest"
em:id="socialite@chromakode"
em:id="socialite-fixed@rupertsteel.me"
em:name="Socialite"
em:version="1.5.1"
em:version="1.6.0"
em:type="2"
em:iconURL="chrome://socialite/skin/socialite.png"
em:optionsURL="chrome://socialite/content/socialitePreferences.xul">
Expand All @@ -18,9 +18,9 @@
</RDF:Description>
<RDF:Description RDF:about="rdf:#$lddXp3"
em:locale="en-US"
em:name="Socialite"
em:homepageURL="http://www.reddit.com/socialite/"
em:name="Socialite Fixed"
em:homepageURL="https://github.com/rupertsteel/socialite"
em:description="Vote on and submit stories to reddit social news sites."
em:creator="Chromakode"
em:contributor="slyf" />
em:contributor="Chromakode slyf vilkku" />
</RDF:RDF>
4 changes: 2 additions & 2 deletions src/modules/site.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ SiteCollection.prototype.initRefreshInterval = function() {
SiteCollection.prototype.onContentLoad = function(doc, win) {
if (doc.location) {
for (let [siteID, site] in this) {
// Remove www.
var baseRegex = /www\.?/;
// Remove https?://www.
var baseRegex = /https?:\/\/www\.?/;
var baseSiteHost = site.siteURI.spec.replace(baseRegex, "");
var baseURL = doc.location.href.replace(baseRegex, "");
if (strStartsWith(baseURL, baseSiteHost)) {
Expand Down
12 changes: 0 additions & 12 deletions src/modules/utils/domUtils.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ function compareBy(keyFunction) {
};
}

function sortChildren(parentElement, compareFunc) {
sorted = Array.sort(Array.slice(parentElement.childNodes), compareFunc)

let parentElement = curElement.parentNode;
if (i == nodeList.length) {
// Insert after the last node
parentElement.insertBefore(insertElement, curElement.nextSibling);
} else {
parentElement.insertBefore(insertElement, curElement);
}
}

/**
* Return the first child node of an element with the specified class.
*
Expand Down
139 changes: 0 additions & 139 deletions unused/authentication-old.jsm

This file was deleted.

56 changes: 0 additions & 56 deletions unused/bookmarkletAPI.jsm

This file was deleted.

13 changes: 0 additions & 13 deletions unused/oneshot.jsm

This file was deleted.

56 changes: 0 additions & 56 deletions unused/retry.jsm

This file was deleted.

17 changes: 0 additions & 17 deletions unused/sequence.jsm

This file was deleted.