disjukr / activate-power-mode Goto Github PK
View Code? Open in Web Editor NEWActivate POWER MODE anywhere
Home Page: http://0xabcdef.com/activate-power-mode/
Activate POWER MODE anywhere
Home Page: http://0xabcdef.com/activate-power-mode/
After running bookmarklet, there is a white canvas overlay on developer.chrome.com that hides the website.
Steps to reproduce:
Add bookmarklet from http://0xabcdef.com/activate-power-mode/ as a bookmark
Go to https://developer.chrome.com/
Click bookmarklet
Tested on Win10, Chrome 86.0.4240.198
The caret position does not correct when IME composition is on going on Chrome browser.
PowerMode expects the value InputElement.selectionStart
reports caret position. but, Chrome reports composition starting postion. Othre browser(Firefox) reports expected postion.
But, selectionEnd always reports correct caret position. Consider to change the value read from InputElement.selectionEnd
.
I think a shake setting item is necessary.
Many people don't want that.
Should be feasible to use contenteditable
as well, but setting caret position is a bit harder.
I'd like to have this for all sites.
I have activate-power-mode on a webpage. I see that it's using cpu constantly even when not in use.
chrome devtools show that it's main usage is from:
function loop() {
requestAnimationFrame(loop);
any idea how to prevent that from looping while no typing is going on?
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.