diff --git a/fancy-settings/manifest.js b/fancy-settings/manifest.js index f9c37b0..8ef8b60 100755 --- a/fancy-settings/manifest.js +++ b/fancy-settings/manifest.js @@ -27,38 +27,38 @@ this.manifest = { "text": "

Mostly Harmless grabs data from the Reddit API every time you load a page. However, that data can be cached, or saved for a short time, to improve performance and reduce the load on the reddit API.

This option allows you to change how long a page's data is cached. Longer cache times mean less bandwidth, faster results, and less load on reddit. Shorter cache times mean fresher data.

" }, { - "tab": "Preferences", - "group": "Excluded Sites", + "tab": "Privacy", + "group": "Warning!", "name": "excludedDescription", "type": "description", - "text": "

Excluding sites does not work yet!

I am waiting on Fancy Settings to support textareas.

Mostly Harmless grabs data from the Reddit API every time you load a page. This takes time and bandwidth, taxes the reddit API, and sends the unencrypted URL to reddit. However, you can exclude certain domains or URL patterns from being looked up.

" + "text": "

Exclusions do not work yet!

I am waiting on Fancy Settings to support textareas.

Mostly Harmless grabs data from the Reddit API every time you load a page. This takes time and bandwidth, taxes the reddit API, and sends the unencrypted URL to reddit. However, you can exclude certain domains or URL patterns from being looked up.

" }, { - "tab": "Preferences", - "group": "Excluded Sites", + "tab": "Privacy", + "group": "Excluded Domains", "name": "excludedDomains", "type": "text", "label": "Excluded domains:", "text": "secure.ingdirect.com\nchaseonline.chase.com\nonline.wellsfargo.com" }, { - "tab": "Preferences", - "group": "Excluded Sites", + "tab": "Privacy", + "group": "Excluded Domains", "name": "excludedDomainsDescription", "type": "description", "text": "

Put domains or subdomains, one per line, in the above text box. Any page on the listed domains will not activate Mostly Harmless.

" }, { - "tab": "Preferences", - "group": "Excluded Sites", + "tab": "Privacy", + "group": "Excluded Regex", "name": "excludedRegex", "type": "text", "label": "Excluded regex matches", "text": "chrome:\/\/.*\nhttps?:\/\/www\.google\.com\/search.*\nhttps?:\/\/search\.yahoo\.com\/search.*\nhttps?:\/\/www\.bing\.com\/search.*" }, { - "tab": "Preferences", - "group": "Excluded Sites", + "tab": "Privacy", + "group": "Excluded Regex", "name": "excludedRegexDescription", "type": "description", "text": "

Put regular expressions, one per line, in the above text box. Please do not use the \\n character, because there should be no newlines in a URL. Any page that matches the listed regular expressions will not activate Mostly Harmless." diff --git a/js/common.js b/js/common.js index 0ff8a7f..b5a0d7a 100644 --- a/js/common.js +++ b/js/common.js @@ -1,6 +1,9 @@ var settings, cache, utils, button, reddit, background; -settings = new Store('settings'); +settings = new Store('settings', { + 'cacheTime': 1, + 'freshCutoff': 7 +}); cache = new Store('cache'); /**