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=desga2] You can do this last with a macro: [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- Only Youtube videos without JS ---------------------------- # # Dependencies : - # Resources : - # Preferences : - # # ---------------------------------------------------------------------- Only_video{ $_video_addres=""; $_video_addres=gsub("watch?","",$LinkURL); $_video_addres=gsub("=","/",$_video_addres); opennew($_video_addres); } # ----- PRIVATE _Only_video_BuildMenu{ # Link Popup context menu $__m=_("Open Only &Video"); setmenu(LinkOpenExternal,macro,$__m,Only_video); } $OnInit=$OnInit."_Only_video_BuildMenu;"; # ----------------------------------------------------------------------- $macroModules=$macroModules."Only_video;"; [/code] P.S; Fred, when write code rememember the semicolon (;) at the end of lines and use [ code ] [ /code ] tags. And remember that you can use setmenu() in macros to define menus intead of modify 'menus.cfg' file. Thanks.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development