JSFiddle - React, Tailwind, and code Playground
by sfoster
JavaScript
// Today’s programming quiz will be to implement a simple adblocker. You’ll need to // implement two JavaScript functions:
/* a function that is given data specifying what sites and paths to block. */
function blocker_init() {
console.log("blocker_init called");
}
/* a function that is given a URL, and returns if it should be blocked or not. */
function blocker_test_url() {
}
function mozilla_init() {
blocker_init();
}
mozilla_init();