Webbläsartillägg för Firefox
  • Tillägg
  • Teman
    • för Firefox
    • Ordlistor & språkpaket
    • Andra webbläsarplatser
    • Tillägg för Android
Logga in
Förhandsvisning av ConditionalRun

ConditionalRun av Ascoro

Execute conditionally javascript depending on some conditions

ExperimentellExperimentell
0 (0 reviews)0 (0 reviews)
1 användare1 användare
Du behöver Firefox för att kunna använda den här tillägget
Hämta Firefox och få tillägget
Hämta fil

Metadata för tillägg

Skärmbilder
Top bar added by the conditionalRun add-on
Om detta tillägg
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
Betyg 0 av 0 recensenter
Logga in för att betygsätta detta tillägg
Det finns inga betyg än

Stjärnklassificering sparad

5
0
4
0
3
0
2
0
1
0
Inga recensioner ännu
Behörigheter och dataLäs mer

Nödvändiga behörigheter:

  • Åtkomst till webbläsarens flikar
  • Åtkomst till dina data för alla webbplatser
Mer information
Version
0.0.4resigned1
Storlek
9,17 kB
Senast uppdaterad
för ett år sedan (26 apr 2024)
Relaterade kategorier
  • Webbutveckling
  • Flikar
Licens
Med ensamrätt
Versionshistorik
  • Se alla versioner
Lägg till i samling
Rapportera detta tillägg
Fler tillägg av Ascoro
  • Det finns inga betyg än

  • Det finns inga betyg än

  • Det finns inga betyg än

  • Det finns inga betyg än

  • Det finns inga betyg än

  • Det finns inga betyg än

Gå till Mozillas hemsida

Tillägg

  • Om
  • Firefox tilläggsblogg
  • Verkstad för tillägg
  • Utvecklarcenter
  • Utvecklarpolicyer
  • Community-blogg
  • Forum
  • Rapportera en bugg
  • Recensionsriktlinjer

Webbläsare

  • Desktop
  • Mobile
  • Enterprise

Produkter

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Sekretess
  • Kakor
  • Juridisk information

Om inget annat anges, är innehållet på denna webbplats licensierat under licensen Creative Commons Attribution Share-Alike License v3.0 eller senare version.