This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private float ExtractFloatValue(string webPageCode) | |
| { | |
| string rawStock = Regex.Match(webPageCode, | |
| "currentPrice\":{\"raw\":(.+?),", | |
| RegexOptions.Singleline).Groups[1].Value; | |
| float stock = 0.0f; | |
| float.TryParse(rawStock, | |
| NumberStyles.Number, | |
| CultureInfo.CreateSpecificCulture("en-US"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void UpdateLabelWithColor(float stock) | |
| { | |
| if (stock > lastStock && lastStock != 0.0) | |
| { | |
| lblStock.ForeColor = Color.Green; | |
| } | |
| else if (stock < lastStock && lastStock != 0.0) | |
| { | |
| lblStock.ForeColor = Color.Red; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Drawing; | |
| using System.Globalization; | |
| using System.Net; | |
| using System.Text.RegularExpressions; | |
| using System.Windows.Forms; | |
| namespace AlticeStockChecker | |
| { | |
| public partial class Form1 : Form | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "manifest_version": 2, | |
| "name": "Tracking Trackers", | |
| "description": "Une extension qui liste les trackers d'une page web", | |
| "version": "0.1", | |
| "icons": { | |
| "16": "ico/radar-16.png", | |
| "24": "ico/radar-24.png", | |
| "32": "ico/radar-32.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "manifest_version": 2, | |
| "name": "Tracking Trackers", | |
| "description": "Une extension qui liste les trackers d'une page web", | |
| "version": "0.1", | |
| "icons": { | |
| "16": "ico/radar-16.png", | |
| "24": "ico/radar-24.png", | |
| "32": "ico/radar-32.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.browserAction.setBadgeText({text:"42"}); | |
| chrome.browserAction.setBadgeBackgroundColor({color:"black"}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "manifest_version": 2, | |
| "name": "Tracking Trackers", | |
| "description": "Une extension qui liste les trackers d'une page web", | |
| "version": "0.1", | |
| "icons": { | |
| "16": "ico/radar-16.png", | |
| "24": "ico/radar-24.png", | |
| "32": "ico/radar-32.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.browserAction.setBadgeBackgroundColor({color:"black"}); | |
| chrome.webRequest.onCompleted.addListener(function(thisRequest) | |
| { | |
| console.log(thisRequest); | |
| },{urls: ["<all_urls>"]}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.browserAction.setBadgeBackgroundColor({color:"black"}); | |
| chrome.webRequest.onCompleted.addListener(function(thisRequest) | |
| { | |
| if (thisRequest.initiator) | |
| { | |
| var initHost = new URL(thisRequest.initiator).host; | |
| var urlHost = new URL(thisRequest.url).host; | |
| if (initHost != urlHost) console.log(thisRequest); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.browserAction.setBadgeBackgroundColor({color:"black"}); | |
| var counter = 0; | |
| chrome.webRequest.onCompleted.addListener(function(thisRequest) | |
| { | |
| if (thisRequest.initiator) | |
| { | |
| var initHost = new URL(thisRequest.initiator).host; | |
| var urlHost = new URL(thisRequest.url).host; |