Jump to content

Hide sidebar by default in 4.8


Go to solution Solved by Happy2Play,

Recommended Posts

Posted

Hi, I'm looking at these two parts of the file but unsure about editing, so if possible I'd like to know.
In the first part, I believe it is the audio/video information and I would like to turn it off (not display) as the default.
In the second part, I believe it is about the size of the poster and I would like the default to be "Smaller".
Thank you in advance for any advice.

trash6.png

Happy2Play
Posted
3 hours ago, CarlosLima said:

Hi, I'm looking at these two parts of the file but unsure about editing, so if possible I'd like to know.
In the first part, I believe it is the audio/video information and I would like to turn it off (not display) as the default.
In the second part, I believe it is about the size of the poster and I would like the default to be "Smaller".
Thank you in advance for any advice.

trash6.png

Don't know scripting but I just changed it to look like one that is disabled and for cardsize change to "smaller".  But for the list options you can see their value in the browser console.

image.png.6e7b9453e8bb85b9da42c348b0ea262c.png

Posted

Hi, just changing to SMALLER keeps the poster size as the default?

Happy2Play
Posted
1 minute ago, CarlosLima said:

Hi, just changing to SMALLER keeps the poster size as the default?

No it sort of eliminates Default making Smaller and Default the same as you can no longer select Default.  So Smaller is presented.

 

 

  • 2 weeks later...
SrVirtual
Posted

Hello, how are you sending me this link, one of the community to which I am very grateful, I was able to solve everything I was looking for and even more, and I would like to contribute, I did not finish reading all the messages but from what I read I could notice that they wanted to activate the wallpapers And well, with the code that I saw here I was able to modify all this, here I leave everything well explained.
To activate the wallpapers you only have to modify line 99, look for the class (enableBackdrops) and replace this line with the following

image.png.32ef5d0c91813bdacfaec21fdb08e822.png

What activates the background is this code

image.png.2c8074267714808c1e5d376bd98568e2.png

thanks for the contribution and support

Baenwort
Posted

This is very helpful for my setup.

Am I correct in remembering that this change will need to be applied every time Emby is patched to a new version?

  • Agree 1
Posted
On 4/6/2024 at 1:48 AM, Baenwort said:

This is very helpful for my setup.

Am I correct in remembering that this change will need to be applied every time Emby is patched to a new version?

Exact. Always

Posted (edited)

Has somebody an idea how to automatically activate LogoAsTitle?
The syntax is not the same as with the other where you just exchange && with ||.  
I have no idea about js really, just a little bit experience in doing stuff in python and bash.

UserSettings.prototype.getEnableLogoAsTitle = function(displayLanguage) {
var val = this.get("enableLogoAsTitle");
return val ? "true" === val : displayLanguage && displayLanguage.toLowerCase().startsWith("en")
}, UserSettings.prototype.setEnableLogoAsTitle = function(val) {
return this.set("enableLogoAsTitle", val.toString())
}
 
 
Edited by Suliamu
Happy2Play
Posted
7 minutes ago, Suliamu said:

Has somebody an idea how to automatically activate LogoAsTitle and enableThemeSongs?
The syntax is not the same as with the other where you just exchange && with ||.  
I have no idea about js really, just a little bit experience in doing stuff in python and bash.

UserSettings.prototype.getEnableLogoAsTitle = function(displayLanguage) {
var val = this.get("enableLogoAsTitle");
return val ? "true" === val : displayLanguage && displayLanguage.toLowerCase().startsWith("en")
}, UserSettings.prototype.setEnableLogoAsTitle = function(val) {
return this.set("enableLogoAsTitle", val.toString())
}
 
 
UserSettings.prototype.enableThemeSongs = function(val) {
return null != val ? this.set("enableThemeSongs", val.toString(), !1) : "false" !== (val = this.get("enableThemeSongs", !1))

For Logos I just changed true to false.

As for ThemeSongs it is already activated by default.

Posted
Just now, Happy2Play said:

For Logos I just changed true to false.

Thank you very much 😊

  • 1 month later...
cochize1
Posted

@SrVirtual 

@Happy2Play

@CarlosLima

Coming back to an old thread... I can't seem to find a way to turn these 3 settings OFF by default in usersettingsbuilder.js file (can't even locate the option for the 'Play next episode automatically). Could use a little help from you guys, thanks.

adv.thumb.jpg.1055a805eb096a25b608ded68cacf2a1.jpg

Happy2Play
Posted
7 hours ago, cochize1 said:

@SrVirtual 

@Happy2Play

@CarlosLima

Coming back to an old thread... I can't seem to find a way to turn these 3 settings OFF by default in usersettingsbuilder.js file (can't even locate the option for the 'Play next episode automatically). Could use a little help from you guys, thanks.

adv.thumb.jpg.1055a805eb096a25b608ded68cacf2a1.jpg

The second two are off by default.

1) disable cinemamode

Quote

    UserSettings.prototype.enableCinemaMode = function (val) {
        return null != val ? this.set("enableCinemaMode", val.toString(), !1) : !(val = this.get("enableCinemaMode", !0)) || "false" !== val
    }

2) not sure where this is but disabled by default.  But appear directly tied to User Config config.xml as the option is not cleared when cache is cleared.  Requires restart if edited to reload user.

Quote

<EnableNextEpisodeAutoPlay>false</EnableNextEpisodeAutoPlay>

3) default disabled code

Quote

    UserSettings.prototype.enableNextVideoInfoOverlay = function (val) {
        return null != val ? this.set("enableNextVideoInfoOverlay", val.toString()) : "false" !== (val = this.get("enableNextVideoInfoOverlay"))
    }

 

So 2 would be a persistent config while 1 and 3 are cache configs per my understanding.

  • 2 years later...
Suliamu
Posted (edited)
On 4/8/2024 at 1:20 AM, Suliamu said:

Has somebody an idea how to automatically activate LogoAsTitle?
The syntax is not the same as with the other where you just exchange && with ||.  
I have no idea about js really, just a little bit experience in doing stuff in python and bash.

UserSettings.prototype.getEnableLogoAsTitle = function(displayLanguage) {
var val = this.get("enableLogoAsTitle");
return val ? "true" === val : displayLanguage && displayLanguage.toLowerCase().startsWith("en")
}, UserSettings.prototype.setEnableLogoAsTitle = function(val) {
return this.set("enableLogoAsTitle", val.toString())
}
 
 

In the last stable update the fix to change true to false seems no longer to work unfortunately. 
Changing this value does not turn the text into the logo, but keeps the text, and spawns the logo in the top bar right next to the burger-menu. 
Also i am now blocked from changing this setting in the backend completely. 
Does someone maybe have a workaround for this? Did i mess up the usersettingsbuilder.js? 

Edit: I've replaced the usersettingsbuilder.js with a clean one, opened emby in another new browser, and strangely the problem persists. 
My Emby-Server is set to German so i cannot name the menus in English correctly, but in the Menu "<User> Preferences", under the first setting (in German "Anzeige") when i set there to show Logo as Title he simple ignores this setting and goes always back to deactivated. 
Is this a bug in the newest stable maybe or am i doing something completely wrong here? 

Edited by Suliamu

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
×
×
  • Create New...