• Stars
    star
    114
  • Rank 297,733 (Top 7 %)
  • Language
    JavaScript
  • Created over 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚫 adblock for in-video sponsorships

Sponsorship Remover Prototype

This is the codebase for sponsorship remover/blocker.

Usage

Training

python src/python/train.py

Prediction

Python

python src/python/predict.py

Javascript

node src/javascript/predict.js

To try the extension, go to chrome://extensions/ and load the unpacked directory ./src/javascript/extension/chrome. You can see how it works here.

Directory Guide

root/
├── dataset/
│   └── data.csv : CSV file of sponsored (0) and non-sponsored (1) sequences
├── output/
│   ├── model.h5 : Keras model
│   ├── js/
│   │   └── ...  : Tensorflow.js model
│   └── misc
│       └── word_index.json : Dictionary mapping unique words to token
└── src/
    ├── python/
    │   ├── predict.py : Runs a prediction on a trained model stored in output/
    │   ├── train.py : Trains a model and saves in output/
    │   ├── sponsorship_remover/
    │   │   └── ... : Internal functions used by predict.py & train.py
    │   └── transcript_server
    │       └── ... : Simple flask web server that wraps YouTubeTranscriptApi
    └── javascript/
        ├── predict.py : Javascript implementation of predict.py using tf.js
        └── extension/
            └── chrome/
                ├── manifest.json : Metadata for chrome extension
                ├── popup.html : HTML template (with Vue.js) for extension popout
                ├── js
                │   └── content.js : Deployed within browser, contains code to handle predictions
                │   └── popup.js : Logic for popup.html
                │   └── libs
                │       └── ... : Deployed dependencies
                └── style
                    └── ... : Misc style files including CSS for popup.html

More Repositories

1

ace-attorney-reddit-bot

👨🏼‍⚖️ reddit bot that turns comment chains into ace attorney scenes
Python
772
star
2

PSone.css

🎮 PS1 style CSS Framework, inspired by NES.css
HTML
597
star
3

pyAudioClassification

🎶 dead simple audio classification
Python
130
star
4

sneaker-generator

👟 DCGAN that generates shoes
Python
83
star
5

suspicious-github-themer

expect some strange glances if you use this at work
JavaScript
58
star
6

totally_humans

rnn trained on r/totallynotrobots 🤖
Python
24
star
7

emoji-pasta-rnn

rnn trained on r/emojipasta
Python
12
star
8

findanewyoutuber

🕵️‍♀️ personality based search engine to find youtubers
Vue
11
star
9

easy_nano

🥦 send and receive nano with 2 simple functions
Python
11
star
10

death-grips-lyrics-generator

rnn that generates ride lyrics
Python
5
star
11

lstm-word-level-rnn.js

Tensorflow.js implementation of word level LSTM RNN
JavaScript
5
star
12

sponsorship_remover_private

JavaScript
4
star
13

smash-battle-lobby

HTML
4
star
14

sponsorship_remover_temp_model

3
star
15

vue-nano

QR code nano reader component for Vue.js
JavaScript
2
star
16

4d-predict-bug-repo

Python
1
star
17

98mprice.github.io

HTML
1
star
18

tagshi

Non-traditional Search Engine
Vue
1
star
19

fantano-sentiment-analysis

A RNN that does sentiment analysis on a dataset of ~290 reviews from Anthony Fantano, with their respective scores as the target.
Python
1
star
20

pokemon-generator

generates pokemon by slicing existing sprites together
JavaScript
1
star
21

earcut-3d

Go library for 3D earcut triangulation
Go
1
star
22

seinfeld-rnn

word level rnn that generates seinfeld scripts
Python
1
star
23

vue-cascading-signup

Simple, clean fullscreen cascading Vue.js component. Designed for sign up forms.
Vue
1
star