CHANGELOG
file to save development changes throughout the project- Adding sites from a JSON file to ease the import process
- Completed the importation of sites from external file
sites.json
, now the program will import all necessary info from the file and use it. This way was used to increase protability. - The representation of json objects in the json file. Now it is more optimized and general.
- The chrome extension security rules prevent making inline JavaScript, like
<button onclick="test.js">This</button>
. The reason is that inline scripting is vulnerable to XSS (Cross-Site Scripting), So the common alternative is to load the logic script from the start as a seperate entity, then add a listener to the button onclick event.
Add Current Site
Button which will add the site you are viewing behind the extension to the storage, and add it to the Quick Access list.
- Completely changed the way the program saves data, now it uses localStorage instead of an external json file. Due to json file was hard to change using JavaScript alone, i had to use Node.js's
fs
library. So localStorage is a better alternative because the data i want to save is very light.
sites.json
due to the use of localStorage.
Clear
Button which will clear the local storage.
- Improved the code to make it easier to read.
- Made the changes happen dynamically on button click by using location.reload(), until i find a better alternative.
Remove
Button which will remove a selected button by right clicking --> Remove.
- Tried to refactor the code to make sites appear in key-item pair in localStorage. But reverted it because it was proven bad [duplicates, sorting, etc...].