Code Monkey home page Code Monkey logo

chrome-extension-custom-button's Introduction

Custom Button

Custom Button is a simple Chrome extension where you can customize a button, set an URL, change the icon and some other stuff.

Just go to options and set the url and the window mode on activation. You can also set a regular expression to match a certain domain and activate notifications when the match fails.

Options

URL

Set the url you want to launch. For example:
*http://digg.com/reader*

Add %url anywhere in the string and it will be replaced by the active tab url. For example:
http://www.sciweavers.org/iWeb2Shot?url=%url

Choose the opening mode:

  • Current tab: opens in the active tab.
  • New tab: creates a new tab.
  • New window: creates a new Chrome window.
  • Popup window: create a new window but in a popup style, no toolbar, no tab bar, just window border and content.
  • Popup on button: tries to open the site in a popup. Due to browser security policies, some sites won't load in the button popup. For example Google sites and Facebook won't load.

For example, you could set the url to chrome://extensions and then set it to open on a popup window. This way your button will open the extensions page on a separate popup window, pretty cool!

ICON

Sets the icon on the button and notifications.
JPG/PNG/ICO format and 19x19px is recommended or it will be resized (but try other dimensions anyway, it may look fine).
*Maximum size of 100KB.*

DOMAIN

You can make the button work only on a certain domain.
Matches any url by default.
Uses *regular expressions* (test it here if you want).
For example, this will match any *http/https* site: **^(http|https)://***

NOTIFICATIONS

Shows desktop notification when domain doesn't match. When active it's possible to change the title and text for the notification.

CHANGE LOG

## [1.0.1] 2016-02-26 - BUGFIX: "New tab" mode was not working, fixed.

[1.0.0] 2014-09-10

  • Initial release.
  • Displays button on toolbar.
  • Custom URL.
  • 5 modes to open URL: Current tab, new tab, new window, popup window, popup on button.
  • Custom icon.
  • Restrict to domain using regex.
  • Notifications when domain doesn't match. Customizable.

LEGAL STUFF

**Custom Icon** by **Rubén Martínez** is licensed as GPLv3.
Default icon made by Stephen Hutchings from www.flaticon.com is licensed under CC BY 3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.