Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
Feature request: add an option to clear Forms history
Posted by: rodocop
Date: June 06, 2015 11:31AM

Have added a ticket on the tracker devoted to this request.

My russian comrades ask - how to clear saved forms data but I found that no option is present in KM for that. (Firefox gives such a possibility from Clear Data options).

The only workaround that I was able to suggest - was to edit pref
browser.formfill.expire_days
changing default 180 to 0 or 1 for not storing data at all or keeping it only for current day.

It would be great to have such an option added to great KM's privacy options.

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: siria
Date: June 06, 2015 04:11PM

Guess Dorians job ;-)

For curiosity researched a bit too, but only got as far as this:
http://kb.mozillazine.org/Deleting_autocomplete_entries

At least single entries can be deleted most easily via "Del" key!

And there's a very sophisticated FF-addon with tons of options:
https://addons.mozilla.org/de/firefox/addon/form-history-control

Looks like by a basic KM macro could only use the pref you gave, which deletes everything, and will only take effect after next restart :-/
So as long as there's no other way, a pref-toggle-macro could be a crude workaround, with the above catches. It could be set to remember the previous value in a new pref, and use "0 days" (or whatever is input) only at startup, then afterwards restore the old value. Better than nothing, but oh well...

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: rodocop
Date: June 06, 2015 05:10PM

I might be able to create this by myself, but I cannot write macro which uses user input.

I need at least one working example to get into.

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: siria
Date: June 06, 2015 06:02PM

Cool - have fun grinning smiley

Found an INT-example in one of my never-finished macros, may look more complicated than necessary but contains some optional proof-checks.
Of course, any input only makes sense if the user shall choose the max-days-limit with it (=Delete all entries older than x days)

MenP_TabsMultiLine{
macroinfo="If too many tabs, show more rows. Set width in F2>Tabbed Browsing";
$_old=getpref(INT,"kmeleon.tabs.multiline");
$_old=="0" ? setpref(INT,"kmeleon.tabs.multiline","1") :0;
$_new=prompt("Set MAX number of lines for tab bar (default 1)","PREF: kmeleon.tabs.multiline",$_old=="0"?"1":$_old);
if ($_new>"0" and $_new<"9") {
setpref(INT,"kmeleon.tabs.multiline",$_new);
statusbar("Tab bar now max ".$_new." lines");
}
$_new="" ; $_old="" ;
}


I'd try if $OnStartup works to restore the bak-pref, then immediately that bak again (delpref)...
Or if that's too early, try $OnLoadOnce... But that tends to get messed by a few other macros, overwriting that string instead of using it incrementally like all other strings. And as we know, everyone keeps copying other macros as template, perpetuing mistakes ;-)



Edited 1 time(s). Last edit at 06/06/2015 06:06PM by siria.

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: siria
Date: June 06, 2015 08:28PM

Just for fun, perhaps a few syntax basics, for everyone interested, now or in future stumbling across here :cool:

x==y?a:b means: "If x=y then do a else do b" (and 0 means: do nothing).
z= x==y?a:b means: "If x=y then z=a else z=b"
If a number-pref doesn't exist at all, getpref returns "0".

Real examples:
$_old=="0" ? setpref(INT,"kmeleon.tabs.multiline","1") :0;
=> if the number-pref was 0 *or* didn't exist yet, set it now to 1, otherwise do nothing (leave as is)

$_new=prompt("Set MAX number of lines for tab bar (default 1)","PREF: kmeleon.tabs.multiline",$_old=="0"?"1":$_old);
=> Ask user for input, with info-line "Set MAX..." and box Title "PREF:..." (both free text)
The suggested value in the input field shall be the same as before.
If that didn't exist yet, suggest "1"

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: desga2
Date: June 06, 2015 08:38PM

Hi,
Wait a little friends, no macro is nedded, I can add this options to Preference panel.
I think this options must be setting in Preference panel and add one option to clear forms in Tools -> Privacy -> Clear Data, when I know how to delete it.

This is how to in Firefox:
https://support.mozilla.org/en-US/kb/control-whether-firefox-automatically-fills-forms

I'm working on it.

Greetings.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 06/06/2015 08:52PM by desga2.

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: siria
Date: June 06, 2015 09:07PM

Great desga! smiling smiley
Am just not sure if it's that simple, since those clear-commands are all plugin-commands, and clearform isn't listed for it yet.

And meanwhile also noticed, slightly shocked:
There are absolutely NO options anymore how much history to store?
Only keep ALL forever or clear ALL now? :O
That's a major bummer, no way...

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: JohnHell
Date: June 06, 2015 10:16PM

Quote
siria
And meanwhile also noticed, slightly shocked:
There are absolutely NO options anymore how much history to store?
Only keep ALL forever or clear ALL now? :O
That's a major bummer, no way...


Explanation:
http://kmeleonbrowser.org/forum/read.php?1,127500,127500#msg-127500

In other words, now is impossible to set a specific amount of time. And as the history is placed in places.sqlite, isn't all as easy as it was with history.dat in the past (places is holder of more preferences).

In the end I set these preferences to 20000, what, in my personal case, is between 2 and 3 months. For others could be just only one, and others maybe 6 months.
places.history.expiration.max_pages
places.history.expiration.transient_current_max_pages

Let users to set time or number of entries wouldn't represent a realistic conception of what is and what isn't stored.



Edited 1 time(s). Last edit at 06/06/2015 10:17PM by JohnHell.

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: rodocop
Date: June 06, 2015 10:24PM

desga,

this is exactly what I want to get! Happy to read this from you!
¡Muchos gracias!

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: desga2
Date: June 07, 2015 11:21AM

Hi,

Feature added in Development forum:
http://kmeleonbrowser.org/forum/read.php?2,133951


Greetings.

K-Meleon in Spanish

Options: ReplyQuote
Re: Feature request: add an option to clear Forms history
Posted by: Xavi
Date: September 08, 2015 02:43PM

I reached this thread searching how to stop k-meleon from storing usernames.

After reading your contribution I find out that my wish can be easyly fulfilled. Just edit pref

browser.formfill.enable

changing value true to false.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.