Chrome Extensions API & options】的更多相关文章

Chrome Extensions API options https://developer.chrome.com/extensions https://developer.chrome.com/extensions/options https://developer.chrome.com/extensions/faq options right click icon => options https://developer.chrome.com/extensions/options demo…
Jira & SVN & Chrome extensions Plugins SVN & Jira Plugins ok selector bug document.querySelector(`[id="description-val"]`).firstElementChild.innerText.trim(); !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!…
chrome extensions & debug debug background.js debug popup.js debug content_script.js chrome.storage chrome.storage.sync.get bug // array OK chrome.storage.sync.get([ "jira_str", "jira_obj" ], function(items) { console.log(`chrome.s…
i18n是internationalization 的简写,这里将讨论软件国际化的问题.熟悉软件国际化的朋友应该知道,软件国际化要求,页面中所有用户可见的字符串都必须置于资源属性文件中.资源属性文件中的资源是形如“key=value”的键值对,一行一个.其中key为资源的标识符,用于HTML页面中,根据当前页面的Locale确定要使用的资源.value是资源的值,不同的Locale对应的资源值不同,在资源文件中统一用Unicode编码. 通过chrome.i18n API和相关的资源配置文件,可…
chrome.events中定义了一些常见的事件类型,可以供Chrome浏览器扩展程序发出对应的事件对象. 对于关注的事件,首先要通过addListener()在对应的事件上注册监听器,示例如下: chrome.alarms.onAlarm.addListener(function(alarm) { appendToLog('alarms.onAlarm --' + ' name: ' + alarm.name + ' scheduledTime: ' + alarm.scheduledTime…
除了Chrome浏览器支持的chrome.* API之外,Chrome浏览器扩展还可以使用Chrome浏览器为Web页面或Chrome app提供的APIs.对于Chrome浏览器2支持的API,还可以绑定第三方API库到Chrome浏览器扩展程序. Chrome浏览器扩展程序可以使用的API包括: 标准JavaScript API,即Web应用中常用的JavaScript核心API和DOM API XMLHttpRequest API HTML5 API WebKit API,特别是WebKi…
Chrome浏览器扩展程序通过chrome.alarms.* API,可以制定计划周期性地执行代码,或在指定时间执行代码. 要使用chrome.alarms.* API,首先需要在manifest.json文件中声明alarms授权如下: { "permissions": [ "alarms" ], } chrome.alarms.Alarm对象的属性如下: 属性名 类型 必选/可选 注释 name string 必选 alarm的名字 scheduledTime…
Best Chrome Extensions chrome://extensions/ # ghelper chrome-extension://cieikaeocafmceoapfogpffaalkncpkc/settings.html https://github.com/xgqfrms/chrome/issues/3…
Chrome Command API 参考 Chrome开发工具已经强大得令人发指了,除了可通过UI操作的各种功能外,还提供了基于控制台的命令行方法,极大地方便了开发调试.现在就来领略下Chrome Command API 的风骚. $_ 返回控制台最近计算的表达式的值. > 2+ 2 4 > $_ 4 > $0 - $4 返回在Elements面板最近选择的5个DOM元素(或者Profiles面板里选择的JavaScript对象). $选择器 有木有很熟悉?对了,jQuery也用这个.…
32down voteaccepted Yes, a Chrome Extension "content script" can run in all iframes (that are initially in the HTML when the page is loaded). In order to have the content script run in all frames you need to configure it to do so in the Chrome E…