Jump to content

Howto hide Home screen buttons


RedStripe
 Share

Recommended Posts

RedStripe

Emby Server Version 3.0.5724.6
Windows  Professional
Firefox 41.0.1


1) TV (Live) 2) Guide and 3) Recorded TV buttons did not use to appear on the Home screen views?
Now they do. Is there a way to hide these buttons on the Home screen?
 

56193fe3e52e3_Capture.png

 

56193ffed373f_Capture2.png

While the other buttons can be customized these 3 cannot and ruin the aestheics. Even if they
were customizeable I don't want them to appear as I rarely if ever use them.

 

Thanks

 

  • Like 2
Link to comment
Share on other sites

In Emby\System\dashboard-ui\scripts of your server open up sections.js with an editor.

 

-Line 25 to line 31 is for the Guide view button. (delete these lines to remove guide button)

-Line 33 to line 39 is for the Recorded TV view button. (delete these lines to remove recorded button)

(function ($, document) {

    function getUserViews(userId) {

        var deferred = $.Deferred();

        ApiClient.getUserViews({}, userId).done(function (result) {

            var items = result.Items;

            var list = [];

            for (var i = 0, length = items.length; i < length; i++) {

                var view = items[i];

                list.push(view);

                if (view.CollectionType == 'livetv') {

                    view.ImageTags = {};
                    view.icon = 'live-tv';
                    view.onclick = "LibraryBrowser.showTab('livetv.html', 0);return false;";

                    var guideView = $.extend({}, view);
                    guideView.Name = Globalize.translate('ButtonGuide');
                    guideView.ImageTags = {};
                    guideView.icon = 'dvr';
                    guideView.url = 'livetv.html?tab=1';
                    guideView.onclick = "LibraryBrowser.showTab('livetv.html', 1);return false;";
                    list.push(guideView);

                    var recordedTvView = $.extend({}, view);
                    recordedTvView.Name = Globalize.translate('ButtonRecordedTv');
                    recordedTvView.ImageTags = {};
                    recordedTvView.icon = 'video-library';
                    recordedTvView.url = 'livetv.html?tab=3';
                    recordedTvView.onclick = "LibraryBrowser.showTab('livetv.html', 3);return false;";
                    list.push(recordedTvView);
                }
            }
Link to comment
Share on other sites

Koleckai Silvestri

You will have to make the above change every single time Emby updates so you won't want to be on the Dev Track.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...