将自定义HTML注入Google Drive用户界面 [英] Injecting Custom HTML into Google Drive UI

查看:167
本文介绍了将自定义HTML注入Google Drive用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将自定义代码/ html注入到最新的Google云端硬盘用户界面?

Is it possible to inject custom code/html into the latest Google Drive UI?

有一天,我看到一个Google云端硬盘用户界面,其中嵌入了自定义按钮在页面中。我搜索了文档,找不到任何详细说明如何做的事情......也许这只是Google合作伙伴可以或被允许执行的操作?!?

The other day I was shown a Google Drive UI that had a custom button embedded in the page. I've search through documentation and can't find anything that details how to do this...maybe it's something only Google Partners can or are allowed to do?!?

推荐答案

您可以注册一个操纵DOM的Chrome扩展。

You could register a Chrome Extension that manipulates the DOM.

您没有支持将自定义HTML注入Drive的用户界面,所以你做的任何解决方法(比如扩展)都会在我们改变用户界面的时候中断。

There is not a supported mechanism for you to inject custom HTML into the Drive UI, so any work-arounds you do (such as an extension) will break as we change the UI.

然而,你可以注册一个web应用程序在新建菜单中,您可以在打开方式菜单中注册为Google文档。浏览'与云端硬盘用户界面集成'文档

You can however register a web app to be included in the 'New' menu a la Google Docs and you can also register as file handles in the 'Open With' menu. Have a glance in the 'Integration with the Drive UI' docs

这篇关于将自定义HTML注入Google Drive用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