I Will Never Get Over How Weird It Feels To Have Tragic And Emotional Chapters Of Your Life Where You

I will never get over how weird it feels to have tragic and emotional chapters of your life where you just also still go to work, and the grocery store, and see funny videos online all while feeling such paralyzing fear and heartache

life just goes on no matter what

More Posts from Atomicqueenheart and Others

1 year ago

hits you hard

existential crisis after reading "the body you occupied in your previous life is buried somewhere on this earth"

1 year ago

Coding A Simple Firefox Extension

Coding A Simple Firefox Extension

Hiya! Today I want to share my experience creating a simple Firefox extension. I was a bit intimidated by the idea of creating an extension, but I was determined to give it a try! Been on my 'projects to-do' list for a long time! 😅

I found that the process was actually quite straightforward, and with some guidance from a couple of YouTube videos, I was able to create a working (temporary) extension in just an hour. My hope is that this post will serve as a helpful guide for anyone who is interested in creating their own Firefox extension~!

Coding A Simple Firefox Extension

What exactly are we making?

Coding A Simple Firefox Extension
Coding A Simple Firefox Extension

We will be making a simple temporary extension - an extension that only you have access to e.g. end-users will not be able to use the extension. This is a way to test if your extension works and find issues. I might make another post on how to actually upload it for other people to use, but for now, this method is for you to use the extension.

This is the link to the official Mozilla Firefox 'Temporary installation' Guide' for extenisions - LINK

Now, for the steps into making the extension:

Setting up the development environment

Creating a manifest file

Adding a pop-up window

Attaching JavaScript functionality to a button

Load your extension in Firefox

Let's get started~!

Coding A Simple Firefox Extension

Step 1 - Setting up the development environment

Coding A Simple Firefox Extension
Coding A Simple Firefox Extension

Obviously, you will need to have Firefox installed on your computer. You will also need a code editor, such as Visual Studio Code or Sublime Text, to write your code. I'm going to use VS Code.

In your code editor, create a new folder where you will store your extension files. You can name this folder whatever you like. For this example, I will call it 'Firefox Extension'. I also recommend adding the following files in the folder:

index.html (or in this case popup.html file)

icon image in .png or .jpg or similar formats

manifest.json - talked about in the next step

script.js

Step 2 - Creating a manifest file

Coding A Simple Firefox Extension

The most important file I believe when creating an extension is the manifest JSON file. This file will contain metadata about your extension, including its name, version, and permissions. In your new folder, create a new file called "manifest.json".

This is the general structure of the file. The icon size you need to have is 48x48 pixel size image and then you can have others to be responsive to screensizes, I just added one extra. The 'browser_action' part includes the default icon image that will display an icon in the Firefox toolbar and the popup html file. In 'scripts', that is where we will add the JavaScript code to run.

Step 3 - Adding a pop-up window

Coding A Simple Firefox Extension

The code simply displays the text "Hello World" and a button in the center of the window. I assume you're good at your HTML and CSS so I won't go into too much detail here but the CSS is in the style tags within the head tags and what we can see also is what is between the body tags - the 'Hello World' and the 'Click me!' button.

Don't forget to include the script tag at the end of the body tag so it'll link to the script.js file in your folder AND include "scripts": ["script.js"] in the manifest.json for the javascript code.

Step 4 - Attaching JavaScript functionality to a button

Coding A Simple Firefox Extension

Again, I hope you very basic JavaScript. This code basically adds an event listener to the button with the ID "myBtn" (which is the button with 'Click me!' on it). When the button is clicked, it changes the heading 1 text from 'Hello World' to 'The button was clicked!'.

And that it! Done with all the coding part and now to upload it for you to use~!

Step 5 - Load your extension in Firefox

Coding A Simple Firefox Extension

Open Firefox and type "about:debugging" in the address bar. This will open the Firefox Developer Tools page. Click the "This Firefox" section to the left of the page, then click "Load Temporary Add-on". Navigate to your extension folder and select the manifest.json file.

The extension is now loaded in Firefox! Click the icon in the toolbar to see your pop-up window!

Coding A Simple Firefox Extension

Whenever you make changes to the extension, back on the Firefox Developer Tools page, click the 'Reload' button on your extension section and changes should show up!

Coding A Simple Firefox Extension

I hope that this post has been helpful to you and that it has inspired you to create your own Firefox extension! 👩🏾‍💻💗 Remember, the most important thing is to have fun and experiment with different ideas - play with the colours or sizes or the javascript code! Don't be afraid to try new things and explore!!

Extra links that helped me learn:

How to build an extension for Firefox in less than 5 minutes [video]

Temporary installation in Firefox [webpage]

Thanks for reading 🥰💗

11 months ago

I wish we were pressed flowers on the same page.

-Unknown

I Wish We Were Pressed Flowers On The Same Page.
I Wish We Were Pressed Flowers On The Same Page.

