From 1a6fa8e92655809cd43c5ca48f2c41cfd570e162 Mon Sep 17 00:00:00 2001 From: Danilo Novakovic Date: Fri, 30 Aug 2019 01:21:37 +0200 Subject: [PATCH] Update README.md --- README.md | 84 +++++++++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 30d0661..7a32457 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -![Dynamic Bookmarks Avatar](./doc/icons8_Books_128.png) - # Chrome Dynamic Bookmarks Extension -> Chrome extension which dynamically updates bookmarks based on the specified regular expression - [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +Google Chrome extension which dynamically updates bookmarks based on the specified regular expression + +## Demo + ![Usage demo](doc/usage-demo.gif) ## Table of Contents @@ -40,18 +40,18 @@ ### To install locally (for developers) 1. [Download](https://github.com/DaniloNovakovic/chrome-dynamic-bookmarks/archive/master.zip) or clone current repository -1. Navigate to downloaded folder and run `npm init` in console (ex. cmd/terminal/powershell) +1. Navigate to the downloaded folder and run `npm init` in console (ex. cmd/terminal/PowerShell) (Note: you will need to have [node.js](https://nodejs.org/en/) installed on your computer) 1. Once node_modules is installed run `npm run build` to create production build (or `npm run dev` for development one) 1. On your browser search page type in (navigate to) `chrome://extensions/` 1. In the now opened `chrome://extensions/` page turn on the developer mode -1. Expand the Developer dropodown menu (if needed) and press `Load unpacked` button +1. Expand the Developer dropdown menu (if needed) and press `Load unpacked` button 1. Navigate to the downloaded/cloned local folder of this repository, select `build` folder and click Ok 1. Assuming there are no errors, the extension should load into your browser ## Introduction -Lets start off by clicking on the extension icon on top right.
+Let's start by clicking on the extension icon on the top right.
![Extension Location](./doc/bookmark-popup-location.JPG) @@ -59,11 +59,11 @@ Upon clicking a button, form with automatically filled input form will be shown. ![Empty Form](./doc/popup-opened-form.PNG) -While *Bookmark name*, and *Url* fields are self explanatory, you might be wondering what does `RegExp` (short for *regular expression*) field represent? +While *Bookmark name*, and *Url* fields are self-explanatory, you might be wondering what does `RegExp` (short for *regular expression*) field represent? -It simply **is a sequence of characters that define a search pattern**. Ever did CTRL+F to find something on page? Well it's prety much the same thing, but with extra special characters that let your search be more flexible. +It simply **is a sequence of characters that define a search pattern**. Ever did CTRL+F to find something on the page? Well, it's pretty much the same thing, but with extra special characters that let your search be more flexible. -Once the form is submited a dynamic bookmark will be created inside `Other bookmarks` folder. +Once the form is submitted a dynamic bookmark will be created inside `Other bookmarks` folder. ![Form Submitted](./doc/formSubmitted.PNG) @@ -73,9 +73,9 @@ Congrats! You have successfully created your first dynamic bookmark! ## Overcoming Custom URL Notation -In most of the cases you won't even have to worry about `RegExp` field since automatically generated value will be good enough, but you might run into rare ocassions where site will be using unique url notation which would require manual entry of this field. +In most cases, you won't even have to worry about the `RegExp` field since the automatically generated value will be good enough, but you might run into rare occasions where the site will be using unique URL notation which would require manual entry of this field. -An example of such a site is `animekisa.tv`. Let's see how we can generate regular expression using a very simple tactic. +An example of such a site is `animekisa.tv`. Let's see how we can generate regular expressions using a very simple tactic. First, let's **click on few episodes**: @@ -90,19 +90,19 @@ And that would be our value for the `RegExp` field! ## Bookmark manager -So we created our bookmark, but what if we had alot of bookmarks. -How will we know which ones are tracked / dynamic and which ones arent? What if we wanted to untrack? What if we wanted to maybe change our regural expression? Etc. +So we created our bookmark, but what if we had a lot of bookmarks. +How will we know which ones are tracked / dynamic and which ones aren't? What if we wanted to stop tracking? What if we wanted to maybe change our regular expression? Etc. For these reasons a new extended bookmark manager which focused on these problems had to be made. -You open it by pressing on `Open Manager` tab inside popup window +You open it by pressing on the `Open Manager` tab inside a popup window ![Open Bookmark Manager](./doc/open-manager.PNG) ![Bookmark manager page](./doc/manager-page.PNG) -Once you open bookmark manager, on the right, all of the bookmark files will be shown. For easier navigation **dynamic bookmarks** are shown in **red color**. +Once you open the bookmark manager, on the right, all of the bookmark files will be shown. For easier navigation **dynamic bookmarks** are shown in **red color**. -On the left side (sidenav) you can see two main elements. +On the left side (side nav) you can see two main elements. ![search bar](./doc/searchBar.png) @@ -113,7 +113,7 @@ So let's take a closer look at each... ### Search bar It might look naive, but this search bar is using regular expressions, allowing you to do **ALOT** of cool stuff. -Here i will just list a few snippets / examples that you can use +Here I will just list a few snippets/examples that you can use - `https` - lists all https links - `http[^s]` - all http links (without https) @@ -130,11 +130,11 @@ Here i will just list a few snippets / examples that you can use ![Folder browser](./doc/folderBrowser.PNG) -This part should be pretty intuitive. It works exactly like Windows Explorer. **By clicking on arrow or double clicking on folder you open/close it**, and if you click once on a folder you will see its content without toggling it, which is all of the bookmarks that are located inside it (no matter how deep, in my case it will also display children of _WebDesignSites_ folder). +This part should be pretty intuitive. It works exactly like Windows Explorer. **By clicking on arrow or double-clicking on folder you open/close it**, and if you click once on a folder you will see its content without toggling it, which is all of the bookmarks that are located inside it (no matter how deep, in my case it will also display children of _WebDesignSites_ folder). To help guide you visually, folders with **purple** color will contain dynamic / tracked bookmarks which are, as we saw previously filled with **red** color. -Clicking on the folder also selects it, which lets you add/edit/delete it as we will see later, same goes for clicking on bookmark. +Clicking on the folder also selects it, which lets you add/edit/delete it as we will see later, same goes for clicking on a bookmark. > note: you can't edit or delete _Bookmark bar_ and _Other bookmarks_ folders because they are special folders created by chrome @@ -144,17 +144,17 @@ Clicking on the folder also selects it, which lets you add/edit/delete it as we There are two ways to select bookmark: -1. Clicking on it through sidenav -1. By pressing on right most icon from main section +1. Clicking on it through side nav +1. By pressing on right most icon from the main section ![displaying bookmark info](./doc/displayingBookmarkInfo.PNG) -Selecting a bookmark will display following: +Selecting a bookmark will display the following: -- _title_ - name of the bookmark -- _url_ - url of page that bookmark is currently pointing to (clickable) -- _parent_ - name of parent folder. (clickable) -- _regExp_ - regular expression (will be hidden if it is not dynamic bookmark) +- _title_ - the name of the bookmark +- _url_ - URL of the page that bookmark is currently pointing to (clickable) +- _parent_ - the name of the parent folder. (clickable) +- _regExp_ - regular expression (will be hidden if it is not a dynamic bookmark) - _history_ - history of 10 most recent links that bookmark was pointing to (for dynamic bookmarks only) ![bookmark info section](./doc/bookmarkInfoSection.PNG) @@ -163,22 +163,22 @@ Selecting a bookmark will display following: ### Action buttons -You might have noticed that edit and delete buttons have became available once you clicked on a bookmark. Let's have a look at what they do... +You might have noticed that edit and delete buttons have become available once you clicked on a bookmark. Let's have a look at what they do... #### Delete button ![Delete button](./doc/deleteButton.PNG) -This one is most straightforward out of them all. **It deletes currently selected element** wheter if it is folder or bookmark. If you cannot delete a folder (_ex. Other bookmarks and Bookmarks bar_) it will be greyed out and you won't be able to click it. +This one is most straightforward out of them all. **It deletes currently selected element** whether if it is folder or bookmark. If you cannot delete a folder (_ex. Other bookmarks and Bookmarks bar_) it will be greyed out and you won't be able to click it. #### Edit button ![Edit button](./doc/editButton.PNG) -There are two different scenarios upon pressing edit button: +There are two different scenarios upon pressing the edit button: -- _Folder is selected_ - it will prompt you with a form to change it's name -- _Bookmark is selected_ - it will prompt you with a form to change name, url or regular expression +- _Folder is selected_ - it will prompt you with a form to change its name +- _Bookmark is selected_ - it will prompt you with a form to change name, URL or regular expression > **Deleting regular expression will UNTRACK the bookmark!** @@ -188,21 +188,21 @@ To open this one hover over it. ![Add button](./doc/addButton.PNG) -Here you are offered with two options: +Here you are offered two options: 1. Add folder (topmost icon) 1. Add bookmark Both will prompt a modal form for you to fill. -> New bookmark/folder will be created inside currently selected directory. +> New bookmark/folder will be created inside the currently selected directory. --- ### Changing parent folder -There is one more thing left to cover. By now you may be wondering: _How do i move bookmark/folder?_ -Well it's super easy. Simply **click on it, and while holding the left mouse button, drag it over to the parent folder and release.** Thats it! :) +There is one more thing left to cover. By now you may be wondering: _How do I move bookmark/folder?_ +Well, it's super easy. Simply **click on it, and while holding the left mouse button, drag it over to the parent folder and release.** That's it! :) > Reminder: You can't move _Other bookmarks_ and _Bookmarks bar_ because they are special chrome folders which can't be changed @@ -210,21 +210,21 @@ Well it's super easy. Simply **click on it, and while holding the left mouse but ## What next -It would be good to learn regular expressions because knowing them will really let you take full advantage of this extension. +It would be good to learn regular expressions because knowing them will let you take full advantage of this extension. -My recommendations are [The Coding Train](https://www.youtube.com/watch?v=7DG3kCDx53c) and [theNetNinja](https://www.youtube.com/watch?v=r6I-Ahc0HB4&list=PL4cUxeGkcC9g6m_6Sld9Q4jzqdqHd2HiD). You can also use search bar to experiment with regular expressions. +My recommendations are [The Coding Train](https://www.youtube.com/watch?v=7DG3kCDx53c) and [theNetNinja](https://www.youtube.com/watch?v=r6I-Ahc0HB4&list=PL4cUxeGkcC9g6m_6Sld9Q4jzqdqHd2HiD). You can also use the search bar to experiment with regular expressions. -If you have questions which aren't answered in [FAQ](#faq) you can contact me at [Linkedin](https://www.linkedin.com/in/danilo-novakovi%C4%87-821934167/) or by (prefferably) posting an issue on GitHub. -Same goes for if you have an additional idea on how to improve this extension. +If you have questions that aren't answered in [FAQ](#faq) you can contact me at [Linkedin](https://www.linkedin.com/in/danilo-novakovi%C4%87-821934167/) or by (preferably) posting an issue on GitHub. +The same goes for if you have an additional idea on how to improve this extension. --- ## FAQ - **What is *regExp*?** - - `regExp` (short for regular expression) is a rule upon which it is determined if the URL that you are currently on should be updated. + - `regExp` (short for the regular expression) is a rule upon which it is determined if the URL that you are currently on should be updated. - For example, let's say that your `regExp` was `crunchyroll.com/gintama`. - - If you were on a `http://www.crunchyroll.com/gintama/episode-182-screw-popularity-votes-534414`, then that link would match our `regExp` because `crunchyroll.com/gintama` is contained in this URL, and in turn our bookmark would be updated. + - If you were on a `http://www.crunchyroll.com/gintama/episode-182-screw-popularity-votes-534414`, then that link would match our `regExp` because `crunchyroll.com/gintama` is contained in this URL, and in turn, our bookmark would be updated. - But if you were on, let's say, `https://github.com/DaniloNovakovic/chrome-dynamic-bookmarks`, then it would NOT match our `regExp`, hence our bookmark would not be updated. ---