Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
680 views
in Technique[技术] by (71.8m points)

google-apps-script - Google Apps脚本删除警告横幅(Google Apps Script remove warning banner)

I am putting a GeoChart on my Google Site using a Google Apps Script.

(我正在使用Google Apps脚本在我的Google网站上放置GeoChart。)

Viewing the page when I am not logged into my google account shows a grey banner at the top with states: "This application was created by another user, not by Google."

(当我未登录自己的Google帐户时,查看该页面会在顶部显示一个灰色横幅,其状态为:“此应用程序是由其他用户而非Google创建的。”)

See it here .

(在这里看到它。)

屏幕截图

Is there a way to remove this banner or move it to the bottom of the page so it looks better?

(有没有办法删除此横幅或将其移动到页面底部,使其看起来更好?)

I found a short discussion here (see fourth comment), but this did not work with the HtmlOutput object I am using in the doGet

(我在这里找到了简短的讨论(请参阅第四条评论),但这不适用于我在doGet使用的HtmlOutput对象)

function doGet() {
return HtmlService.createHtmlOutputFromFile('prate').setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
  ask by Christine Braun translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For anyone who cares, i got around this by embedding a google page with this issue in an iframe and using negative margins.

(对于任何在乎的人,我通过在iframe中嵌入带有此问题的Google网页并使用负边距来解决此问题。)

Cant see the bars.

(不能看到酒吧。)

Just throwing it out there in-case anyone else could use the suggestion

(只是把它扔在那里,以防其他人可以使用该建议)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...