Skip to content

Conversation

@noah
Copy link

@noah noah commented Aug 21, 2016

Also added an entry field to the preferences. Each line represents a
regex that will be applied against doc.domain. If the regex matches,
IAT will abort.

Also added an entry field to the preferences.  Each line represents a
regex that will be applied against doc.domain.  If the regex matches,
IAT will abort.
@docwhat docwhat added this to the 2.0 milestone Oct 5, 2016
@docwhat docwhat added the feature label Oct 5, 2016
Copy link
Owner

@docwhat docwhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be nice to include an example RegExp or something in there. Like .*example\.com$ or something harmless.


var blacklisted_domains = itsalltext.preferences.blacklist_domains.split("\n");
var pattern,
domain_is_blacklisted = false;
Copy link
Owner

@docwhat docwhat Oct 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this a separate method? And it should probably be called something like isDomainBlacklisted() take a domain as a string.

In theory, I should be writing tests for this stuff, but it wasn't really a thing when I started this project.

}

/*
var console = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the built-in IAT debugging stuff... there are examples around here someplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants