General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] Found a test page :cool: Am testing via macro javascriptia, to avoid a hundred restarts. And I need to split JS code into lines, or don't understand even what little I understand of it. Anyway, this way your code actually works in this very forum, but only if I [b]add "kmbody();" at the end[/b] of it. JS-block doesn't seem to matter. But not sure if it works on ALL pages... At first I thought this were something for frame pages, and took jujulands site for testing. And there it does nothing. But this could be restriction of javascriptia, can't remember if it was coded for frame pages... [quote=JohnHell]injectJS("function kmbody(){var body; var num = 0; var cuantos; body = document.getElementsByTagName('*'); cuantos = document.getElementsByTagName('*').length; while(num<cuantos){body[num].style.backgroundImage = 'url(none)'; body[num].style.backgroundColor = '#858585'; body[num].style.color = '#000000'; if(body[num].href){body[num].style.backgroundColor = '#808090'} num++;}}");[/quote] Change the ending to: num++;}}kmbody();");[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development