Module: urlblock/typechecker

typechecker checks the type of the website the user is currently on and categorizes it into one of these categories:
  • Entertainment
  • Music
  • Art
  • Vehicles
  • Sports
  • Science & Education
  • Pets & Animals
  • Social
  • News
  • Games
  • Technology
  • Books

Example

Just require the modules and call checktype. Rest of the processing is automated.

var typechecker = require('typechecker.js');
typechecker.checktype();

Members


<inner> data

Imports data for typechecker. See module:data/typechecker

Methods


<inner> checkType()

Checks the type of the website the user is currently on. It blocks the website if it was requested by the parent.