Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Commit

Permalink
Add group block
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Bavendiek committed Oct 28, 2012
1 parent bda395b commit 8b4e81b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ function httpObserve() {
httpObserve.prototype = {
registerTopic: "http-on-modify-request",
facebookReadStatusUrl: /http(s)?:\/\/(www.)?facebook.com\/ajax\/mercury\/change_read_status.php(\?(.)+)?/,
facebookGroupStatusUrl : /http(s)?:\/\/(www.)?facebook.com\/ajax\/ufi\/seen_tooltip.php(\?(.)+)?/,

observe: function(subject, topic, data) {
if (topic == this.registerTopic) {
subject.QueryInterface(Components.interfaces.nsIHttpChannel);
var url = subject.URI.spec;

if (this.facebookReadStatusUrl.test(url)) {
if (this.facebookReadStatusUrl.test(url) || this.facebookGroupStatusUrl.test(url)) {
subject.cancel(Components.results.NS_BINDING_ABORTED);
}
}
Expand All @@ -45,4 +46,4 @@ function startup(data, reason) {
function shutdown(data, reason) {
obs.unregister();
obs = null;
}
}

0 comments on commit 8b4e81b

Please sign in to comment.