Feature/#35 build tools #36

Merged
Serraniel merged 41 commits from feature/#35-build-tools into develop 2020-09-06 21:20:03 +02:00
23 changed files with 12021 additions and 99 deletions

3
!build.cmd Normal file
View file

@ -0,0 +1,3 @@
@echo off
call npm run dist:prod
pause

27
.babelrc Normal file
View file

@ -0,0 +1,27 @@
{
"presets": [
[
"@babel/env",
{
"targets": {
"esmodules": true
},
"modules": "umd"
}
]
],
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": true
}
]
]
}

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
node_modules
/.tmp
/dist

View file

@ -1,2 +1,36 @@
# EnhancedAniwatch
Enhancment extension for https://aniwatch.me/
# Aniwatch Plus
*Aniwatch Plus* is an unofficial extension which provides several UI improvments for https://aniwatch.me.
## Features
* adds quick search to website
* cleaner style for lists
* better presentation of anime requests
## Browser Support
We currently support the following browsers in current versions:
* Google Chrome
* Mozilla Firefox
* Opera
* Microsoft Edge
### Installation
This extension isn´t available in browser stores yet. Please download from [releases](https://github.com/Serraniel/AniwatchPlus/releases) for your browser and check how to manually install an extension into your browser. If you want to install the extension in Microsoft Edge, please use the Chrome release version.
## Development
### Tools
This project requires you to install [NPM](https://nodejs.org/en/download/) and [gulp](https://www.npmjs.com/package/gulp).
### Build
Serraniel commented 2020-08-29 17:30:19 +02:00 (Migrated from github.com)
Review

Maybe would be nice if you could try to get the scripts from readme.md running with little docs I wrote @kaffem .

Maybe would be nice if you could try to get the scripts from readme.md running with little docs I wrote @kaffem .
kaffem commented 2020-09-01 16:00:13 +02:00 (Migrated from github.com)
Review

The scripts appear to be working correctly.

The scripts appear to be working correctly.
```sh
# mandatory
npm install -d
# build release version into './dist'
npm run dist:prod
# build dev version into './div' and start the watcher
npm run watch
# clean build and dist directories
npm run clean
```

282
gulpfile.js Normal file
View file

@ -0,0 +1,282 @@
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const gulp = require('gulp');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const cssnano = require('cssnano')
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const gulpLoadPlugins = require('gulp-load-plugins')
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const uglify = require('gulp-uglify-es').default;
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const del = require('del');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const browserify = require('browserify');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const babelify = require('babelify');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const source = require('vinyl-source-stream');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const buffer = require('vinyl-buffer');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const merge = require('merge-stream');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const fs = require('fs');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const $ = gulpLoadPlugins()
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.sass.compiler = require('sass');
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Base consts
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Project sources
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const src = {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: 'src',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
manifests: 'src/manifests',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'src/stylesheets',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
scripts: 'src/javascript',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
images: 'src/images',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Build path
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const tmp = {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: '.tmp',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
manifests: '.tmp/manifests',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: '.tmp/stylesheets',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
scripts: '.tmp/javascript',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
images: '.tmp/images',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Dist path
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const dist = {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: 'dist',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
chrome: {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: 'dist/chrome',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'dist/chrome/stylesheets',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
scripts: 'dist/chrome/javascript',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
images: 'dist/chrome/images',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
},
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
firefox: {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: 'dist/firefox',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'dist/firefox/stylesheets',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
scripts: 'dist/firefox/javascript',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
images: 'dist/firefox/images',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
},
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
opera: {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
root: 'dist/opera',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'dist/opera/stylesheets',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
scripts: 'dist/opera/javascript',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
images: 'dist/opera/images',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
},
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
zip: 'dist/zips',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Build mode
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const isProd = process.env.NODE_ENV === 'production';
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const isDev = !isProd;
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Build tasks
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('styles', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return gulp.src(`${src.styles}/*.scss`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.plumber())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// sourcemap initialization
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.if(isDev, $.sourcemaps.init()))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// sass compilation
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.sass.sync({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
outputStyle: 'expanded',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
precision: 7,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
includePaths: ['.'],
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}).on('error', $.sass.logError))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// autoprefix
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.autoprefixer())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// out stream size
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.styles))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.rename({ suffix: '.min' }))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// minimize and optimize
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.if('*.css', $.postcss([
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
cssnano({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
safe: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
autoprefixer: false,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
zindex: false,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
reduceIdents: {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
keyframes: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
},
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
])))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// out stream size
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// write sourcemaps
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.if(isDev, $.sourcemaps.write()))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.styles))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('scripts', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
let b = browserify({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
entries: `${src.scripts}/index.js`,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
debug: isDev
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
});
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return b.transform('babelify').bundle()
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.plumber())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(source('app.js'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(buffer())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.if(isDev, $.sourcemaps.init({ loadMaps: true })))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(uglify({ compress: { drop_console: isProd, drop_debugger: isProd } }))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.rename({ suffix: '.min' }))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.if(isDev, $.sourcemaps.write()))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(`${tmp.scripts}`))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('images', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return gulp.src(`${src.images}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.plumber())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.imagemin([
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.imagemin.gifsicle({ interlaced: true }),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.imagemin.mozjpeg({ progressive: true }),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.imagemin.optipng(),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.imagemin.svgo({ plugins: [{ cleanupIDs: false }] })
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
]))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.images))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('manifests', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
const templateFile = `${src.manifests}/manifest.template.json`;
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
let template = JSON.parse(fs.readFileSync(templateFile))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return gulp.src(`${src.manifests}/**/!(*.template).json`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.plumber())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$name', template.name))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$shortName', template.short_name))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$version', template.version))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$semanticVersion', template.version_name))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$description', template.description))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$author', template.author))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$developer', JSON.stringify(template.developer)))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.replace('$homepageURL', template.homepage_url))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.manifests))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Watchers
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('watch', (done) => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.watch(`${src.styles}/**/*.scss`, gulp.series('clean:build', 'styles', 'dist:copy', 'dist:zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.watch(`${src.scripts}/**/*.js`, gulp.series('clean:build', 'scripts', 'dist:copy', 'dist:zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.watch(`${src.images}/**/*`, gulp.series('clean:build', 'images', 'dist:copy', 'dist:zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.watch(`${src.manifests}/**/*.*`, gulp.series('clean:build', 'manifests', 'dist:copy', 'dist:zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
done();
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Clean
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('clean:build', del.bind(null, [tmp.root]))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('clean:dist', del.bind(null, [dist.root], { force: true })) // Das Force brauchen wir, da das Assets Verzeichnis außerhalb des Working Directories ist.
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('clean', gulp.series('clean:build', 'clean:dist'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
BUILD CLEAN ALL
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('build', gulp.series('manifests', 'images', 'scripts', 'styles'));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('build:clean', gulp.series('clean:build', 'manifests', 'images', 'scripts', 'styles'));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
DIST CLEAN ALL
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
============================================================================ */
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist:chrome', (done) => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return merge(
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy images
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.images}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.chrome.images)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy scripts
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.scripts}/**/*.{min.js,min.js.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.chrome.scripts)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy styles
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.styles}/*.{min.css,min.css.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.chrome.styles)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.manifests}/chrome*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.rename('manifest.json'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.chrome.root))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
);
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist:firefox', (done) => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return merge(
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy images
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.images}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.firefox.images)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy scripts
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.scripts}/**/*.{min.js,min.js.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.firefox.scripts)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy styles
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.styles}/*.{min.css,min.css.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.firefox.styles)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.manifests}/firefox*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.rename('manifest.json'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.firefox.root))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
);
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist:opera', (done) => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return merge(
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy images
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.images}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.opera.images)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy scripts
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.scripts}/**/*.{min.js,min.js.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.opera.scripts)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// copy styles
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.styles}/*.{min.css,min.css.gz}`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.opera.styles)),
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${tmp.manifests}/opera*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.rename('manifest.json'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.opera.root))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
);
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist:copy', gulp.series('dist:chrome', 'dist:firefox', 'dist:opera'));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist:zip', (done) => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${dist.chrome.root}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.zip('chrome.zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.root));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${dist.firefox.root}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.zip('firefox.zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.root));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.src(`${dist.opera.root}/**/*`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.zip('opera.zip'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(dist.root));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
done();
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip'));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```

View file

@ -1,32 +0,0 @@
{
"name": "Enhanced Aniwatch",
"short_name": "Enhanced Ani",
"version": "0.1.0.0",
"description": "Enhanced Aniwatch is a slim extension which provides several UI improvments for https://aniwatch.me.",
"manifest_version": 2,
"author": "Serraniel",
"homepage_url": "https://github.com/Serraniel/EnhancedAniwatch",
"content_scripts": [{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"utils/colors.js",
"utils/helpers.js",
"utils/aniwatchCore.js"
],
"run_at": "document_start"
},
{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"enhancements/quickSearch.js",
"enhancements/animeRequests.js",
"enhancements/lists.js"
],
"run_at": "document_end"
}
]
}

