scripts-greasemonkey: fix_input_dark_theme.user.js, improve log message
This commit is contained in:
parent
7acf613c58
commit
f2c9969b12
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user