Age | Commit message (Collapse) | Author |
|
Decrypting signatures is done by extracting a part of the proprietary
YouTube javascript and executing it. This is unsafe, and is
problematic for software freedom.
* viewtube.js (ytDecryptFunction): Remove function.
(ytVideos): Remove invocation of `ytDecryptFunction'.
|
|
* viewtube.js (createElement): Do not assign to innerHTML. Mozilla
considers this unsafe.
|
|
Removing #placeholder-player and #watch7-sidebar-ads disrupts the
layout of other elements.
* viewtube.js (removeElements): Remove function.
Do not remove #placeholder-player and #watch7-sidebar-ads.
|
|
* viewtube.js: Use assignment expressions in IF conditions, instead of
putting them as separate statements.
OR match result with [] to always get an array as the returned value.
(cleanMyContent): Combine replace expressions into one.
(ytVideos): Remove boolean flag `ytVideoFound'.
Replace detection of DASH video with FOR loops.
|
|
* viewtube.js (createMyPlayer): Remove function.
(playMyVideo): Do not delete previously existing video elements,
because there are none.
* viewtube.css (video): Remove video menu styles. Fit video in player
window.
|
|
* viewtube.js: Create a link element for stylesheet using
`createElement'.
|
|
* viewtube.js (createMyPlayer): Remove browser storage of settings.
(setMyOptions): Remove function.
(createElement, createVideoElement): Change function signature.
* manifest.json (permissions): Remove "storage".
|
|
* viewtube.js (getMyContent): Remove getting XML. Simplify logic.
Remove unnecessary global variables.
|
|
* viewtube.js: Remove unnecessary parantheses for single
statements. Combine statements with OR operator. Use partial
application of functions.
|
|
* manifest.json (web_accessible_resources): Add "viewtube.css".
* viewtube.css: New file.
* viewtube.js (createMyElement, modifyMyElement, styleMyElement):
Remove functions.
(createElement, createVideoElement): New functions.
Inject "viewtube.css" stylesheet.
|
|
* viewtube.js (showMyMessage): Remove function.
Replace invocations of `showMyMessage' with `console.log'.
|
|
* viewtube.js (createMyPlayer, playMyVideo): Remove player
size (width, height, margin) settings.
(ytSizes): Remove function.
Remove invocations of `ytSizes'.
|
|
* viewtube.js (option): Remove "dash".
(createMyElement): Remove handling of "dash" action.
(createMyPlayer): Remove panel "DASH" button.
|
|
* viewtube.js (option): Remove "widesize" and "fullsize".
(createMyElement): Remove handling of "widesize" and "fullsize"
actions.
(createMyPlayer): Remove panel "widesize" and "fullsize" buttons.
(resizeMyPlayer): Remove function.
Remove invocations of `resizeMyPlayer'.
|
|
* viewtube.js: Do not extract video title (ytVideoTitle).
|
|
* viewtube.js (playDASHwithHTML5): Remove console logging.
|
|
* viewtube.js (option): Remove "autoplay".
(createMyElement): Remove handling of "play" and "autoplay" actions.
(createMyPlayer): Remove panel "Autoplay" button.
Do not create separate img element for thumbnail.
|
|
* viewtube.js (getMyElement): Remove function.
Replace invocations of `getMyElement' with `document.querySelector'.
|
|
* viewtube.js (blockVideos): Remove function.
This function, part of ViewTube, is not relevant to YouTube.
|
|
* viewtube.js (createMyPlayer): Remove panel "Get" button.
(createMyElement): Remove handling of "get" action.
(getMyVideo): Remove function.
(option): Remove "autoget".
Users can get the video link from the HTML5 video element.
|
|
* viewtube.js: New file.
* manifest.json (content_scripts): Add viewtube.js.
(permissions): Add storage.
|