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

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

2 answers

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 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.

    0 comments 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.