Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit b391255

Browse files
committed
this fixes #35
1 parent 5ca1d46 commit b391255

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

js/start.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@
3030

3131
chrome.contentSettings.cookies.clear({});
3232

33+
// https://github.com/gorhill/httpswitchboard/issues/35
34+
// Block all by default.
35+
chrome.contentSettings.javascript.set({
36+
primaryPattern: 'http://*/*',
37+
setting: 'block'
38+
});
39+
chrome.contentSettings.javascript.set({
40+
primaryPattern: 'https://*/*',
41+
setting: 'block'
42+
});
43+
3344
/******************************************************************************/
3445

3546
function injectedCodeCallback(r) {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "HTTP Switchboard",
4-
"version": "0.3.9",
4+
"version": "0.4.1",
55
"description": "Point & click to forbid/allow any class of requests made by your browser. Use it to block scripts, iframes, ads, facebook, etc.",
66
"icons": {
77
"128": "icon_128.png"

settings.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ <h1>HTTP Switchboard &mdash; Settings</h1>
2626

2727
<h2>Strict blocking</h3>
2828
<div>
29-
<p><strong>Strict blocking</strong>, introduced in <a href="https://github.com/gorhill/httpswitchboard/wiki/Change-log#036">version 0.3.6</a>, means that even
29+
<p><strong><a href="https://github.com/gorhill/httpswitchboard/wiki/What-is-%22strict-blocking%22%3F">Strict blocking</a></strong>,
30+
introduced in <a href="https://github.com/gorhill/httpswitchboard/wiki/Change-log#036">version 0.3.6</a>,
31+
means that even
3032
if you whitelist a specific hostname, blacklisted type of requests (<i>plugins</i>,
3133
<i>frames</i>, etc.) will remain blacklisted. For some users this maybe
3234
too bothersome, hence this switch.</p>

0 commit comments

Comments
 (0)