yarn install
yarn start
yarn build
yarn build
- Click the reload button next to the facet.ninja plugin and you are settled.
Run tests with yarn test
.
Semantic Versioning is utilized as means to versioning.
This is where the facet-extension reads values from. Here are some examples of how to CRUD it:
chrome.storage && chrome.storage.sync.get('facet-settings', function (obj) {
console.log('[local storage]:', obj);
});
chrome.storage && chrome.storage.sync.get('facet-settings', function (obj) {
console.log('[local storage]:', obj);
const aboutToSet = {
"facet-settings": {
...obj,
enabled: true
}
};
chrome.storage && chrome.storage.sync.set(aboutToSet, async function () {
console.log(`[STORAGE] updated`);
});
});
chrome.storage.sync.clear(function () {
var error = chrome.runtime.lastError;
if (error) {
console.error(error);
}
});
For trying out the plugin, you can try logging in with this account:
username: [email protected]
password: [email protected]
FACET_EXTENSION_PREVIEW_TAB_ID: The TabID of Preview tab; updated onClick and on tab close consequently - Used by `facet-mutation-observer.js`
FACET_EXTENSION_DISABLE_MO: Disables/enables the MO in an already integrated website - Used by the API's mutation observer script.
FACET_EXTENSION_ALREADY_INTEGRATED: Domain is already integrated with facet.run
FACET_EXTENSION_INJECTING_SCRIPT_TAG: script tag that ought to be injected