Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/ES6 Refactor #10

Merged
merged 17 commits into from
May 9, 2017

Conversation

ppseprus
Copy link
Contributor

@ppseprus ppseprus commented May 5, 2017

No description provided.

ppseprus added 17 commits May 5, 2017 01:22
- Unify indentation.
- Remove unnecessary comments.
- Remove unused code.
- Auto format JSON file.
- Remove comments as they are not allowed in a JSON file.
https://stackoverflow.com/questions/359494/which-equals-operator-vs-should-be-used-in-javascript-comparisons

"JavaScript has two sets of equality operators: === and !==, and their
evil twins == and !=. The good ones work the way you would expect. If
the two operands are of the same type and have the same value, then ===
produces true and !== produces false. The evil twins do the right thing
when the operands are of the same type, but if they are of different
types, they attempt to coerce the values. the rules by which they do
that are complicated and unmemorable."
- If a variable is boolean, you don't need an "if.. else if..", "if..
  else.. is enough.
- No need to use the `=== true` or `=== false`; the value will be truth
  or falsy.
"I don’t use `var` in ES6. There is value in block scope for loops, but
I can’t think of a situation where I’d prefer `var` over `let`."

"`var` is now the weakest signal available when you define a variable in
JavaScript."

Eric Elliot
https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75
The "activeTab" is needed for inserting scripts into the pages.
Merge the intercept.js into the content.js and rewrite the code.
@mavroudisv mavroudisv merged commit 0233bb4 into ubeacsec:master May 9, 2017
@mavroudisv mavroudisv requested review from phretor and reyammer May 9, 2017 15:12
@ppseprus ppseprus deleted the enhancement/es6-refactor branch May 9, 2017 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants