Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
0.4.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lassekongo83 committed Sep 13, 2021
1 parent c828999 commit 2acbd38
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 34 deletions.
2 changes: 1 addition & 1 deletion extension/css/yt-classic.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions extension/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ <h1 data-locale="ext_title_general_options">General options</h1>
<label for="options-list-display" data-locale="ext_listdisplay">Display channel videos as a list</label>
</div>

<div class="inputGroup">
<!-- <div class="inputGroup">
<input type="checkbox" id="options-restore-icons" name="options-restore-icons">
<label for="options-restore-icons" data-locale="ext_restoreicons">Restore filled icons</label>
</div>
</div> -->

<h1 data-locale="ext_title_video_options">Video options</h1>
<div class="inputGroup">
Expand Down
17 changes: 1 addition & 16 deletions extension/js/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,17 +430,6 @@ function playlistStyle() {
link.rel = "stylesheet";
document.getElementsByTagName("head")[0].appendChild(link);
}
function restoreIcons() {
createScript(`window['yt'] = window['yt'] || {};
yt['config_'] = yt.config_ || {};
yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {};
yt.config_.EXPERIMENT_FLAGS.kevlar_updated_icons = false;
yt.config_.EXPERIMENT_FLAGS.kevlar_system_icons = false;
yt.config_.EXPERIMENT_FLAGS.kevlar_watch_color_update = false;`);
if (document.getElementsByTagName('html')[0].hasAttribute('system-icons')) {
document.getElementsByTagName('html')[0].removeAttribute('system-icons');
}
}
chrome.storage.sync.get({
settingsRestoreScroll: true,
settingsDisableMP: true,
Expand All @@ -455,8 +444,7 @@ chrome.storage.sync.get({
settingsChannelScroll: false,
settingsRelScroll: false,
settingsFullScreenScroll: false,
settingsClassicPlaylist: false,
settingsRestoreIcons: false
settingsClassicPlaylist: false
}, function (settings) {
if (true === settings.settingsRestoreScroll) {
restoreScrollbar();
Expand Down Expand Up @@ -514,7 +502,4 @@ chrome.storage.sync.get({
classicPlaylist();
document.querySelector('ytd-app').addEventListener('yt-visibility-refresh', classicPlaylist);
}
if (true === settings.settingsRestoreIcons) {
restoreIcons();
}
});
9 changes: 2 additions & 7 deletions extension/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function save_options() {
const settingsRelScroll = document.getElementById('options-relscroll').checked;
const settingsFullScreenScroll = document.getElementById('options-fs-scroll').checked;
const settingsClassicPlaylist = document.getElementById('options-classic-playlist').checked;
const settingsRestoreIcons = document.getElementById('options-restore-icons').checked;
chrome.storage.sync.set({
settingsRestoreScroll: settingsRestoreScroll,
settingsGuideMenu: settingsGuideMenu,
Expand All @@ -28,8 +27,7 @@ function save_options() {
settingsChannelScroll: settingsChannelScroll,
settingsRelScroll: settingsRelScroll,
settingsFullScreenScroll: settingsFullScreenScroll,
settingsClassicPlaylist: settingsClassicPlaylist,
settingsRestoreIcons: settingsRestoreIcons
settingsClassicPlaylist: settingsClassicPlaylist
});
}
function restore_options() {
Expand All @@ -47,8 +45,7 @@ function restore_options() {
settingsChannelScroll: false,
settingsRelScroll: false,
settingsFullScreenScroll: false,
settingsClassicPlaylist: false,
settingsRestoreIcons: false
settingsClassicPlaylist: false
}, function(items) {
document.getElementById('options-scrollbar').checked = items.settingsRestoreScroll;
document.getElementById('options-guide-menu').checked = items.settingsGuideMenu;
Expand All @@ -64,7 +61,6 @@ function restore_options() {
document.getElementById('options-relscroll').checked = items.settingsRelScroll;
document.getElementById('options-fs-scroll').checked = items.settingsFullScreenScroll;
document.getElementById('options-classic-playlist').checked = items.settingsClassicPlaylist;
document.getElementById('options-restore-icons').checked = items.settingsRestoreIcons;
});
}
document.addEventListener('DOMContentLoaded', function () {
Expand All @@ -83,5 +79,4 @@ document.addEventListener('DOMContentLoaded', function () {
document.getElementById('options-relscroll').addEventListener('click', save_options);
document.getElementById('options-fs-scroll').addEventListener('click', save_options);
document.getElementById('options-classic-playlist').addEventListener('click', save_options);
document.getElementById('options-restore-icons').addEventListener('click', save_options);
});
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "YouTube Classic Polymer Theme",
"short_name": "YT Classic Theme",
"version": "0.4.6",
"version": "0.4.7",
"manifest_version": 2,
"description": "__MSG_ext_desc__",
"author": "Frellwit",
Expand Down
4 changes: 2 additions & 2 deletions extension/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"{389389aa-6501-4759-90a0-a2269a405ee0}": {
"updates": [
{
"version": "0.4.6",
"version": "0.4.7",
"browser_specific_settings": { "gecko": { "strict_min_version": "56" } },
"update_link": "https://github.com/lassekongo83/yt-classic-polymer/releases/download/v0.4.6/youtube_classic_polymer_theme-0.4.6-an%2Bfx.xpi"
"update_link": "https://github.com/lassekongo83/yt-classic-polymer/releases/download/v0.4.7/youtube_classic_polymer_theme-0.4.7-an%2Bfx.xpi"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.6
0.4.7
4 changes: 2 additions & 2 deletions src/js/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,8 @@ chrome.storage.sync.get({
settingsChannelScroll: false,
settingsRelScroll: false,
settingsFullScreenScroll: false,
settingsClassicPlaylist: false,
settingsRestoreIcons: false
settingsClassicPlaylist: false
//settingsRestoreIcons: false
}, function (settings) {
if (true === settings.settingsRestoreScroll) {
restoreScrollbar();
Expand Down
2 changes: 1 addition & 1 deletion src/manifest-ff.template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "YouTube Classic Polymer Theme",
"short_name": "YT Classic Theme",
"version": "0.4.6",
"version": "0.4.7",
"manifest_version": 2,
"description": "__MSG_ext_desc__",
"author": "Frellwit",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "YouTube Classic Polymer Theme",
"short_name": "YT Classic Theme",
"version": "0.4.6",
"version": "0.4.7",
"manifest_version": 2,
"description": "__MSG_ext_desc__",
"author": "Frellwit",
Expand Down

0 comments on commit 2acbd38

Please sign in to comment.