← Home · ↑ May 2018 · Bookmark #27712

Outreachy Internship with Mozilla: Week-1 – Shruti Singh – Medium

Hi there! My first week of Outreachy internship with mozilla was as good as expected. I got LDAP credentials. But wait, what does that mean? It means you get mozilla specific email address, own profile at mozilla Phonebook, access to all mozilla websites, access to their slack/ircCloud account and what not? You get to take part in their team meetings too which is pretty cool. :-) So, the first day of my internship started with a warm welcom from the community and my mentor Les Orchard. My mentor is an awesome person. :) He gave me an outline of what work he expects me to do. So, I started with learning about building themes ( both static and dynamic). I would like to give a rough idea about what I leant. Theme is something that enables you to change the look of the browser. You should have a little idea about WebExtension API before building a theme. So, theme can be static or dynamic. STATIC THEMES- We can’t share static themes with other users. Creating a static theme is simple. You need to include image inside a folder ( same folder where manifest.json [Web extension] file is present).In manifest.json file “theme” is the main object which consist of “images,”color” etc. Static image themes can consist of single or multiple images.We can also build static animated images. DYNAMIC THEMES- We can share static themes with other users. Dynamic theme uses theme API for controlling theme using JS code. For including theme API fiirst you need to request “theme” permission in the extension’s manifest.json file. Then you build a JSON object same as static theme and lastly you pass the JSON object in a theme.update() call. Whatever I have written above might be a confusing to you. Don’t worry! My next week work is based on implementing “building themes” and I will write an elaborated blog with some code snippet. :-) Lastly, I would like to thank Les Orchard for guiding me and also for inviting me to attend weekly Firefox Color meeting on Vidyo. It was very nice meeting Wil, John, Marnie and all members of FireFox Color team. It feels grate when cool people like them acknowledge your presence even when you have nothing much to say. :-) Thank you! :-D