Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
8de6e26c
Commit
8de6e26c
authored
5 years ago
by
Arlo Breault
Committed by
Cecylia Bocovich
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove Util.mightBeTBB
Trac 31222
parent
5d26f76b
No related branches found
Branches containing commit
Tags
webext-0.0.6
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proxy/init-badge.js
+0
-5
0 additions, 5 deletions
proxy/init-badge.js
proxy/util.js
+1
-17
1 addition, 17 deletions
proxy/util.js
with
1 addition
and
22 deletions
proxy/init-badge.js
+
0
−
5
View file @
8de6e26c
...
...
@@ -114,11 +114,6 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
return
;
}
if
(
Util
.
mightBeTBB
())
{
ui
.
missingFeature
(
"
Will not run within Tor Browser.
"
);
return
;
}
config
=
new
Config
;
if
(
'
off
'
!==
query
.
get
(
'
ratelimit
'
))
{
config
.
rateLimitBytes
=
Params
.
getByteCount
(
query
,
'
ratelimit
'
,
config
.
rateLimitBytes
);
...
...
This diff is collapsed.
Click to expand it.
proxy/util.js
+
1
−
17
View file @
8de6e26c
/* exported Params, DummyRateLimit */
/* exported
Util,
Params, DummyRateLimit */
/*
A JavaScript WebRTC snowflake proxy
...
...
@@ -8,12 +8,6 @@ Contains helpers for parsing query strings and other utilities.
class
Util
{
static
mightBeTBB
()
{
return
Util
.
TBB_UAS
.
indexOf
(
window
.
navigator
.
userAgent
)
>
-
1
&&
(
window
.
navigator
.
mimeTypes
&&
window
.
navigator
.
mimeTypes
.
length
===
0
);
}
static
genSnowflakeID
()
{
return
Math
.
random
().
toString
(
36
).
substring
(
2
);
}
...
...
@@ -28,16 +22,6 @@ class Util {
}
// It would not be effective for Tor Browser users to run the proxy.
// Do we seem to be running in Tor Browser? Check the user-agent string and for
// no listing of supported MIME types.
Util
.
TBB_UAS
=
[
'
Mozilla/5.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/10.0
'
,
'
Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0
'
,
'
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0
'
,
'
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
'
];
class
Parse
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment