ecmadao / cliper-chrome Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] cliper chrome extension
Home Page: https://chrome.google.com/webstore/detail/cliper/biijehenaabpogldekblkfgooifmagbi
License: Apache License 2.0
[UNMAINTAINED] cliper chrome extension
Home Page: https://chrome.google.com/webstore/detail/cliper/biijehenaabpogldekblkfgooifmagbi
License: Apache License 2.0
怀疑是ES6 代码 转成 ES5 后,background.js里Chrome的事件监听函数不在顶层了,所以重启浏览器后,相关的事件(contextMenus.create等)都不会重新注册了.
Register to receive any events your extension is interested in each time the event page is loaded. The event page will be loaded once for each new version of your extension. After that it will only be loaded to deliver events you have registered for. This generally means that your event listeners should be added at the top level scope of the event page, otherwise they may not be available when the event page reloads.
把
chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
type: 'normal',
title: 'save page',
id: 'save_page'
});
chrome.contextMenus.create({
type: 'normal',
title: 'save selection',
id: 'save_selection',
contexts: ['selection']
});
});
chrome.contextMenus.onClicked.addListener(this._handleMenuClick);
直接写在initial()里试试?
cliper.com.cn上注册密码是8-16,但是插件密码要大于8位?
我的密码恰好8位的话是否会无法登陆?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.