Extensions :  K-Meleon Forum
All about K-Meleon extensions. 
update numbers in prefs list (search engines, useragents) v1.1
Posted by: siria
Date: October 21, 2016 11:14PM

Have a long list of SEARCH ENGINGES or USERAGENTS, stored in a separate *.js file?
Occasionally add a new entry or move old ones up and down, but now the pref numbers are a mess and manually overwriting 40 numbers each time too tedious?

- Open your re-arranged prefs list file (*.js) in K-Meleon (looks like text page)
- Click Edit > Prefs List: update numbers...
==> macro reads page, counts new numbers top to bottom, copies new list to Clipboard
(if clipboard fails, modern KM versions (75+) write it as txt-file in a path defined in kmm)
- Check if it's okay, then paste new list manually into your file again (keep a backup)
- Restart browser.

Macro sortprefnumbers:

For K-Meleon 1.5.4 or newer.
The setclipboard command may not fully work in (beta?) KM versions.
If only pasting doesn't work, try other encoding settings for the file and/or the browser.

Thanks to foliator for a little example list smiling smiley
(lists in the default-prefs folder usually contain only "prefs" not "user_prefs", but may be different in profile folders)

Copy attached kmm file into macros folder and restart browser.

Delete kmm file again. Settings will stay.

(UPDATE v1.1: little bugfix)

Edited 3 time(s). Last edit at 10/22/2016 07:31AM by siria.

Attachments: sortprefnumbers_screen.png (20 KB)   sortprefnumbers.kmm (6 KB)  
Options: ReplyQuote
Re: update numbers in prefs list (search engines, useragents)
Posted by: rodocop
Date: October 22, 2016 12:37AM

You real goddess of extensibility!

Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)

Options: ReplyQuote
Re: update numbers in prefs list (search engines, useragents)
Posted by: siria
Date: October 22, 2016 07:34AM

LOL! Thanx grinning smiley But already noticed a little glitch:
when a new tab is opened and the file dragged insided with the mouse, the focus is automatically in the urlbar. That breaks the auto-selection of page content. Anyone know how to jump inside page by macro?
What worries me: how many older macros has that already broken and never noticed?!

UPDATED to version 1.1 above
(for now have only added an info-alert to click inside page manually)

Edited 1 time(s). Last edit at 10/22/2016 07:35AM by siria.

Options: ReplyQuote

K-Meleon forum is powered by Phorum.