Git Product home page Git Product logo

hideimagespertab's Introduction

Temporary user documentation: Similar to https://addons.mozilla.org/en-US/firefox/addon/tab-permissions (which is for old Firefox only).

manifest "icons": { "48": "icons/bookmark-it.png", "96": "icons/[email protected]" },

EVENT SOURCE MODIFY
default tab default button tab button default setting tab setting CSS
tabs.onCreated - new yes yes yes yes
tabs.onCreated - restored (*) yes yes yes yes
tabs.onActivated -new yes yes yes yes yes
tabs.onActivated -restored (*) yes yes yes yes yes
tabs.tabUpdated yes yes
tab button yes yes yes
default button yes (**) yes (**) (**)
  • (*) Detect whether the tab was restored: when onActivated, read the tab setting. If it is not undefined (i.e. true or false), then re-apply, rather than applying the current default.
  • (**) Apply default setting, and store it in the tab setting, if tab.url==='about:blank' - a newly opened tab.

For maintainer: If you change the above, also update scripts/background.js -> function apply().

Some websites disable this add-on. addons.mozilla.org is one of them - hence, don't test hide/show buttons on (the content of) addons.mozilla.org.

Exporting button images

Beware some LibreOffice versions are sick. 1:5.3.1-0ubuntu2 on Ubuntu 17.04 exported to SVG well, but 1:5.4.1-0ubuntu1 on Unbuntu 17.10 didn't. 5.4.3.2 for Windows x64 exported well.

LibreOffice Draw > select all elements > menu File > Export > checkbox 'Selection' > as .svg.

TODO Are thees URLs unique per FF profile? See extension.getUrl(). moz-extension://39c46deb-10a1-40fc-b0d2-a4a603dc6981/popup.html

mozilla/web-ext#932

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.