Extensions :  K-Meleon Web Browser 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)

INSTALLATION:
Copy attached kmm file into macros folder and restart browser.

UN-installation:
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!


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.