Skip to content

This is the github repo for the 'Random website' extension for google chrome that I have made which lets you easily randomly surf the web.

Notifications You must be signed in to change notification settings

Michael-Perdue/Random-website-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The published google chrome extension that I made for this project can be found at: HERE.

The motivation for this project

The reason why I made this project was that I was curious about how a google chrome extension works from the code side and I wanted to refresh myself on Javascript. So following that I decided the one thing that I could add to Chrome is something to do when bored and the logical conclusion from that is a button that takes me to a random website.

How the extension works

The extension has only default permissions and gathers no data from users

Upon adding the extension nothing happens there's no new tab opened like most extensions, it only does something when you click the symbol for the extension which is the same as this website's favicon (tab icon). Then when you click the symbol you get a black small window pops up with only The text 'start clicking' and a button with the text 'random website. The popup is as below:

Clicking the button will open a 'random' website in a new tab in the same window. It would be impossible to just open a truly random website and I wouldn't really care for 9/10 websites on the internet so instead I created a list of websites that I would want to visit when I just have to kill time or I'm bored. This list is stored in a JSON file called data and is grouped in the files the extension has when you add it, so the extension loads the URLs from the JSON file and it then randomly selects one from the list and opens it in a new tab.

This extension isn't that complicated, but it provides a somewhat useful functionality to me of getting rid of some websites from my favorites/bookmarks bar and giving me an easy way of just randomly surfing the web.

About

This is the github repo for the 'Random website' extension for google chrome that I have made which lets you easily randomly surf the web.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published