scripts-greasemonkey: fix_input_dark_theme.user.js, improve log message

This commit is contained in:
Jesús 2020-07-05 16:43:19 -05:00
parent 7acf613c58
commit f2c9969b12
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -13,18 +13,22 @@
function fixForMyDarkTheme(){
let i, inputs;
const consoleCSS = 'background: #000; color: #00FF00; padding: 0px 7px; border: 1px solid #00FF00; line-height: 16px;';
const name = GM_info.script.name;
const version = GM_info.script.version;
const log = (...args) => console.log('%cUSERSCRIPT | %s %s | %s', consoleCSS, name, version, ...args);
inputs = document.getElementsByTagName('input');
log('successfully initialized');
for (i = 0; i < inputs.length; i++) {
let i, inputs;
inputs = document.getElementsByTagName('input');
inputs[i].style.color='inherit';
}
for (i = 0; i < inputs.length; i++) {
inputs[i].style.color='inherit';
log('fixed input');
}
}
fixForMyDarkTheme();
// ohm ... m(-_-)m ... thanks