Skip to content

Commit

Permalink
Merge pull request #73 from gbaptista/gb-build-0.0.21
Browse files Browse the repository at this point in the history
Build 0.0.21
  • Loading branch information
gbaptista authored Feb 25, 2018
2 parents 0202c01 + e20b02d commit 3658930
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.20
0.0.21
Binary file not shown.
1 change: 0 additions & 1 deletion builds/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ rm -rf builds/current/images/stores
rm -rf builds/current/js/content/interceptors
rm builds/current/js/content/interceptor.js

rm builds/current/.version
rm builds/current/_config.yml
rm builds/current/README.md

Expand Down
2 changes: 1 addition & 1 deletion html/interface-sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="loading">loading...</div>
<div id="options-container"><form class="options-form">
<div class="col-2 col-2-header">
<a href="https://github.com/gbaptista/luminous/releases/tag/0.0.20" id="version" target="_blank">0.0.20</a>
<a href="https://github.com/gbaptista/luminous/releases/tag/0.0.21" id="version" target="_blank">0.0.21</a>
<a href="https://gbaptista.github.io/luminous/doc/en-US" id="help-link" class="top-link" target="_blank">help</a>
<a href="../settings/injection/enabled.html" id="settings-link" class="top-link" target="_blank">settings</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion html/popup/templates/options.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form class="options-form">
<div class="col-2 col-2-header">
<a href="https://github.com/gbaptista/luminous/releases/tag/0.0.20" id="version" target="_blank">0.0.20</a>
<a href="https://github.com/gbaptista/luminous/releases/tag/0.0.21" id="version" target="_blank">0.0.21</a>
<a href=" " id="help-link" class="top-link" target="_blank"></a>
<a href="../settings/injection/enabled.html" id="settings-link" class="top-link" target="_blank"></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion js/background/headers_and_options_listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var apply_user_agent_rules = function(request_details) {
if(should_remove_user_agent(request_details.url)) {
for (let header of request_details.requestHeaders) {
if (header.name.toLowerCase() == 'user-agent') {
header.value = '';
header.value = 'Mozilla/5.0';
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/content/injections/interceptor_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ injections_controller(function() {
*
* The non-minified version for the code below is available at:
*
* - https://github.com/gbaptista/luminous/blob/0.0.20/js/content/interceptor.js
* - https://github.com/gbaptista/luminous/blob/0.0.20/js/content/interceptors/
* - https://github.com/gbaptista/luminous/blob/0.0.21/js/content/interceptor.js
* - https://github.com/gbaptista/luminous/blob/0.0.21/js/content/interceptors/
*
*/
var content = 'UGLIFYJS_RESULT';
Expand Down
2 changes: 1 addition & 1 deletion js/content/interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ original_window_setInterval(function() {
counters = { addEventListener: {}, handleEvent: {}, WebAPIs: {} };
counters_changed = true;
}
}, 100);
}, 100, '__INTERNAL_LUMINOUS_CODE__');

var increment_counter = function(kind, type, result, details, execution_time) {
original_window_setTimeout(function() {
Expand Down
14 changes: 6 additions & 8 deletions js/content/interceptors/navigator_id/user_agent.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
var original_window_navigator_userAgent = window.navigator.userAgent;

if(original_window_navigator_userAgent && original_window_navigator_userAgent != '') {
var details = { target: 'HTTP headers', code: {} };
var details = { target: 'HTTP headers', code: {} };

if(is_allowed('WebAPIs', 'headers.User-Agent')) {
increment_counter('WebAPIs', 'headers.User-Agent', 'allowed', details);
} else {
increment_counter('WebAPIs', 'headers.User-Agent', 'blocked', details);
}
if(is_allowed('WebAPIs', 'headers.User-Agent')) {
increment_counter('WebAPIs', 'headers.User-Agent', 'allowed', details);
} else {
increment_counter('WebAPIs', 'headers.User-Agent', 'blocked', details);
}

Object.defineProperty(
Expand All @@ -23,7 +21,7 @@ Object.defineProperty(
if(!is_allowed('WebAPIs', 'NavigatorID.userAgent')) {
increment_counter('WebAPIs', 'NavigatorID.userAgent', 'blocked', details);

return '';
return 'Mozilla/5.0';
} else {
var timer = performance.now();

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_manifestName__",
"short_name": "Luminous",
"description": "__MSG_manifestDescription__",
"version": "0.0.20",
"version": "0.0.21",
"author": "Guilherme Baptista",
"developer": {
"name": "Guilherme Baptista",
Expand Down

0 comments on commit 3658930

Please sign in to comment.