akkunchoi / autofill-chrome-extension Goto Github PK
View Code? Open in Web Editor NEWThis chrome extension fills out forms automatically.
Home Page: http://akkunchoi.github.com/Autofill-chrome-extension
This chrome extension fills out forms automatically.
Home Page: http://akkunchoi.github.com/Autofill-chrome-extension
Hi,
is it possible to autofill fields after document ready?
I tried to use this code in run.js
document.onreadystatechange = function () {
if (document.readyState == 'complete') {
// optionsで保存したlocalStorageにアクセス
chrome.extension.sendRequest({
"action": "getOptions",
"args": []
}, function(response){
var queries = {}
for (var k in response){
if (k.match(/^(query|url|value)-(\d+)/)){
var type = RegExp.$1;
var id = RegExp.$2;
queries[id] = queries[id] || {}
queries[id][type] = response[k];
}
};
for (id in queries){
var q = queries[id]
if (document.location.href.match(new RegExp(q['url']))){
$(q['query']).val(q['value']);
}
}
});
}
}
But Chrome reports Uncaught SyntaxError: Unexpected token ILLEGAL
on the last line. I tried minimal example without your original code and it's the same. Maybe Chrome doesn't allow such handlers in the run.js script?
Hello,
I have some fields like
<input name="coloredvariables[Color][values][Cardinal][color]" type="text" class="wcvaattributecolorselect wp-color-picker" value="grey" data-default-color="#ffffff" style="display: block;">
<input name="coloredvariables[Color][values][Charcoal][color]" type="text" class="wcvaattributecolorselect wp-color-picker" value="grey" data-default-color="#ffffff" style="display: block;">
How can i configure the autofill for this?
Can it be used for selects? Not found
Hi
I am willing to customize this extension as per my need I am willing to achieve following task
Your help is greatly appreciated
Thanks
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.