Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/2015YTm.css
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,9 @@ ytm15-menu-button {
.compact-channel.shelf-item .media-item-menu {
display: none;
}
.no-lines .ytm15-video-owner,.no-lines .watch-next-results-content {
border:unset !important;
}

/* About 2015YouTube */
.about-page-heading, .about-page-subheading {
Expand Down
11 changes: 9 additions & 2 deletions app/2015ytm.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ APP_HELVETICA_NEUE_FONT_expflag = localStorage.getItem("APP_HELVETICA_NEUE_FONT"
APP_NEW_ERROR_SCREEN_expflag = localStorage.getItem("APP_NEW_ERROR_SCREEN");
APP_CUSTOM_INVIDIOUS_URL_expflag = localStorage.getItem("APP_CUSTOM_INVIDIOUS_URL");
if (APP_CUSTOM_INVIDIOUS_URL_expflag == undefined) {
localStorage.setItem("APP_CUSTOM_INVIDIOUS_URL", "https://api.allorigins.win/raw?url=https://yt.omada.cafe/");
localStorage.setItem("APP_CUSTOM_INVIDIOUS_URL", "https://api.codetabs.com/v1/proxy?quest=https://inv.perditum.com/");
APP_CUSTOM_INVIDIOUS_URL_expflag = localStorage.getItem("APP_CUSTOM_INVIDIOUS_URL");
}
APP_DONT_AUTH_TO_INVIDIOUS_expflag = localStorage.getItem("APP_DONT_AUTH_TO_INVIDIOUS");
Expand All @@ -168,6 +168,7 @@ if (APP_STOP_TEXT_SELECTION_expflag == undefined) {
localStorage.setItem("APP_STOP_TEXT_SELECTION", "true");
APP_STOP_TEXT_SELECTION_expflag = localStorage.getItem("APP_STOP_TEXT_SELECTION");
}
WATCH_UI_NO_LINES_expflag = localStorage.getItem("WATCH_UI_NO_LINES");

newErrorHtml = `<button class="error-content" onClick="location.reload();">
<!-- <img class="error-icon ytm15-img" src="alert_error.png"></img><br> -->
Expand Down Expand Up @@ -329,6 +330,12 @@ if (APP_STOP_TEXT_SELECTION_expflag == "true") {
} else {
documentHTML.classList.remove("text-selection");
}

if (WATCH_UI_NO_LINES_expflag == "true") {
documentHTML.classList.add("no-lines");
} else {
documentHTML.classList.remove("no-lines");
}
};

localStorageChange();
Expand Down Expand Up @@ -1109,7 +1116,7 @@ function renderPivotBar(){
{
"name": Subs_text_string,
"pivotName": "subscriptions",
"iconPath": "M20,8H4V6H20V8M18,2H6V4H18V2M22,12V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V12A2,2 0 0,1 4,10H20A2,2 0 0,1 22,12M16,16L10,12.73V19.26L16,16Z",
"iconPath": "M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 8v12H2V10h20zm-6 6-6-3.27v6.53L16 16z",
"link": "subscriptions"
},
{
Expand Down
13 changes: 11 additions & 2 deletions app/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ function settingsPage() {
{
"type": "text",
"title": "APP_CUSTOM_INVIDIOUS_URL",
"subtitle": "This loads your home page and comments. <small>which should update and not be static</small><br>If you have your own invidious instance put it here<br>You should change CORS policy if you own your instance, otherwise use a CORS redirector",
"value": "https://api.allorigins.win/raw?url=https://yt.omada.cafe/",
"subtitle": "This loads your home page and comments. <small>which should update and not be static</small><br>If you have your own invidious instance put it here<br>You should change CORS policy if you own your instance, otherwise use a CORS redirector<br>If you want to setup an invidious instance, there is always google, however your average PC probably will lag out (the preset instance is probably fine for you)",
"value": "https://api.codetabs.com/v1/proxy?quest=https://inv.perditum.com/",
"placeholder": "",
"disabled": false,
"lsitem": "APP_CUSTOM_INVIDIOUS_URL"
Expand Down Expand Up @@ -721,6 +721,15 @@ function settingsPage() {
"pressed-default": true,
"disabled": false,
"lsitem": "APP_STOP_TEXT_SELECTION"
},
{
"type": "boolean",
"title": "WATCH_UI_NO_LINES",
"subtitle": "",
"pressed": WATCH_UI_NO_LINES_expflag == "true",
"pressed-default": false,
"disabled": false,
"lsitem": "WATCH_UI_NO_LINES"
}
];
settingBlocks.forEach(function(item){
Expand Down
1 change: 1 addition & 0 deletions app/subscriptions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.