Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] And another... :cool: [b][color=red]Override webmaster settings for color of visited links[/color][/b]. KM does have a pref for visited links, just type "about:config" and look for "color". It's just that this is only used if a webmaster has not defined an own color, otherwise he has priority. There is also a setting in Preferences to enforce own colors, but that goes for ALL text styles, not just visited links. Now this macro will enforce your own color for visited links [color=red][b]if you click the button, and remains active until you click it again, or until the browser is closed[/b][/color]. Like the other CSS macro above, you can take this as template for your own modifications, the CSS code in the injectCSS-line can be what you wish, it just must not have any line breaks inside. Didn't try a big one, but in theory that's no prob, just like bookmarklets CSS can be one long string with glued-together lines ;-) You can even inject whole [b][color=red]external css-files[/color][/b], that's probably better for bigger ones. Example: injectCSS(readfile(getfolder(RootFolder)."\\styles\\stylebtn_cust1.css)); If you like this, insert it into the macro in first posting, and copy the setmenu line to the others at the bottom (without the comments at beginning of course): [color=blue]############## PAGE STYLE ################ # Override webmaster settings for color of visited links. Setting remains until you click again or browser restart. # Set here the default at browser start (and color is below in injectCSS-line): $_mini_csslinkv="false"; minimacros_css_linksvisited_set{ macroinfo="Display visited links in my color (via injectCSS). Color and startup setting in kmm-file."; menuchecked=($_mini_csslinkv=="true"); if ($_mini_csslinkv=="false") { $_mini_csslinkv="true"; &minimacros_css_linksvisited; $OnLoad=$OnLoad."minimacros_css_linksvisited;";} else { $_mini_csslinkv="false"; $OnLoad=sub("minimacros_css_linksvisited;","",$OnLoad);} } minimacros_css_linksvisited{ injectCSS("a:visited , a:visited * {color: purple !important;}"); }[/color] [color=green]# in menu "Page Properties": [b]setmenu[/b]("Page Pro&perties",macro,"Visited links in my color",minimacros_css_linksvisited_set,-1); # in menu "View": [b]setmenu[/b]("Page &Properties",macro,"Visited links in my color",minimacros_css_linksvisited_set,-1); # in menu "Stylesheets" if exists: [b]setmenu[/b]("Stylesheets",macro,"Visited links in my color",minimacros_css_linksvisited_set,-1); # [b]button[/b]-command in toolbars.cfg: macros(minimacros_css_linksvisited_set) [/color] #-----[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development