Ab ke ham bichhde to shayad kabhi khvabo me mile

jis tarah sukhe hue phuul kitabo me mile.

-Ahmed Faraz

I Wish We Were Pressed Flowers On The Same Page.
I Wish We Were Pressed Flowers On The Same Page.
1 year ago

"you look so pretty" , okay then carry a picture of me in your wallet 🥰😘


Tags
11 months ago

Are you gonna feed me samosas while my mehendi is drying ?

1 month ago
Pyotr Ilyich Tchaikovsky, From A Letter Featured In The Life & Letters Of Pyotr Ilyich Tchaikovsky

Pyotr Ilyich Tchaikovsky, from a letter featured in The Life & Letters of Pyotr Ilyich Tchaikovsky

11 months ago

Tere paas apna dupatta bhul jaun,

Issi bahane tujhse phir ek baar milne aau.

Tere Paas Apna Dupatta Bhul Jaun,
Tere Paas Apna Dupatta Bhul Jaun,
11 months ago

I need a

"Abhi na jao chod kar,

ke Dil abhi bhara nhi"

To my

"Aacha to hum chalte h"

1 year ago

the feminine urge to dance with your banda in the rain to' tum se hi'💙✨️


Tags
  • venranae
    venranae reblogged this · 2 weeks ago
  • venranae
    venranae liked this · 2 weeks ago
  • mikonezzo
    mikonezzo reblogged this · 2 weeks ago
  • mikonezzo
    mikonezzo liked this · 2 weeks ago
  • dollvein
    dollvein liked this · 2 weeks ago
  • sotiriabellou
    sotiriabellou liked this · 2 weeks ago
  • syrenki
    syrenki reblogged this · 2 weeks ago
  • theragezilla
    theragezilla liked this · 3 weeks ago
  • galatheos
    galatheos reblogged this · 3 weeks ago
  • weaklobe
    weaklobe reblogged this · 3 weeks ago
  • fresaflora
    fresaflora reblogged this · 3 weeks ago
  • heartual
    heartual reblogged this · 3 weeks ago
  • syrenki
    syrenki liked this · 3 weeks ago
  • lilworms
    lilworms reblogged this · 3 weeks ago
  • insulined
    insulined reblogged this · 3 weeks ago
  • heavy-water
    heavy-water reblogged this · 3 weeks ago
  • bitchsplainer
    bitchsplainer reblogged this · 3 weeks ago
  • earlgreyandchamomile
    earlgreyandchamomile reblogged this · 3 weeks ago
  • phlappie
    phlappie reblogged this · 3 weeks ago
  • resilientlittlething
    resilientlittlething liked this · 3 weeks ago
  • conspiracyagogo
    conspiracyagogo reblogged this · 3 weeks ago
  • ravensandteacups
    ravensandteacups reblogged this · 3 weeks ago
  • ravensandteacups
    ravensandteacups liked this · 3 weeks ago
  • flowers-in-a-basket
    flowers-in-a-basket liked this · 3 weeks ago
  • mariyak
    mariyak liked this · 3 weeks ago
  • deity-of-insanity
    deity-of-insanity reblogged this · 3 weeks ago
  • mywhirlwind
    mywhirlwind reblogged this · 3 weeks ago
  • mywhirlwind
    mywhirlwind liked this · 3 weeks ago
  • jaggerwockyy
    jaggerwockyy reblogged this · 3 weeks ago
  • hearts-fullmetal
    hearts-fullmetal reblogged this · 3 weeks ago
  • birdieisnotwriting
    birdieisnotwriting reblogged this · 3 weeks ago
  • birdieisnotwriting
    birdieisnotwriting liked this · 3 weeks ago
  • princeteddy
    princeteddy reblogged this · 3 weeks ago
  • charmsandtealeaves
    charmsandtealeaves reblogged this · 3 weeks ago
  • ohmygodshesinsane
    ohmygodshesinsane reblogged this · 3 weeks ago
  • seraphinaivy
    seraphinaivy liked this · 3 weeks ago
  • duolingocaticon
    duolingocaticon reblogged this · 3 weeks ago
  • marchilina
    marchilina reblogged this · 3 weeks ago
  • belosers
    belosers reblogged this · 3 weeks ago
  • raebird
    raebird reblogged this · 3 weeks ago
  • mastershield
    mastershield reblogged this · 4 weeks ago
  • noncensitive
    noncensitive reblogged this · 4 weeks ago
  • undiscloscd
    undiscloscd reblogged this · 4 weeks ago
  • love-n-purple
    love-n-purple liked this · 4 weeks ago
  • a-freakishly-mutual-fad-rat
    a-freakishly-mutual-fad-rat reblogged this · 4 weeks ago
  • a-freakishly-mutual-fad-rat
    a-freakishly-mutual-fad-rat liked this · 4 weeks ago

asi, she/her, living

44 posts

Explore Tumblr Blog
Search Through Tumblr Tags