Jump to content

try to remove some button with css


beiona

Recommended Posts

help04.thumb.PNG.39b44f0612b863ad561f7fe67353049b.PNG

help01.thumb.PNG.130eb5f646c59951b5afe844c458e73c.PNG

 

help02.thumb.PNG.e428037932e1b22329052295e9d47fb2.PNG

 

help03.thumb.PNG.27454ed4ac2809d0b5d3c304ad3e3b17.PNG

 

i want to remove some buttons in the red circle.

remove top "play on other device" "settings"  "manage emby server"

and remove all the "play" button,  even the one  in the poster.

is that possible?

Link to comment
Share on other sites

Happy2Play

Some can be targeted differently to combine, but kept them more targeted.

/*Header buttons*/
button.headerCastButton, button.headerUserButton, button.headerSettingsButton {display: none;}

/*Card Overlay buttons*/
button.cardOverlayFab-primary, button.cardOverlayButton[title="Played"], button.cardOverlayButton[title="More"] {display: none;}

/*ItemDetails buttons*/
button.btnResume, button.btnPlay, button.btnShuffle, button.btnPlayTrailer, button.btnPlaystate, button.btnMoreCommands {display: none;}

/*Season view buttons*/
button.listItemButton[title="Played"], button.listItemButton[title="More"] {display: none;}

 

Link to comment
Share on other sites

7 hours ago, Happy2Play said:

headerUserButton

thank you ,so much.

All work well, except this one in the season view. seems like it is not a "cardOverlayButton".

help01.thumb.PNG.683084a946c96169a7c442488f1d6f2c.PNG

 

 

And i missed one to remove.

In the left side bar, there are some setting manage buttons I want to remove.

But keep the "Sing out" button.

help02.thumb.PNG.a172838540b3d4a092bf6467499241ef.PNG

 

Link to comment
Share on other sites

Happy2Play

Here you go.

 

/*List item play button*/ 
button.listItemImageButton {display: none;}

/*Navdrawer options not Dashboard*/
div.navDrawerCollapseSection[title="Admin"] a.navMenuOption[title="Manage Emby Server"], div.navDrawerCollapseSection[title="Admin"] a.navMenuOption[title="Metadata Manager"], div.navDrawerCollapseSection[title="Admin"] a.navMenuOption[title="Settings"] {display: none !important;}

 

Link to comment
Share on other sites

8 hours ago, Happy2Play said:

Here you go.

Your code works very well !

but, here is another problem.

help03.thumb.PNG.ba69c34a7e5add7e70be5cf3d435052d.PNG

Although I remove the play button, when click on the picture in the red circle , it still play the viedo.

Is there any way to turn the yellow mark [data-action="resume"] into [data-action="link"] ?

(same function as the small button on the right.)

Link to comment
Share on other sites

Happy2Play
3 hours ago, beiona said:

Your code works very well !

but, here is another problem.

help03.thumb.PNG.ba69c34a7e5add7e70be5cf3d435052d.PNG

Although I remove the play button, when click on the picture in the red circle , it still play the viedo.

Is there any way to turn the yellow mark [data-action="resume"] into [data-action="link"] ?

(same function as the small button on the right.)

Sorry you will have to manually edit the \Emby-Server\system\dashboard-ui\modules\listview\listview.js. 

 

Note this will have to updated with every server update.

Link to comment
Share on other sites

Happy2Play
3 hours ago, PenkethBoy said:

@Happy2Play

can you not hide the overlay?

There is not overlay on season "listItemImageContainer-large". 

Looks like you would have to modify the both resume in js to link

script.thumb.jpg.fdcdc68e674fa3773f1f27d269139e18.jpg

Link to comment
Share on other sites

1 hour ago, Happy2Play said:

Looks like you would have to modify the both resume in js to link

script.thumb.jpg.fdcdc68e674fa3773f1f27d269139e18.jpg

I missed the first one.

 Cool, change both "resume" with "link", finally worked!!!

Only one thing left.

help04.thumb.jpg.79fcc14a9d3d3d38ba00160709ce3cbb.jpg

The Mobile web.

I want to remove everything, except the "sign out", in the "More" list below.

 

 

Link to comment
Share on other sites

Happy2Play

Something like this, If you truly want to remove the Home button remove ":not(:first-child).  But I left it to be able to back out of Settings.

/*Remove all AppFooter buttons except last*/
div.appfooter a:not(:first-child):not(:last-child) {display: none;}

/*User Settings sections*/
div.dynamicRoutes h3, div.dynamicRoutes a:not([title="Sign Out"]) {display: none !important;}

as for appfooter buttons, it depends on whether you want the button to cover the entire footer or use visibility: hidden instead  of display: none.

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