Componenti aggiuntivi per Firefox
  • Estensioni
  • Temi
    • per Firefox
    • Dizionari e language pack
    • Altri siti
    • Componenti aggiuntivi per Android
Accedi
Anteprima di ConditionalRun

ConditionalRun di Ascoro

Execute conditionally javascript depending on some conditions

SperimentaleSperimentale
0 (0 recensioni)0 (0 recensioni)
1 utente1 utente
Scarica Firefox e installa l’estensione
Scarica file

Metadati estensione

Screenshot
Top bar added by the conditionalRun add-on
Informazioni sull’estensione
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
Voto 0 da 0 revisori
Effettua l’accesso per dare un voto a questa estensione
Non ci sono ancora valutazioni

Valutazione in stelle salvata

5
0
4
0
3
0
2
0
1
0
Ancora nessuna recensione
Permessi e datiUlteriori informazioni

Permessi obbligatori:

  • Accedere alle schede
  • Accedere ai dati di tutti i siti web
Ulteriori informazioni
Versione
0.0.4resigned1
Dimensione
9,17 kB
Ultimo aggiornamento
un anno fa (26 apr 2024)
Categorie correlate
  • Sviluppo web
  • Schede
Licenza
Tutti i diritti riservati
Cronologia versioni
  • Visualizza tutte le versioni
Aggiungi alla raccolta
Segnala questo componente aggiuntivo
Vai alla pagina principale del sito Mozilla

Componenti aggiuntivi

  • Informazioni
  • Blog sui componenti aggiuntivi per Firefox
  • Laboratorio estensioni
  • Centro di sviluppo
  • Criteri per sviluppatori
  • Blog della comunità
  • Forum
  • Segnala malfunzionamento
  • Guida per le recensioni

Browser

  • Desktop
  • Mobile
  • Enterprise

Prodotti

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Informativa sulla privacy
  • Cookie
  • Note legali

Eccetto dove diversamente indicato, i contenuti su questo sito sono distribuiti con licenza Creative Commons Attribuzione Condividi allo stesso modo 3.0 o versioni successive.