Spanish Version here
- You can set the accounts where then it's going to get the advertising to monitor.
- You can set the Backend API Url where it's going to send the info.
- You can build to Chrome, Mozilla and Opera browsers.
- More features here
- Clone the repository
git clone https://github.com/Cambalab/adv-detector-plugin.git
- Run
npm install
- Run
npm run build
- For Chrome and Opera browsers
- Chrome: run
npm run chrome-build
- Opera:, run
npm run opera-build
- Chrome: run
- For Mozilla Firefox browser
- Run
npm run firefox-build
- Run
In the directory adv-detector-plugin/build/
will be create a new folder for each browser with the builded version.
- For load the extension in Chrome and Opera browsers, open it and navigate to
chrome://extensions
then choose "Developer Mode". Do click on "Load unpacked extension" and from the file system loadadv-detector-plugin/build/chrome
oradv-detector-plugin/build/opera
- For load the extension in Firefox browser, open it and navigate to
about:debugging
then choose "Load Temporary Add-on" and from the file system loadadv-detector-plugin/build/firefox
- Run
npm run chrome-dist
,npm run firefox-dist
ornpm run opera-dist
and will be create a zipped file inadv-detector-plugin/dist
for the browser that has been choosed, ready to upload to the AppStore.
- In the file
adv-detector-plugin/src/config.js
is an array with the accounts that going to monitor.
"accounts": [
{
"name": "Account Name", // for example: Facebook
"page_id": "Page id", // for example: 185150934832623
"page_name": "Url page" // for example: https://www.facebook.com/enespanol/
}
],
- For configure the location, add the options in the array locations
"locations": [
"Select an option",
"City one",
"City two",
"City three",
"City four",
"City five",
"City six",
"City seven",
"City eight",
"City nine",
"City ten"
],
- Backend API Url, where it will be send the information
"adUri": "API Backend URL", // Backend url
- To set the HTML selectors with that Facebook define the Sponsored posts (advertising)
"fbAds": {
"mainContainerQuerySelector": "[id^='topnews_main_stream_'",
"profileIdContainerQuerySelector": "a[title='Perfil']",
"targetAdWord": "Sponsored",
"postQuerySelector": "hyperfeed_story_id_",
"postSubtitleQuerySelector": "[id^='fe_edsubtitle']",
"postIdQuerySelector": "[name=ft_ent_identifier]"
}