Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] [b]WHOW - it WORKS!! Thank you! :-))[/b] Tried it with youtube, object permissions set to 2 (=block), and in fact no video there, with or without javascript and flashblock. If javascript is on, flashblock produces the placeholders as usual, but when clicking it the placeholder simply vanishes, as if javascript were off. Of course that "javascriptless flash-object-blocker" would need a better interface and placeholders, but it seems the structure of permissions etc. around that hostfile is pretty much similar for images, cookies, popups, as in Tools/Privacy/Permissions... So perhaps it's not overly difficult to copy and adapt those also for embedded "objects"?? *hope* I have no clue of programming or macros, but can compare and copy 8-) So I did an explorer search for image permissions, main.kmm came up, I copied the file to main2.kmm and then deleted everything in it that didn't seem related to image toggling - just wild guessing of course ;-) Then replaced the word "image" with "object". Didn't work yet, so tried with renaming the buildmenu- and syncbuttons-names with a "2" at the end, and voila - It works!! *shock* Now there's actually an entry for [b]"Block Objects" in the privacy menu[/b], along with all the other block options, and the checkmark works too! ------------------ macro main2.kmm ---------------------------- [color=blue]# ----- Accessibility/Privacy/Security $pref_Objects="permissions.default.object"; pref_ToggleObjects{ macroinfo=_("Toggle Object loading"); menuchecked=(getpref(INT,$pref_Objects)==2); togglepref(INT,$pref_Objects,1,2); &_pref_SyncButtons; statusbar(sub("%s",getpref(INT,$pref_Objects)==2?$off:$on,_("Object loading %s"))); } # ----- PRIVATE # Menu Integration _pref_BuildMenu2{ setmenu(_Privacy_Settings,macro,"Block &Objects",pref_ToggleObjects); } $OnInit=$OnInit."_pref_BuildMenu2;"; # Toolbar Integration _pref_SyncButtons2{ pluginmsg(toolbars,CheckButton,&Privacy Bar,macros(pref_ToggleObjects),(getpref(INT,$pref_Objects)==1?0:1)); $OnLoad=$OnLoad."_pref_SyncButtons2;"; $OnStartup=$OnStartup."_pref_SyncButtons2;";[/color] ---------------------------------------------------------- Of course I would also need a [b]privbar-button[/b], and added this: ---------------------- added to toolbar.cgf in skin folder -------------------- [color=blue] Objects{ macros(pref_ToggleObjects)|&Privacy Block Objects privhot.bmp[17] privcold.bmp[17] }[/color] ------------------------------------------------------------------- That button works partly: The toggle function is okay, as can be checked in about:config, but that button is always green, no matter the setting :P I suppose there are some people here who can repair this... 8-) But there's also the problem of [b]placeholders[/b], like with images, there's some hint needed that there's a video or something existing. Like with the native "Flashblock", which alas needs javascript *sigh* Basically status quo for me, since personally javascript is off by default. So don't see video-placeholders anyway, but it bugs me having to switch javascript on just to see them, like on youtube. Or rather when I merely want to read the video descriptions there, not even watch the movie, but even this description needs already javascript :-( Well, I realize this part has nothing really to do with videos ;-)[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development