Skip to content

rounakbanik/webchromic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webchromic is a Google Chrome Extension that brings you the latest and the best comics from the internet to your home page.

The extension is finally available on the Google App Store. Find it here

Feel free to add your own comics by forking the repository. I am also accepting pull requests. However, if you explicitly want me to add a particular comic, please contact on Facebook or e-mail me at rounakbanik@gmail.com

How to add your own comic

  1. Fork/Download this repository
  2. Open the manifest.json file. Add the URL of the webcomic in the permissions array. Make sure you add a coma after every website except the last
  3. Add the same URL to content_security_policy.
  4. Open webchromic.html. Add a link to the mySideNav div. Make sure you give it a class. For this example, I'll assume the class is xyz-mlink
  5. Go to the comic's website. Right click on the comic and choose 'Inspect Element'. Find out the id or class which uniquely identifies the image.
  6. Create a JSON object with url, key (the id/class mentioned in the previous step), prestr (default it to an empty string), scale (use scale(1) if you do not want to resize) and margin, in pixels.
  7. Open js/contentscript.js and add the object to the websites array.
  8. At the bottom of the script, add an jQuery event listener for your newly created link. It'll be of the form: $('xyz-mlink').click(*your object*, HTMLParser).

Screenshots

alt tag
alt tag
alt tag
alt tag

About

Bring the best webcomics to your Chrome homepage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published