Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c1d8058

Browse filesBrowse files
committed
renamed output file to enable auto-updates
1 parent 8125978 commit c1d8058
Copy full SHA for c1d8058

4 files changed

+18-14Lines changed: 18 additions & 14 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.run/Build NuoFlix_EnhancedNuoFlix.run.xml‎

Copy file name to clipboardExpand all lines: .run/Build NuoFlix_EnhancedNuoFlix.run.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="Build Script [EnhancedNuoFlix]" type="ShConfigurationType" folderName="Deploy">
3-
<option name="SCRIPT_TEXT" value="wsl ./buildUserscript.sh src/NuoFlix/EnhancedNuoFlix/base.js dist/NuoFlix/EnhancedNuoFlix.js &amp;&amp; exit 0" />
3+
<option name="SCRIPT_TEXT" value="wsl ./buildUserscript.sh src/NuoFlix/EnhancedNuoFlix/base.js dist/NuoFlix/EnhancedNuoFlix.user.js &amp;&amp; exit 0" />
44
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
55
<option name="SCRIPT_PATH" value="" />
66
<option name="SCRIPT_OPTIONS" value="" />
Collapse file
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name Enhanced NuoFlix
33
// @name:de NuoFlix 2.0
44
// @namespace http://tampermonkey.net/
5-
// @version 1.2.1
5+
// @version 1.3.0
66
// @description Block feature: deletes comments from blocked user | profile page: pagination, comment filter (unread / only conversation with User XY)
77
// @description:de Blockierfunktion: entfernt Kommentare von blockierten Usern | Profilseite: Seitenumbruch, Kommentarfilter (ungelesene / nur Konversation mit User XY)
88
// @icon https://nuoflix.de/favicon-16x16.png
@@ -15,8 +15,6 @@
1515
// @website https://stuck1a.de/
1616
// @match http*://nuoflix.de/*
1717
// @run-at document-end
18-
// @updateURL https://raw.githubusercontent.com/stuck1a/GreaseMonkeyScripts/main/dist/NuoFlix/EnhancedNuoFlix.js
19-
// @downloadURL https://raw.githubusercontent.com/stuck1a/GreaseMonkeyScripts/main/dist/NuoFlix/EnhancedNuoFlix.js
2018
// @supportURL mailto:dev@stuck1a.de?subject=Meldung zum Skript 'Enhanced NuoFlix'&body=Problembeschreibung, Frage oder Feedback:
2119
// ==/UserScript==
2220
(function() {
@@ -2478,9 +2476,12 @@ function addPlaylistContainer() {
24782476
playlist.item_cnt > 0
24792477
? document.getElementById('startPlaylist').classList.remove('disabled')
24802478
: document.getElementById('startPlaylist').classList.add('disabled');
2481-
if (playlist.is_custom || playlist.id === 2) {
2479+
if (playlist.is_custom) {
24822480
document.getElementById('editPlaylist').classList.remove('disabled');
2483-
if (playlist.id !== 2) document.getElementById('deletePlaylist').classList.remove('disabled');
2481+
document.getElementById('deletePlaylist').classList.remove('disabled');
2482+
} else if (playlist.id === watchLaterID || playlist.id === favoritesID) {
2483+
document.getElementById('editPlaylist').classList.remove('disabled');
2484+
document.getElementById('deletePlaylist').classList.add('disabled');
24842485
} else {
24852486
document.getElementById('editPlaylist').classList.add('disabled');
24862487
document.getElementById('deletePlaylist').classList.add('disabled');
Collapse file

‎src/NuoFlix/EnhancedNuoFlix/Global/userscript_definition.js‎

Copy file name to clipboardExpand all lines: src/NuoFlix/EnhancedNuoFlix/Global/userscript_definition.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name Enhanced NuoFlix
33
// @name:de NuoFlix 2.0
44
// @namespace http://tampermonkey.net/
5-
// @version 1.2.1
5+
// @version 1.3.0
66
// @description Block feature: deletes comments from blocked user | profile page: pagination, comment filter (unread / only conversation with User XY)
77
// @description:de Blockierfunktion: entfernt Kommentare von blockierten Usern | Profilseite: Seitenumbruch, Kommentarfilter (ungelesene / nur Konversation mit User XY)
88
// @icon https://nuoflix.de/favicon-16x16.png
@@ -15,7 +15,5 @@
1515
// @website https://stuck1a.de/
1616
// @match http*://nuoflix.de/*
1717
// @run-at document-end
18-
// @updateURL https://raw.githubusercontent.com/stuck1a/GreaseMonkeyScripts/main/dist/NuoFlix/EnhancedNuoFlix.js
19-
// @downloadURL https://raw.githubusercontent.com/stuck1a/GreaseMonkeyScripts/main/dist/NuoFlix/EnhancedNuoFlix.js
2018
// @supportURL mailto:dev@stuck1a.de?subject=Meldung zum Skript 'Enhanced NuoFlix'&body=Problembeschreibung, Frage oder Feedback:
2119
// ==/UserScript==
Collapse file

‎src/NuoFlix/EnhancedNuoFlix/ProfilePage/functions_profilePage.js‎

Copy file name to clipboardExpand all lines: src/NuoFlix/EnhancedNuoFlix/ProfilePage/functions_profilePage.js
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ function addPlaylistContainer() {
843843
`.parseHTML().firstElementChild;
844844
addToDOM(playlists, document.getElementById('playlistContainer'), InsertionService.AsFirstChild, true, 'playlists');
845845

846-
// disable all playlist buttons which require an selected playlist to become enabled
846+
// disable all playlist buttons which requires a selected playlist to become enabled
847847
document.getElementById('startPlaylist').classList.add('disabled');
848848
document.getElementById('editPlaylist').classList.add('disabled');
849849
document.getElementById('deletePlaylist').classList.add('disabled');
@@ -860,10 +860,15 @@ function addPlaylistContainer() {
860860
playlist.item_cnt > 0
861861
? document.getElementById('startPlaylist').classList.remove('disabled')
862862
: document.getElementById('startPlaylist').classList.add('disabled');
863-
// only allow edit for custom playlists and for the "watch later" playlist (id 2)
864-
if (playlist.is_custom || playlist.id === 2) {
863+
// allow delete and edit for user playlists
864+
if (playlist.is_custom) {
865865
document.getElementById('editPlaylist').classList.remove('disabled');
866-
if (playlist.id !== 2) document.getElementById('deletePlaylist').classList.remove('disabled');
866+
document.getElementById('deletePlaylist').classList.remove('disabled');
867+
// allow edit only for default playlists watch later and favorites
868+
} else if (playlist.id === watchLaterID || playlist.id === favoritesID) {
869+
document.getElementById('editPlaylist').classList.remove('disabled');
870+
document.getElementById('deletePlaylist').classList.add('disabled');
871+
// lock both for all other playlists
867872
} else {
868873
document.getElementById('editPlaylist').classList.add('disabled');
869874
document.getElementById('deletePlaylist').classList.add('disabled');
@@ -1034,7 +1039,7 @@ function addEditPlaylistDialog() {
10341039
/*%% ProfilePage/editPlaylistDialog.js %%*/ // Inserts: const editPlaylistDialog
10351040
addToDOM(editPlaylistDialog, document.body, InsertionService.AsLastChild, true, 'editPlaylistDialog');
10361041

1037-
// hide the "edit playlist name" button, if it is a default playlist
1042+
// only allow changing the playlist name for user playlists
10381043
if (!playlist.is_custom) document.getElementById('changePlaylistName').classList.add('forceHidden');
10391044

10401045
// fill the video list in the dialog

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.