Sharepoint in Full View after reloading

Erik Edlund 1 Reputation point
2021-04-30T07:21:15.823+00:00

Hi!
We have a TV in our lobby connected to a computer with our SharePoint site on, the site is set to auto refresh with a plugin. Can you add something in the address or add a script so that the site reloads in full view ? Otherwise we have to push this button every day..

92853-skarmklipp.jpg

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,028 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,334 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael 17,861 Reputation points
    2021-05-03T02:54:31.777+00:00

    Hi @Erik Edlund ,

    You could add a script to achieve this, get the button like the blow. The title could be different based on your site language.

    Add the spfx react-script-editor: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor . Then add the below code in it.

    setTimeout(function(){  
        document.querySelector("button[title='Expand content']").click();  
    },1000);  
    

    93163-image.png

    93231-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments

  2. Erik Edlund 1 Reputation point
    2021-05-03T06:35:44.493+00:00

    Hi!
    Thanks for the advice, but then the site will start in full view for everyone ?
    We only want the computer in the lobby to do this.

    Regards Erik