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

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 02:31PM 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 07: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: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75.1 Pro: Download portable =//= Discuss on forum

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

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 02:35PM by siria.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.