Components adizionâi par Firefox
  • Estensions
  • Temis
    • par Firefox
    • Dizionaris e pachets di lenghis
    • Altris sĂŽts
    • Components adizionâi par Android
Jentre
Anteprime di ConditionalRun

ConditionalRun di Ascoro

Execute conditionally javascript depending on some conditions

SperimentâlSperimentâl
0 (0 recensions)0 (0 recensions)
1 utent1 utent
Discjame Firefox e instale la estension
Discjame il file

Metadâts de estension

Schermadis
Top bar added by the conditionalRun add-on
Informazions su la estension
I have developed this Add-on to be able to add or customize some behavior in some websites. I usually used it to create browser notifications if something happens on the page, hide some annoying elements on some specific websites, ...
This extension is very simplistic on propose. This allows it to be just a couple dozens lines of code that you can review for your peace of mind :)

To configure the Add-on go the the preference page of the Add-on "about:addons" .
Scripts settings is a json representing the configuration of the plugin. For example:

{
"scripts": [
{
"name": "Add top bar in firefox website",
"url": "://www.mozilla.org",
"conditions": "Math.random()<0.5",
"run": "var div = document.createElement('div'); div.style = 'background-color: red;color: white;text-align: center;position: sticky;z-index: 99999;'; div.innerText = 'Add-on enabled :)'; document.body.prepend(div);"
}
]
}


This example configuration will run add in the https://www.mozilla.org website a top red bar saying "Add-on enabled :)" 50% of the time the page is refreshed.

Parameters explained:
  • name: is just the displayname of the rule. It will be printed on the console when the rule is enabled
  • url: (Optional) if specified the website url must include this string to enable the action
  • conditions: (Optional) javascript condition that should evaluate true (action enabled)/false (action not enabled)
  • run: script that will be run if the url and conditions are met
Valutât 0 di 0 recensôrs
Jentre par dâ un vôt a cheste estension
No son ancjemò valutazions

Valutazion in stelis salvade

5
0
4
0
3
0
2
0
1
0
Ancjemò nissune recension
Permès e dâtsPlui informazions

Permès obligatoris:

  • Acedi aes schedis dal navigadĂ´r
  • Acedi ai tiei dâts di ducj i sĂŽts web
Altris informazions
Version
0.0.4resigned1
Dimension
9,17 kB
Ultin inzornament
un an În urmă (26 apr. 2024)
Categoriis coreladis
  • Disvilup web
  • Schedis
Licence
Ducj i dirits riservâts
Cronologjie versions
  • ViĂ´t dutis lis versions
Zonte ae racuelte
Segnale chest component adizionâl
Va ae pagjine principâl dal sÎt Mozilla

Components adizionâi

  • Informazions
  • Blog dai components adizionâi di Firefox
  • Laboratori estensions
  • Centri di svilup
  • Politichis pal svilupadĂ´r
  • Blog de comunitât
  • Forum
  • Segnale un erĂ´r
  • Vuide pes recensions

NavigadĂ´rs

  • Desktop
  • Mobile
  • Enterprise

Prodots

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Riservatece
  • Cookies
  • Notis legâls

Gjavant dulà che al è indict in mÝt diviers, i contignÝts su chest sÎt a son distribuÎts cun licence Creative Commons Atribuzion CondivÎt te stesse maniere v3.0 o versions sucessivis.