General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
injectCSS problem
Posted by: disrupted
Date: March 25, 2009 05:24PM

i can't make that command work no matter what, prompt for file or adding the style directly after injectCSS("body{background-color:#000000;}") -importnat! or not important! doesn't make the sytlesheet override the page.. i was wondering is this macro command still supported?

test macro:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ------------------------------------------------
#
# Dependencies : - main.kmm
# Resources : -
# Preferences : -
#
# ------------------------------------------------

ducker{
$ext="css"; &getExtensionHandler;
injectCSS(readfile(promptforfile("",$doctype,"*.css")));
}

_ducker_BuildMenu{
setmenu(DocumentSave,macro,"fuck test cxx",ducker);
}

$OnInit=$OnInit."_ducker_BuildMenu;";

#-----------------------------------------------------------------------------------------
$macroModules=$macroModules."ducker;";


Options: ReplyQuote
Re: injectCSS problem
Posted by: disrupted
Date: March 25, 2009 08:36PM

update: injectCSS works in 1.1.x but not in 1.5.2(with default profile)
bug or command removed from macro language?

this macro works in 1.1.x and injected css overrides as expected..but it doesn't work in 1.5.2..

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------css dshit----------------------------------------------------------


dshit{
$ext="css"; &getExtensionHandler;
injectCSS(readfile(promptforfile("",$doctype,"*.css")));
}


dshit_BuildMenu{
setmenu(DocumentSave,inline,dshit_page);
setmenu(dshit_page,macro,"testcss",dshit);
}

$OnInit=$OnInit."dshit_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."dshit;";




maybe if you can test and injectcss command wasn't supposed to be removed then it should be reported as a bug



Options: ReplyQuote
Re: injectCSS problem
Posted by: desga2
Date: March 25, 2009 09:17PM

You are right disrupted. This seems a bug, this macro function is lost since 1.5.0 version.

I tested macro work in 1.1.5 and 1.1.6.
NOT work in 1.5.0, 1.5.1, and 1.5.2.

Please report the bug, thanks.

P.S. You could modify the macro to avoid error when cancel button is pressed in prompt for file dialog.

K-Meleon in Spanish

Options: ReplyQuote
Re: injectCSS problem
Posted by: disrupted(unlogged)
Date: March 25, 2009 09:24PM

thanks so much desga, i tested too on 1.5.0 and 5.1 and it doesn't work..however works with very first alpha? .. i think it's related to those bugs.. when they got 'fixed' they killed injectCSS sad smiley

http://www.ohloh.net/p/127/commits/26633775
http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=956

i'm submitting it as a bug.. i think we need a 1.5.3 build before migrating to 1.9. an official gecko 1.8.21 update plus fix couple of bugs and restore injectcss and fix for mouse scroll for johnhell.

Options: ReplyQuote
Re: injectCSS problem
Posted by: desga2
Date: April 05, 2009 10:43PM

@ disrupted:

Dorian fixed it in 1.5.3, see your Bug # 1094.

K-Meleon in Spanish

Options: ReplyQuote
Re: injectCSS problem
Posted by: disrupted
Date: April 06, 2009 12:03PM

thanks desga and thank you dorian.. i got the bug watcher emails but i've received like 20 of them at once so was too lazy to open them.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.