# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # #--------------- ExExceptions - Permissions Manager v4 (by Site) ----------- # Manager to black-or whitelist single websites to use javascript, objects (embedded video), iFrames (=subdocument), etc # INFO on types: http://kb.mozillazine.org/Hostperm.1 # (the important MEDIA type is missing yet in the manager!) # # Firefox Addon by Nag. MATSUI: https://addons.mozilla.org/en-us/firefox/addon/exexceptions/ # screenshots : https://addons.cdn.mozilla.net/img/uploads/previews/full/21/21079.png # https://addons.cdn.mozilla.net/img/uploads/previews/full/21/21080.png # # Version : v4 / 2015-10-15 / v4 by siria, v1 by Merlin (ExExPermissions) # Forum: http://kmeleonbrowser.org/forum/read.php?9,124407 # Menu: Tools > Privacy > Permissions ExExceptions (or right-click on page, on frame, on link) # Optional Button: "macro_ExExceptionsKM.bmp" in skins/default folder, for toolbar "ExExceptions" # K-Meleon version: K-Meleon 1.6 or newer # Preferences : extensions.exexceptions.full , extensions.exexceptions.URL # Resources for KM1.6/chrome/exexcept.jar , exexcept.manifest # Resources for KM75/browser/extensions/{145e79b6-6c19-4b9c-915a-45c90a2f06a5}.xpi # # KM75: the auto-filling of the URL field only works with a modified KM-xpi (fix by Naruman) # # Related macros/extensions: # *PermDefs* creates a menu to toggle DEFAULT settings (kmeleonbrowser.org/forum/read.php?9,134990 ) # *Priv3Buttons* creates a toolbar to toggle some DEFAULT settings (kmeleonbrowser.org/forum/read.php?9,135558 ) ################################################ # Create Button: disable next line with comment # sign if you do NOT want it: $OnSetup=$OnSetup."_ExExceptions_button;"; ExExceptions{ macroinfo="Edit Site Permissions by editing \"permissions.sqlite\" with ExExceptions"; $_x=hostname($URL); $ARG == "link" ? $_x=hostname($LinkURL) : 0; $ARG == "frame" ? $_x=hostname($FrameURL) : 0; $_x=="console2" ? $_x="" : 0; setpref(STRING,"extensions.exexceptions.URL",$_x); $OpenURL="chrome://exexcept/content/exexcept.xul"; # ====> prefer to open in a tab? use "&OpenURL_InNew" &OpenURL_InNewWindow; } _ExExceptions_button{ $_toolbar= "ExExceptions"; $_buttonname= "ExExceptions"; $_command= "macros(ExExceptions(page))"; $_tooltip= "Set EXCEPTIONS for single sites: edit permissions.sqlite"; $_right_menu=_("P&ermissions"); $_icons= "macro_ExExceptionsKM.bmp[0]" ; $_size= "15,15"; # pluginmsg(toolbars,"AddToolbar",$_toolbar.",".$_size); pluginmsg(toolbars,"AddButton",$_toolbar.",".$_buttonname.",".$_command.",".$_right_menu.",".$_tooltip.",".$_size.",".$_icons); # $_toolbar=""; $_icons=""; $_size=""; $_right_menu=""; $_buttonname=""; $_tooltip=""; $_command=""; } _ExExceptions_BuildMenu{ setmenu("&Privacy",macro,"Permissions ExExceptions","ExExceptions","P&ermissions"); setmenu(Document,macro,"ExExceptions (Page)","ExExceptions(page)",-1); setmenu("&Frame",macro,"ExExceptions (Frame)","ExExceptions(frame)",-1); setmenu(LinkOpenExternal,macro,"ExExceptions (Link)","ExExceptions(link)",-1); } # -------------------------------------- $OnInit=$OnInit."_ExExceptions_BuildMenu;"; $macroModules=$macroModules."ExExceptions;";