Introduction: Aiowa Docs

Welcome dear reader to Aioewa's documentation website, here you will get the knowledge about creating your first ever addon using HTML, JS and CSS. Settle back (or actually, don't), and change the theme clicking of the 🖌️ button of top of this website to change the theme if you prefer a more darker or lighter theme.
Remember!
When creating an addon for Aioewa, be aware of that the most of the code that is written in Aioewa project, is written in either JavaScript, HTML, and or CSS, or all of them.
Developing and doing changes in Aioewa extension itself also requires you to have good knowledge about the Chrome Extension API, so that we are sure that the code you write, is useful 😄.
Here are reference docs to the Chrome's extension API: Reference documentation for Chrome extensions.
Vocabulary Bank:
futureaddons = Addons that are to be added, or used for purpose of testing indev features.DAO= dynamic addon output.DAOE= dynamic addon output event.
First Steps:
Okay, let's start. We will start by creating a fork of Aioewa repository so that we can work on own version of Aioewa repository while still having ability to publish new stuff to the main repository.
Requirements:
- A Chromium based browser which supports extensions: Chrome recommended.
Gitinstalled (Downloadgit)- A code editor, like Visual Studio Code or Notepad++.
Follow these docs in numerical order:
Creating new fork and setting up a new addon
Start by going to the repository's website: https://github.com/StioStudio/Aioewa, and click on "Fork" button:
Proceed by clicking on Create Fork down below. After it got created proceed to next step
Open up a CMD on Windows or Terminal app on Mac, and run cd + appropriate location path where you want to have your fork saved on the computer. Run then git command with the URL of the repository, in my case it is "https://github.com/nikeedev/Aioewa" so we run that: git clone https://github.com/nikeedev/Aioewa. When it is done, you will have possibility to open the folder in your code editor.
Now, let's see what folders we have in Aioewa repository. Open up the fork folder in a file explorer or a code editor.
We have these folder:

We will take a look only at the important folders for now:
_localesfolder = [CURRENTLY NOT IN USE BY AIOEWA EXTENSION] Contains folders of different language locales. You can add your language in here too, so that it shows for the translation for other users who use your language.addonfolder = Contains folders which are the addons. When you want to create a new addon you first create a new folder in here.apifolder = Contains the engines of the addons, it has different functions which parse JSON settings, run Javascript files and a lot more!
Creating new addon
Let's start by creating a new folder inside addons, I will call it my_addon:

Now create a info.json file inside my_addon, let's add following code:
{
"AV": "1",
"name": "My Addon",
"description": "My Addon made by me :D",
"tags": ["community"],
"versionAdded": "1.0.0",
"code": {
"css": "style.css"
}
}
AVis Aioewa Version which basically specifies the version of theinfo.json, in future if values of info.json will be changed and it could possibly break the addon if it uses the old value Aioewa can check if you use up-to-dateinfo.jsonspecification.name: is the name of the addon, says itself.description: says itself too.tags: Tags which can be later used to filter addons by Tags to find addons for specific website or functionality.versionAdded: pretty much just says at what Aioewa version it was added. Here come the fun part:code: This bit is important as it holds the values of the path of the source files of the addon. In this example we will do simple CSS. It could also beIF_,jsand a few others that are covered in the "info.json" File Reference.
Before we proceed, open addon.json file which already exists in addons folder, and add "my_addon" or the name of you addon bellow in the array:

Now lets add Aioewa as an extension to the browser. Follow the instructions on Aioewa's repository README.md file: Load Aioewa into your browser.
After than click on the Aioewa Icon when it has loaded:

or click on the extension list button pointed with the green arrow.
Then scroll down till you find "My Addon" and click on the switch button:

Now, create a style.css file in same folder where info.json lies, and lets do some stuff with it.
Let's change the text color to green, and lets change the font too console font:
body {
color: #00ff00;
font-family: monospace;
}
The result is interesting!

And it is just to change the CSS code and hitting reload website to get updated changes.
On next page we will see how we can use IF_ setting and Javascript to do something even more interesting.
Next page: Adding some code!
Adding some code!
Now as our addon is purely CSS code, we probably need to add some actually Javascript code.
In your info.json you can specify onTab script which will be runned by the addon on every tab you have it.
Info.json provides a lot of other settings, on of them is IF_onTab, which checks if it is meeting specific requirements which are specified by a Javascript script. You can for instance check if the website's domain is the one you want the addon to run on, or else. onTab can run perfectly fine without the IF_ setting, but with it you can check whether the addon can run in that tab or no. Let's do something like this.
Send a PR to the main repository
Hm, looks like there is nothing here...
why not? ¯\_(ツ)_/¯
info.json File Reference
info.json is the file that Aioewa uses to know about your addon, like what script files it uses and general information about your addon like name, description and credits for the creators of it. Within it you can also specify DAO settings which
info.json syntax
Name - Description - Code - Required - Property type Description:
AV
- Description: It basically specifies the version of the
info.json. In the future, if the values ofinfo.json will be changed and it could possibly break the addon if it uses old values, Aioewa can check if you use up-to-dateinfo.jsonspecification usingAV. - Example:
"AV": "1" - Required? ✅
- Property Type:
string
name
- Description: Name of your feature, will be used in the features list.
- Example:
"name": "Test Feature" - Required? ❌, but strongly recommended
- Property Type:
string
description
- Description: Shows the description of the feature
- Example
"description": "This is my test feature" - Required? ❌, but recommended, how do people know what your addon is doing, hacking? 🤷
- Property Type:
string
tags
- Description: Relevant tags to the addon, like the addon being a beta addon you can add beta tag.
- Example:
"Tags": ["community", "testing"] - Required? ❌
- Property Type:
string[]