11386
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

71
package.json Normal file
View file

@ -0,0 +1,71 @@
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
{
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"name": "aniwatch-plus",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"version": "0.1.0-beta.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"description": "Aniwatch Plus is a browser extension for https://aniwatch.me/",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"main": "index.js",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"scripts": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"test": "echo \"Error: no test specified\" && exit 1",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"clean": "gulp clean",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"build": "gulp build",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"build:prod": "cross-env NODE_ENV=production gulp build",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"dist": "gulp dist",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"dist:prod": "cross-env NODE_ENV=production gulp dist",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"watch": "gulp dist && gulp watch"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
},
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"repository": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"type": "git",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"url": "git+https://github.com/Serraniel/AniwatchPlus.git"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
},
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"author": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"name": "Serraniel",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"email": "mail@serraniel.dev",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"url": "https://serraniel.dev"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
},
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"contributors": [
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
{
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"name": "Kaffem"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
}
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
],
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"license": "MPL-2.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"bugs": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"url": "https://github.com/Serraniel/AniwatchPlus/issues",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"email": "mail@serraniel.dev"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
},
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"homepage": "https://github.com/Serraniel/AniwatchPlus#readme",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"dependencies": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"regenerator-runtime": "^0.13.7"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
},
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"devDependencies": {
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/compat-data": "^7.11.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/core": "^7.11.4",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/helper-module-imports": "^7.10.4",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/plugin-proposal-class-properties": "^7.10.4",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/plugin-proposal-private-methods": "^7.10.4",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/preset-env": "^7.11.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"@babel/register": "^7.10.5",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"babelify": "^10.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"browserify": "^16.5.2",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"cross-env": "^7.0.2",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"cssnano": "^4.1.10",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"del": "^5.1.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp": "^4.0.2",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-autoprefixer": "^7.0.1",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-babel": "^8.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-if": "^3.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-imagemin": "^7.1.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-load-plugins": "^2.0.4",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-plumber": "^1.2.1",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-postcss": "^8.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-rename": "^2.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-replace": "^1.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-sass": "^4.1.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-size": "^3.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-sourcemaps": "^2.6.5",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-uglify-es": "^2.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"gulp-zip": "^5.0.2",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"merge-stream": "^2.0.0",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"sass": "^1.26.10",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"vinyl-buffer": "^1.0.1",
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
"vinyl-source-stream": "^2.0.0"
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
}
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.
}
Serraniel commented 2020-08-29 17:31:34 +02:00 (Migrated from github.com)
Review

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

Also feel free to add yourself here any time you like, see https://docs.npmjs.com/files/package.json#people-fields-author-contributors.

BIN
src/images/icon/icon_48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

BIN
src/images/icon/icon_96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -1,11 +1,17 @@
registerScript(node => {
import * as core from '../utils/aniwatchCore';
import * as color from '../utils/colors';
import * as helper from '../utils/helpers';
export function init() {
core.registerScript(node => {
// run the scripts
if (isHtmlElement(node)) {
if (helper.isHtmlElement(node)) {
changeFollowedStarColor(node);
changeBorderColorOwnRequests(node);
removeUnknownUsers(node);
}
}, "/requests");
}
function changeFollowedStarColor(node) {
const starIcon = 'star';
@ -14,7 +20,7 @@ function changeFollowedStarColor(node) {
let followedItems = Array.from(node.querySelectorAll('i')).filter(i => i.innerText.trim() === starIcon);
// change color
followedItems.forEach(item => item.style.color = aniBlue);
followedItems.forEach(item => item.style.color = color.aniBlue);
}
function changeBorderColorOwnRequests(node) {
@ -25,7 +31,7 @@ function changeBorderColorOwnRequests(node) {
// highlight left border for own request
if (profileLink.length > 0) {
item.style.borderColor = aniBlue
item.style.borderColor = color.aniBlue
}
}

View file

@ -1,9 +1,14 @@
registerScript(node => {
import * as core from '../utils/aniwatchCore';
import * as helper from '../utils/helpers';
export function init() {
core.registerScript(node => {
// run the scripts
if (isHtmlElement(node)) {
if (helper.isHtmlElement(node)) {
addListHorizontalSeparators(node)
}
}, ".*");
}
function addListHorizontalSeparators(node) {
const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case

View file

@ -1,9 +1,14 @@
import * as core from '../utils/aniwatchCore';
import * as helper from '../utils/helpers';
const quickSearchID = 'ea-quickSearch';
const quickSearchLink = 'ea-quickSearchLink';
runAfterLoad(() => {
export function init() {
core.runAfterLoad(() => {
initSearch();
}, ".*");
}
function initSearch() {
let entry = document.createElement('li');
@ -58,7 +63,7 @@ function handleQuickSearch(event) {
}
function handleSearchForShiftF(event) {
if (isShiftPressed) {
if (helper.isShiftPressed) {
if (event.key === 'F') {
event.preventDefault();
document.getElementById(quickSearchID).focus();

21
src/javascript/index.js Normal file
View file

@ -0,0 +1,21 @@
import regeneratorRuntime from "regenerator-runtime";
// core
import { initCore } from './utils/aniwatchCore';
// helper
import { initHelpers } from './utils/helpers';
// enhancements
import { init as animeRequests } from './enhancements/animeRequests';
import { init as lists } from './enhancements/lists';
import { init as quickSearch } from './enhancements/quickSearch';
// core
initCore();
//helper
initHelpers();
// enhancements
animeRequests();
lists();
quickSearch();

View file

@ -1,18 +1,9 @@
import * as helper from './helpers';
let __scripts = [];
let __afterLoadScripts = [];
function registerScript(func, pattern = '.*') {
__scripts.push({ "function": func, "pattern": pattern });
}
function runScripts(node) {
__scripts.forEach(script => {
if (window.location.pathname.match(script.pattern)) {
script.function(node);
}
});
}
export function initCore() {
let observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
for (let i = 0; i < mutation.addedNodes.length; i++) {
@ -27,11 +18,26 @@ observer.observe(document.documentElement || document.body, {
attributes: true
});
helper.onReady(() => awaitPageLoaded());
}
export function registerScript(func, pattern = '.*') {
__scripts.push({ "function": func, "pattern": pattern });
}
export function runScripts(node) {
__scripts.forEach(script => {
if (window.location.pathname.match(script.pattern)) {
script.function(node);
}
});
}
function findPreloader() {
return document.getElementById('preloader');
}
function runAfterLoad(func, pattern = '.*') {
export function runAfterLoad(func, pattern = '.*') {
let preloader = findPreloader();
if (typeof preloader !== undefined && preloader.style.display !== "none") {
__afterLoadScripts.push({ "function": func, "pattern": pattern });
@ -40,8 +46,6 @@ function runAfterLoad(func, pattern = '.*') {
}
}
document.addEventListener("DOMContentLoaded", event => awaitPageLoaded(), false);
function awaitPageLoaded() {
let preLoader = findPreloader();

View file

@ -0,0 +1 @@
export const aniBlue = '#348fff';

View file

@ -0,0 +1,35 @@
export var isShiftPressed = false;
export var isCtrlPressed = false;
export function isHtmlElement(object) {
return object instanceof HTMLElement;
}
export function initHelpers() {
document.addEventListener('keydown', event => handleKeyDown(event));
document.addEventListener('keyup', event => handleKeyUp(event));
}
export function onReady(fn) {
if (document.readyState != 'loading') {
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
function handleKeyDown(event) {
handleKeyToggle(event, true);
}
function handleKeyUp(event) {
handleKeyToggle(event, false);
}
function handleKeyToggle(event, isPressed) {
if (event.key === 'Shift') {
isShiftPressed = isPressed;
} else if (event.key === 'Control') {
isCtrlPressed = isPressed;
}
}

View file

@ -0,0 +1,23 @@
{
"name": "$name",
"short_name": "$shortName",
"version": "$version",
"version_name": "$semanticVersion",
"description": "$description",
"manifest_version": 2,
"author": "$author",
"homepage_url": "$homepageURL",
"icons": {
"48": "images/icon/icon_48.png",
"96": "images/icon/icon_96.png"
},
"content_scripts": [{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"javascript/app.min.js"
],
"run_at": "document_end"
}]
}

View file

@ -0,0 +1,23 @@
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
{
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"name": "$name",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"short_name": "$shortName",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"version": "$version",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"description": "$description",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"manifest_version": 2,
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"author": "$author",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"developer": $developer,
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"homepage_url": "$homepageURL",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"icons": {
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"48": "images/icon/icon_48.png",
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"96": "images/icon/icon_96.png"
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
},
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"content_scripts": [{
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"matches": [
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"*://aniwatch.me/*"
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
],
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"js": [
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"javascript/app.min.js"
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
],
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
"run_at": "document_end"
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
}]
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.
}
kaffem commented 2020-09-01 16:00:54 +02:00 (Migrated from github.com)
Review

This needs to be an object for firefox, see devDocs/manifest.json/developer otherwise it's an invalid extension.

This needs to be an object for firefox, see [devDocs/manifest.json/developer](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/developer) otherwise it's an invalid extension.
Serraniel commented 2020-09-02 15:00:19 +02:00 (Migrated from github.com)
Review

Yeah you are correct. Somehow forgot to change this but I read it, too.

Yeah you are correct. Somehow forgot to change this but I read it, too.
Serraniel commented 2020-09-06 20:58:57 +02:00 (Migrated from github.com)
Review

This is fixed. Manifest validation on the webstores also is working now (regarding manifest.json syntax). I will open new issues for other validation problems I noticed.

This is fixed. Manifest validation on the webstores also is working now (regarding *manifest.json* syntax). I will open new issues for other validation problems I noticed.

View file

@ -0,0 +1,27 @@
{
"name": "Aniwatch Plus",
"short_name": "AW+",
"version": "0.1.0.0",
"version_name": "0.1 Beta",
"description": "Aniwatch Plus is an unofficial extension which provides several UI improvments for https://aniwatch.me.",
"manifest_version": 2,
"author": "Serraniel",
"developer": {
"name": "Serraniel",
"url": "https://github.com/Serraniel"
},
"homepage_url": "https://github.com/Serraniel/AniwatchPlus",
"icons": {
"48": "images/icon/icon_48.png",
"96": "images/icon/icon_96.png"
},
"content_scripts": [{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"javascript/app.min.js"
],
"run_at": "document_end"
}]
}

View file

@ -0,0 +1,24 @@
{
"name": "$name",
"short_name": "$shortName",
"version": "$version",
"version_name": "$semanticVersion",
"description": "$description",
"manifest_version": 2,
"author": "$author",
"developer": $developer,
"homepage_url": "$homepageURL",
"icons": {
"48": "images/icon/icon_48.png",
"96": "images/icon/icon_96.png"
},
"content_scripts": [{
"matches": [
"*://aniwatch.me/*"
],
"js": [
"javascript/app.min.js"
],
"run_at": "document_end"
}]
}

View file

@ -1 +0,0 @@
const aniBlue = '#348fff';

View file

@ -1,25 +0,0 @@
var isShiftPressed = false;
var isCtrlPressed = false;
function isHtmlElement(object) {
return object instanceof HTMLElement;
}
document.addEventListener('keydown', event => handleKeyDown(event));
document.addEventListener('keyup', event => handleKeyUp(event));
function handleKeyDown(event) {
handleKeyToggle(event, true);
}
function handleKeyUp(event) {
handleKeyToggle(event, false);
}
function handleKeyToggle(event, isPressed) {
if (event.key === 'Shift') {
isShiftPressed = isPressed;
} else if (event.key === 'Control') {
isCtrlPressed = isPressed;
}
}