Giter Site home page Giter Site logo

iui-project-chrome-ext's Introduction

YouLearn

Prerequisites

As YouLearn's backend server has no SSL certificate we have to tweak chrome in order for chrome to not block our requests. If we would release this project to the public we would sort this out, but for now it is fine.

Tweak chrome's settings to accept mixed content for YouTube

  1. Open Youtube
  2. Click on the lock in front of the URL

image

3. Click on "Site settings"

image

4. Under "Permissions" locate "Insecure content" and change to "Allow"

image

How to use / install YouLearn

In this section are two ways described to get YouLearn to run:

Use the release

Download and install this release: https://github.com/mrnexeon/iui-project-chrome-ext/releases/tag/v0.0.1 In order to install the extension drag the extension file into chrome under "Manage extensions"

Build it yourself

You need NodeJS v16 and NPM for the following steps.

  1. Clone this repository
  2. Navigate into the folder and run npm install
  3. Build the extension
  4. Buid the extension

Use npm run build to build a production version of the extension OR Use npm start to build for developement

The development build gets rebuilt after saving of a file and reloads the extension and sites in chrome

  1. Regardless of your building method (production or developement) the built extension is saved under dist/. To install the extension in chrome go to Three dots > More tools > Extensions or go to chrome://extensions/. Activate Developer mode in the top right corner. Then you can either drag the dist/ folder into chrome or click on Load unpacked in the top left corner and choose the dist/ directory.

Congratulations! You have installed YouLean in your chrome browser. We recommend that you pin it for easy access.

iui-project-chrome-ext's People

Contributors

mrnexeon avatar thierschi avatar

Watchers

 avatar  avatar

iui-project-chrome-ext's Issues

Add API to fitletering

Please integrate the API so that filtering now filters videos based on our ML model.

Here are the lines where you have to integrate it:

// TODO
// API Logic goes HERE
// REST API requests examples:
// filterDistractfulVideos(['test1', 'test2']).then(distractful_ids => console.log(distractful_ids)).catch(err => console.error(err))
// reportFeedback('test1', true).then(success => console.log(success)).catch(err => console.error(err))

Basically all you have to do is filter the recommendedVideos like so (After sending all of them to the backend of course):

        const videosToFilter = recommendedVideos.filter(
            (v) => v.id.length > v.id.replace(/(a|b|1|2)/gm, '').length,
        );

Change Top Banner

Top Banner has to be changed to something else - in the current configuration it is buggy as hell

Add API Feedback request to options page

Please add the request to submit feedback to the backend here:

const onMarkDistractingClick = async (id: string) => {
// TODO put feedback API calls here
await new Promise((resolve) => setTimeout(resolve, 5000));
alert(id);
};

Remove these lines:

await new Promise((resolve) => setTimeout(resolve, 5000));
alert(id);

And make sure you await your request so that the button is loading until the request finishes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.