
ConditionalRun ruma Ascoro
Soltojtob'enelSoltojtob'enel
Execute conditionally javascript depending on some conditions
You'll need Firefox to use this extension
Richintzij K'amal
Chapoj taq ruwäch

Chi rij re k'amal re'
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:
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:
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
Tapaja' ri awetamab'al
Taq ya'oj q'ijTetamäx ch'aqa' chik
This add-on needs to:
- Tok pa ri taq ruwi' okik'amaya'l
- Nok pa ri taq atzij pa ronojel ri ajk'amaya'l ruxaq
Ch'aqa' chik etamab'äl
- Ruwäch
- 0.0.4resigned1
- Nimilem
- 9.17 KB
- Ruk'isib'äl k'exoj
- לפני שנה (26 אפר׳ 2024)
- Taq Ruwäch Kiximon Ki'
- Ya'oj q'ij
- E'ichinan Ronojel ri taq Ch'ojib'äl
- Runatab'al Ruwäch
Titz'aqatisäx pa mol
Ch'aqa' chik taq k'amal richin Ascoro
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet