Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lejenome committed Feb 18, 2019
1 parent 033b6c5 commit c1b12ee
Show file tree
Hide file tree
Showing 18 changed files with 7,395 additions and 2,977 deletions.
39 changes: 23 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
module.exports = {
"extends" : "google",
"env" : {
"browser" : true,
"es6" : true,
"extends": "google",
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"globals" : {
"require" : false,
"define" : false,
"$" : false,
"XMLHttpRequest" : false
"globals": {
"require": false,
"define": false,
"$": false,
"XMLHttpRequest": false
},
"parserOptions" : {
"ecmaVersion" : 2017,
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
},
"plugins" : [
"plugins": [
"html",
"json",
],
"rules" : {
"strict" : [ 2, "global" ],
"semi" : [ 2, "always" ],
"rules": {
"strict": [2, "global"],
"semi": [2, "always"],
"quotes": ["off", "double"],
"max-len": [1, 120],
"switch-colon-spacing": ["off", {"after": true, "before": false}],
"switch-colon-spacing": ["off", {
"after": true,
"before": false
}],
"require-jsdoc": "off",
"indent": "off",
"no-unused-vars": "off",
"prefer-promise-reject-errors": "off",
"prefer-const": "off",
},
};
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ npm install # or: yarn
To build the addon for Firefox:

```shell
gulp ext:build:firefox
gulp extBuildFirefox
```

To build the addon for Google Chrome:

```shell
gulp ext:build:chrome
gulp extBuildChrome
```

## Documentation
Expand All @@ -67,7 +67,7 @@ You can also generate the documentation from the source code under `docs/api`
folder with this command:

```shell
gulp doc:js
gulp docs
```

## Credit
Expand Down
7 changes: 5 additions & 2 deletions content/Lego.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ class Lego extends Module {
let url = "";

if (!data.NetStoragePath) {
url = BASE_URL + data.ItemId.substr(0, 2) + "/" + data.ItemId.substr(2, 2) + "/" + [data.ItemId, data.VideoId, data.Locale, data.VideoVersion].join("_");
url = BASE_URL + data.ItemId.substr(0, 2) + "/" + data.ItemId.substr(2, 2) + "/" + [data.ItemId, data.VideoId,
data.Locale, data.VideoVersion,
].join("_");
} else {
url = BASE_URL + data.NetStoragePath + "/" + [data.ItemId, data.VideoId, data.Locale, data.VideoVersion].join("_");
url = BASE_URL + data.NetStoragePath + "/" + [data.ItemId, data.VideoId, data.Locale, data.VideoVersion].join(
"_");
}

let container = document.querySelector("div.video-wrapper");
Expand Down
1 change: 0 additions & 1 deletion content/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const LANGS = [
"tu", "zh",
];


/**
* Options handling class allowing getting and settings extension global and
* module special options and provides options depended helpers functions.
Expand Down
16 changes: 11 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
<h1 class="display-4">HTML5 Video Every Where</h1>
<p class="lead">Higher performance and stable video watching experience on the web.</p>
<hr class="my-4" />
<p>Some streaming sites video players suck. This add-on will replace them with browser built-in video player for higher performance and more stable experience. Currently, it supports YouTube, Vimeo, Dailymotion, Break, Metacafe, Lego and even more sites
<p>Some streaming sites video players suck. This add-on will replace them with browser built-in video player for
higher performance and more stable experience. Currently, it supports YouTube, Vimeo, Dailymotion, Break,
Metacafe, Lego and even more sites
are coming.</p>
<!--
<p><b>Note:</b> Some legacy sites force using Flash player, you will need to install no-flash add-on to support them.</p>
Expand All @@ -114,8 +116,10 @@ <h1 class="display-4">HTML5 Video Every Where</h1>
<p>Developed by <a href="https://lejenome.github.io" rel="author">Moez Bouhlel</a> co-founder of <a href="https://tik.tn">Tik</a>.</p>
<div class="row mt-4">
<div class="mx-auto">
<a class="d-block" rel="alternative" href="https://addons.mozilla.org/en-US/firefox/addon/html5-video-everywhere/"><img src="./amo-button.png" /></a>
<a class="d-block" style="text-align:center" rel="alternative" href="https://github.com/lejenome/html5-video-everywhere/">Get the source code</a>
<a class="d-block" rel="alternative" href="https://addons.mozilla.org/en-US/firefox/addon/html5-video-everywhere/"><img
src="./amo-button.png" /></a>
<a class="d-block" style="text-align:center" rel="alternative" href="https://github.com/lejenome/html5-video-everywhere/">Get
the source code</a>
</div>
</div>

Expand Down Expand Up @@ -143,8 +147,10 @@ <h3 class="mb-3">Contribute</h3>
<ul class="list-unstyled">
<!--<li><i class="fa fa-globe"></i> Add new website support</li>-->
<li><i class="fa fa-code"></i> <a href="api/">API documentation</a></li>
<li><i class="fa fa-github"></i> <a href="https://github.com/lejenome/html5-video-everywhere/issues/">Fix an issue</a></li>
<li><i class="fa fa-globe"></i> <a href="https://h5vew.tik.tn/api/tutorial-h5vew-adding-new-website-support.html">Support new website</a></li>
<li><i class="fa fa-github"></i> <a href="https://github.com/lejenome/html5-video-everywhere/issues/">Fix an
issue</a></li>
<li><i class="fa fa-globe"></i> <a href="https://h5vew.tik.tn/api/tutorial-h5vew-adding-new-website-support.html">Support
new website</a></li>
<!--<li><i class="fa fa-language"></i> Translate to your language</li>-->
</ul>
</div>
Expand Down
Loading

0 comments on commit c1b12ee

Please sign in to comment.