Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ desga2 Not working on tabs for me. I just checked and Javascript is enabled. I do not have noscript. Is there anything else that would prevent the injected JS from working? You are seeing the text on the tab change to "Private"? I only see the window bar at the top, the URL bar and the taskbar change to private. I have put back in your code for Javascript. Here is the current version which now include Acel Key to toggle on and off. [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # # ---------- PrivateTitle.kmm # ---------- K-Meleon Macro Language to halt display of page titles --------------- # ---------- also halts display of info in the URLBAR. HAS NO EFFECT ON TABS! # # Dependencies : main.kmm # Resources : # Preferences : k-meleon_PrivateTitle_use # Version : 0.2 2008-12-02 # -------------------------------------------------------------------------------- PrivateTitle_ToggleUse{ getpref( BOOL , "k-meleon_PrivateTitle_use" )==true ? &_PrivateTitle_Set_Off : &_PrivateTitle_Set_On ; rebuildmenu($_PrivateTitle_Popm); } # - - - - PRIVATE - - - - _PrivateTitle_Set_On{ # checkmark value for the on menu; menuchecked=getpref( BOOL , "k-meleon_PrivateTitle_use" )==true; # set the userpref k-meleon_PrivateTitle_use to true; setpref( BOOL , "k-meleon_PrivateTitle_use", true ); } _PrivateTitle_Set_Off{ # checkmark value for the off menu; menuchecked=getpref( BOOL , "k-meleon_PrivateTitle_use" )==false; # set the userpref k-meleon PrivateTitle_use to false; setpref( BOOL , "k-meleon_PrivateTitle_use", false ); } _PrivateTitle_TitleBlank{ $_PrivateTitle_Use = getpref( BOOL , "k-meleon_PrivateTitle_use" ); $_PrivateTitle_Use ==true ? &_PrivateTitle_TitleWrite: 0; } _PrivateTitle_TitleWrite{ $TITLE = "Private" ; $URLBAR = "Private" ; $_JS_private="document.title='Private';"; injectJS($_JS_private); } _PrivateTitle_SetAccels{ setaccel("CTRL SHIFT p", "macros(PrivateTitle_ToggleUse)"); } _PrivateTitle_ModMenu{ $_PrivateTitle_Popm = "Private Title"; setmenu("&Tools",popup,$_PrivateTitle_Popm,Misc); &_PrivateTitle_ModMenuP; } _PrivateTitle_ModMenuP{ setmenu($_PrivateTitle_Popm,macro,"ON" ,_PrivateTitle_Set_On,0); setmenu($_PrivateTitle_Popm,macro,"OFF",_PrivateTitle_Set_Off,1); setmenu($_PrivateTitle_Popm,separator,2); rebuildmenu($_PrivateTitle_Popm); } $OnLoad=$OnLoad."_PrivateTitle_TitleBlank;"; $OnInit=$OnInit."_PrivateTitle_ModMenu;"; $OnInit=$OnInit."_PrivateTitle_SetAccels;"; $macroModules=$macroModules."PrivateTitle;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development