When I wanted to search on the English version of Google, I used bookmarks to access it. However, I wondered if I could make it more convenient with a plugin, so I decided to create one.
For those niche users who hide their default bookmarks and use plugins like Bookolio (which makes bookmarks easier to view), this plugin might be somewhat useful—like for myself.
Environment
- Google Chrome
- JavaScript
Specifications
There are various types of plugins, but the one I created this time is as follows:
【Plugin Image】
When you click the plugin icon, it simply opens the English version of Google in a new tab. It's a super simple functionality.
Its simplicity leaves room for improvement.
Preparation
First, create the folder and files as follows:
※ Prepare the icons as needed.
background.js is the JavaScript that runs in the background. For more details, refer to the Developer's Guide.
Editing manifest.json
manifest.json
The description varies depending on the type of plugin. It's not particularly difficult, so for more details, refer to the Developer's Guide.
Editing background.js
background.js
The code was referenced from Chrome extension: open link in new tab?. You should be able to understand it somewhat by looking at it.
For more details, refer to the documentation (ry) Developer's Guide.
Basically, you write the code in JavaScript, utilizing the APIs provided by Google for browser operations.
Thoughts
I’d like to try developing plugins for Atom as well.