Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Added more options to the subscription page thingy.
Browse files Browse the repository at this point in the history
  • Loading branch information
YePpHa committed Aug 17, 2013
1 parent d51e160 commit fdc6e6c
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 12 deletions.
Binary file modified Translation.xlsx
Binary file not shown.
Binary file modified dist/YouTubeCenter.crx
Binary file not shown.
Binary file modified dist/YouTubeCenter.mxaddon
Binary file not shown.
Binary file modified dist/YouTubeCenter.oex
Binary file not shown.
51 changes: 47 additions & 4 deletions dist/YouTubeCenter.safariextension/YouTubeCenter.user.js

Large diffs are not rendered by default.

51 changes: 47 additions & 4 deletions dist/YouTubeCenter.user.js

Large diffs are not rendered by default.

Binary file modified dist/YouTubeCenter.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion language.json

Large diffs are not rendered by default.

49 changes: 46 additions & 3 deletions src/YouTubeCenter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4570,7 +4570,9 @@
processItemHeavyLoad(vt[i]);
applyWatchLaterSettings(vt[i]);
applyTimeCodeSettings(vt[i]);
applyWatchedMessage(vt[i]);
if (ytcenter.settings.watchedVideosIndicator) {
applyWatchedMessage(vt[i]);
}
}
});
if (!observer) return;
Expand All @@ -4597,7 +4599,9 @@
processItemHeavyLoad(videoThumbs[i]);
applyWatchLaterSettings(videoThumbs[i]);
applyTimeCodeSettings(videoThumbs[i]);
applyWatchedMessage(videoThumbs[i]);
if (ytcenter.settings.watchedVideosIndicator) {
applyWatchedMessage(videoThumbs[i]);
}
}
__r.setupObserver();
} catch (e) {
Expand Down Expand Up @@ -9318,7 +9322,8 @@
})();
con.log("default settings initializing");
ytcenter._settings = {
hideWatchedVideos: false,
watchedVideosIndicator: true,
hideWatchedVideos: true,
watchedVideos: [],
watchedVideosLimit: 500,
gridSubscriptionsPage: true,
Expand Down Expand Up @@ -9713,6 +9718,10 @@
}
],
"defaultSetting": "gridSubscriptionsPage"
}, {
"label": "SETTINGS_WATCHEDVIDEOS_INDICATOR",
"type": "bool",
"defaultSetting": "watchedVideosIndicator"
}, {
"label": "SETTINGS_HIDEWATCHEDVIDEOS",
"type": "bool",
Expand All @@ -9725,6 +9734,40 @@
}
],
"defaultSetting": "hideWatchedVideos"
}, {
"text": "SETTINGS_WATCHEDVIDEOS_CLEAN_VIDEO_HISTORY",
"type": "button",
"listeners": [
{
"event": "click",
"callback": function(){
var msgElm = document.createElement("h3");
msgElm.style.fontWeight = "normal";
msgElm.textContent = ytcenter.language.getLocale("SETTINGS_WATCHEDVIDEOS_CLEAN_VIDEO_HISTORY_CONTENT");
ytcenter.language.addLocaleElement(msgElm, "SETTINGS_WATCHEDVIDEOS_CLEAN_VIDEO_HISTORY_CONTENT", "@textContent");

var dialog = ytcenter.dialog("SETTINGS_WATCHEDVIDEOS_CLEAN_VIDEO_HISTORY", msgElm, [
{
label: "CONFIRM_CANCEL",
primary: false,
callback: function(){
dialog.setVisibility(false);
}
}, {
label: "CONFIRM_CLEAN",
primary: true,
callback: function(){
ytcenter.settings.watchedVideos = [];
ytcenter.saveSettings();
loc.reload();
dialog.setVisibility(false);
}
}
]);
dialog.setVisibility(true);
}
}
]
}, {
"type": "horizontalRule"
}, {
Expand Down

0 comments on commit fdc6e6c

Please sign in to comment.