Power BI Report Server fullscreen bookmark

Since Microsoft haven't already released this functionality in Power BI Report Server I decided to put together a bookmarklet that allows to do that.

Power BI RS fullscreen

Code

javascript:(function(){elements = document.getElementsByClassName('pbi-frame');element = elements[0];if(element.requestFullscreen) {    element.requestFullscreen();  } else if(element.mozRequestFullScreen) {    element.mozRequestFullScreen();  } else if(element.webkitRequestFullscreen) {    element.webkitRequestFullscreen();  } else if(element.msRequestFullscreen) {    element.msRequestFullscreen();  }})();

How to install the bookmarklet


Chrome

  1. In Chrome, click Bookmarks > Bookmark Manager
  2. You will see a new tab open with all of your bookmarks in it
  3. (If you see a big blue button labeled "New", then jump to the section below. Otherwise, continue.)
  4. Copy the JavaScript by right-clicking on the bookmarklet link and selecting 'Copy Link Location'
  5. Right click on the "Bookmarks Bar" in the left column, and select "Add Page."
  6. Type a name for the bookmarklet in the 'Name' field and paste the code into the "URL" field.

If you have newer Chrome versions:

  1. Click the blue "New" button in the left column
  2. Copy the JavaScript by right-clicking on the bookmarklet link and selecting 'Copy Link Location'
  3. Paste the code into the "URL" field.
  4. Click the gray "Add" button.

Firefox

  1. In Firefox, if you already have a bookmarklet on a web page, right-click on the bookmarklet link
  2. Select "Bookmark This Link"
  3. Type the name of your Bookmarklet in the "Name" field
  4. Click "Save"

Edge

  1. Right-click your button above
  2. Click Add to reading list.
  3. Navigate to your site and run the script on that site by clicking Reading list (Reading list on my version of Edge on PC is located behind the three horizontal lines called Hub and then the fancy icon with many curled horizontal lines called Reading list, on mobile the Reading list icon appears above the address bar when you click the ... menu icon) and from that list clicking your script.

Internet Explorer

  1. Make sure your favorites bar is visible. (Right-click on the menu bar and make sure "Favorites" is checked.)
  2. Right click on the bookmarklet link and choose "Add to Favorites"
  3. In the "Create In" field, choose "Favorites Bar"
  4. Click "Add"
  5. You should now have a bookmarklet link in your Favorites Bar