Giter Site home page Giter Site logo

tinywebex / randomtips Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 168 KB

Shows a random non obstrusive tip to the user under some constraints.

Home Page: https://tinywebex.github.io/RandomTips/

License: MIT License

JavaScript 98.08% CSS 0.38% HTML 1.54%
browser-addon browser-extension firefox-addon firefox-extension web-extension web-extensions

randomtips's People

Contributors

rugk avatar silltho avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

daaad1

randomtips's Issues

Allow link to be changed per browser/interactively

We'd want a callback for the actions/URL, so we can adjust the URL dynamically.
The use case is to differentiate browsers.

But to make it more useful in general, I think it would be useful to have a callback given there, which returns the URL.
Also let's make sure it's "async", as that is often needed.

for rugk/unicodify#23 (comment)

Support using the notifications API

Provide the option of using the notifications API to display notifications. This is needed for extensions that do not have a popup (like Unicodify) or that need to display notifications when both the popup and options page are not open. This could also be used to show errors to the user instead of silently failing.

Additionally, you could provide the option of using the future notification bar API in Thunderbird (see Bug 1674002).

Add "maximumActionButton" to not show tip to users that clicked on button

So you can limit the tip not to be shown when the user already clicked on a "show more" button or similar. Like maximumDismiss it can be null by default, but a common use case is likely to set it to 1.

How to do?

  • Problem: We need to track the clicks on the button, but also want to keep "link-only" buttons. (especially as they show the link aim in a good way.)
  • Solution: IMHO, the MessageHandler needs another function in the actionButton object, that additionally binds to the button, so it does not intercept/overwrite the click, but can actually count it. That may then be set by RandomTips manually…

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.