create account

[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls. by jestemkioskiem

View this thread on: hive.blogpeakd.comecency.com
· @jestemkioskiem · (edited)
$26.57
[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls.
![betterbanner.png](https://cdn.steemitimages.com/DQmThJ6dbucWg5vfdysfvU9M569Dhgi7Tx1sJQWq4JuMXfv/betterbanner.png)

## Better Crowdin Darkmode
Publisher - *Jestemkioskiem*
[repository](https://github.com/Jestemkioskiem/crowdin-better-darkmode/)

You can install the addon directly from [the Chrome App Store!](https://chrome.google.com/webstore/detail/better-crowdin-darkmode/fccdlbbbagagchebkahkdjndkfkielkk) (for review purposes - not anymore, as I've updated it to 0.2.1 - use github)

If the addon didn't work, try reloading the page after enabling Darkmode on Crowdin.
## Version 0.1.0
[3d78a4c](https://github.com/Jestemkioskiem/crowdin-better-darkmode/commit/3d78a4c9e3126e01de3b4ccd68877fde4a966514) - [951fcbc](https://github.com/Jestemkioskiem/crowdin-better-darkmode/commit/951fcbc043c5902f04f3245b43dbec785f92fe2a)

### The goal of the project
The addon aims to replace the terrible, unusable darkmode of Crowdin with something that is actually easy on your eyes, and will allow you to work for hours before they get tired. 

The project was born on a Friday night when tired me tried his best to submit translations to his favorite project. The white color of the page was unbearable, but thankfully the developers included a great option for people like me to utilize - Darkmode. I was eager to try it out up until the very moment it loaded. Unfortunately, the darkmode looks like [this](https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmVrN6pDP1pCbxwSDGf3bepLYKE5YGXBNPCCsguJPyY5DS/before.PNG) (I've decided to keep the screenshots out of the post to make it look better. Sorry for the extra clicks!)

This is.... more than unacceptable. It not only almost hurts my eyes more than the default, it kind of makes me want to puke by looking at those colors.
If we dive deeper into the CSS alterations that this settting makes... it basically only inverts all the colors. Including text - from black, to **white**. In a dark mode.

I can't work like this, and even just for myself, setting the CSS to what suits me through the developer tools of my browser is too much work on a daily basis. So I'm building an addon. But if I am building one, I am building it the right way - open source, for everyone to use.

Spoiler alert - [this is the end result](https://cdn.steemitimages.com/DQmSaVH9xrQdHMHXWd3jQdLAmXyULwQDwecfzdc1ToBHTNn/after.PNG)

And a nice gif to showcase the difference, in case it wasn't obvious enough:

![beforeafter.gif](https://cdn.steemitimages.com/DQmRY8Q1RrLW6EyCh7XnqaCuMYYECvRK16BH7LqAb5HRTA2/beforeafter.gif)

### What's in the code:
#### manifest.json
The main configuration file of any browser extension, necesary for it to run.
#### src/script.js
The main javascript file of the extension - even though it's small, it's been compiled to be this way after literally hours of work (iframes are not fun and websites that set every CSS element to !important **by default** are **the worst**).

The CSS properties are a temporary workaround up until I get the background running when I set up the popup.
#### icons
The logo for the icons (also present in the banner of this post) was inspired by the Crowdin logo, in an obviously darker color scheme. As far as I am concerned, it is temporary and I'm open for contributions in this regard.


### Technology Stack
- JavaScript *(1.8.5)*
- [Jquery *(3.3.1)*](https://code.jquery.com/jquery-3.3.1.min.js)

### Roadmap

#### Firefox Support
I wish to maintain Firefox support for every future version. This is unfortunately not an easy port because Mozilla, for whatever reason, fires iframe onload events immediately after the Document Object Model is loaded. There's currently no workaround to this issue in the newest version of the browser.

#### GUI & Customizability
Further milestone is to create a small GUI enabled by clicking the icon to alter all the text colors and backgrounds to your liking with a HEX color picker. Alternatively, a local website opened in a new tab will do the trick. 

### How to contribute?
Submit all the Issues & Pull Requests directly to the [project repository](https://github.com/Jestemkioskiem/crowdin-better-darkmode/).

### GitHub Information
[my github account](github.com/jestemkioskiem)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorjestemkioskiem
permlinkbetter-crowdin-darkmode-release
categoryutopian-io
json_metadata{"tags":["utopian-io","development","crowdin"],"app":"steemit/0.1","image":["https://cdn.steemitimages.com/DQmThJ6dbucWg5vfdysfvU9M569Dhgi7Tx1sJQWq4JuMXfv/betterbanner.png","https://cdn.steemitimages.com/DQmRY8Q1RrLW6EyCh7XnqaCuMYYECvRK16BH7LqAb5HRTA2/beforeafter.gif"],"links":["https://github.com/Jestemkioskiem/crowdin-better-darkmode/","https://chrome.google.com/webstore/detail/better-crowdin-darkmode/fccdlbbbagagchebkahkdjndkfkielkk","https://github.com/Jestemkioskiem/crowdin-better-darkmode/commit/3d78a4c9e3126e01de3b4ccd68877fde4a966514","https://github.com/Jestemkioskiem/crowdin-better-darkmode/commit/951fcbc043c5902f04f3245b43dbec785f92fe2a","https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmVrN6pDP1pCbxwSDGf3bepLYKE5YGXBNPCCsguJPyY5DS/before.PNG","https://cdn.steemitimages.com/DQmSaVH9xrQdHMHXWd3jQdLAmXyULwQDwecfzdc1ToBHTNn/after.PNG","https://code.jquery.com/jquery-3.3.1.min.js","github.com/jestemkioskiem"],"format":"markdown"}
created2018-09-14 06:03:33
last_update2018-09-15 13:22:57
depth0
children6
last_payout2018-09-21 06:03:33
cashout_time1969-12-31 23:59:59
total_payout_value20.167 HBD
curator_payout_value6.407 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,226
author_reputation41,292,066,961,817
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries
0.
accountsteemplus-pay
weight100
1.
accountutopian.pay
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,245,784
net_rshares24,911,287,977,183
author_curate_reward""
vote details (55)
@amosbastian ·
$11.07
Thanks for the contribution, @jestemkioskiem! I really wonder what Crowdin were thinking as their dark mode is really unacceptable like you said. This should definitely help a lot of our translators, great work!

Some thoughts about the commits (not sure why you linked the two you did, but I'm reviewing [this one](https://github.com/Jestemkioskiem/crowdin-better-darkmode/blob/2b6b52e7fcac2ae73da185576bfaffea5ea1a6e5/src/script.js))  made before submitting this contribution (keep in mind I am not an experienced JavaScript developer so take it with a grain of salt):

* Is there a reason you use `var` instead of `let` and `const`? You could also a [for...of statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) statement instead.
* Should add a space before opening brackets, e.g. `if()` -> `if ()`.
* Maybe you could just use vanilla JavaScript instead of adding jQuery, or if you really want to use a library/framework you can use something like Vue.js instead? I could be chatting absolute shit, though lol. 

I would also recommend installing ESLint, as that will help for linting (like PEP8 / pylint for Python).

Also creating pull requests for a feature is great, especially for us reviewers. It immediately makes it clear which commits are relevant to the contribution, but it's not a must of course.

Looking forward to seeing the GUI and customisation implemented, and seeing this makes me want to create a Chrome extension as well, haha.

---

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1342312).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , ,
properties (23)
authoramosbastian
permlinkre-jestemkioskiem-better-crowdin-darkmode-release-20180915t132627652z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["jestemkioskiem"],"links":["https://github.com/Jestemkioskiem/crowdin-better-darkmode/blob/2b6b52e7fcac2ae73da185576bfaffea5ea1a6e5/src/script.js","https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/1342312","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-09-15 13:26:27
last_update2018-09-15 13:26:27
depth1
children3
last_payout2018-09-22 13:26:27
cashout_time1969-12-31 23:59:59
total_payout_value8.993 HBD
curator_payout_value2.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,994
author_reputation174,473,586,900,705
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,362,021
net_rshares9,583,673,537,972
author_curate_reward""
vote details (10)
@jestemkioskiem · (edited)
Hey! You might not (or you might actually absolutely do so) believe me when I say this, but this is the first thing I **ever** built in JS. jQuery and Vanilla is all I know, so I use them both to best of my abilities. For now they do more than fine and jQuery came in handy when building the GUI later on, which is now working - although still WIP - and I'll be uploading it soon!  

Here's a small sneak peak to get you motivated - it was really fun to build, actually. 

![popupsmall.gif](https://cdn.steemitimages.com/DQmYrdFYyFje5hCZ7ffAXM4vVaqCQGod57ik15scWQmagni/popupsmall.gif)

I am often guilty of spending 30 minutes making changes without checking if they break anything in-between. I was really surprised that very few updates I made introduced more than a syntax error. I might yet fall in love with this language, I guess.

Back to your feedback though:
>Is there a reason you use var instead of let and const? You could also a for...of statement statement instead.

No reason other than lack of experience. I already started using `let` instead and will change the old ones as well. Will replace the loop too, thanks!

>Should add a space before opening brackets, e.g. if() -> if (). I would also recommend installing ESLint, as that will help for linting (like PEP8 / pylint for Python).

Note taken, thanks!

Your feedback is amazing as always and I'm glad to say that I had coded like 3x as much in the same amount of time last night, so you'll get much more to review.
πŸ‘  ,
properties (23)
authorjestemkioskiem
permlinkre-amosbastian-re-jestemkioskiem-better-crowdin-darkmode-release-20180915t151435460z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"image":["https://cdn.steemitimages.com/DQmYrdFYyFje5hCZ7ffAXM4vVaqCQGod57ik15scWQmagni/popupsmall.gif"],"app":"steemit/0.1"}
created2018-09-15 15:14:39
last_update2018-09-16 00:21:51
depth2
children0
last_payout2018-09-22 15:14:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,487
author_reputation41,292,066,961,817
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,370,994
net_rshares682,104,757
author_curate_reward""
vote details (2)
@utopian-io ·
Thank you for your review, @amosbastian!

So far this week you've reviewed 6 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-jestemkioskiem-better-crowdin-darkmode-release-20180915t132627652z-20180920t093239z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-20 09:32:39
last_update2018-09-20 09:32:39
depth2
children0
last_payout2018-09-27 09:32:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation152,955,367,999,756
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,750,439
net_rshares0
@utopian-io ·
Thank you for your review, @amosbastian!

So far this week you've reviewed 6 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-jestemkioskiem-better-crowdin-darkmode-release-20180915t132627652z-20180920t224806z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-20 22:48:09
last_update2018-09-20 22:48:09
depth2
children0
last_payout2018-09-27 22:48:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation152,955,367,999,756
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,804,765
net_rshares0
@steem-ua ·
#### Hi @jestemkioskiem!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-better-crowdin-darkmode-release-20180915t232806z
categoryutopian-io
json_metadata"{"app": "beem/0.19.54"}"
created2018-09-15 23:28:06
last_update2018-09-15 23:28:06
depth1
children0
last_payout2018-09-22 23:28:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length293
author_reputation23,214,230,978,060
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,401,126
net_rshares0
@utopian-io ·
Hey, @jestemkioskiem!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-better-crowdin-darkmode-release-20180920t092430z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-09-20 09:24:30
last_update2018-09-20 09:24:30
depth1
children0
last_payout2018-09-27 09:24:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length596
author_reputation152,955,367,999,756
root_title"[Release] Better Crowdin Darkmode - a necessary addon for translating nightowls."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,749,951
net_rshares0