Google Apps Script remove warning banner

前端 未结 5 2108
攒了一身酷
攒了一身酷 2020-12-17 04:14

I am putting a GeoChart on my Google Site using a Google Apps Script. Viewing the page when I am not logged into my google account shows a grey banner at the top with states

5条回答
  •  执念已碎
    2020-12-17 05:05

    I'm successfully using the Chrome extension Custom JavaScript for websites for this. It allows you to run any JavaScript on any domain.

    To hide the Google warning banner, just enter the following code in the custom JavaScript window:

    document.getElementById('warning').style.display = 'none';
    

    And hit save. It will be applied right away.

提交回复
热议问题