legs: add bulk import API for Greasemonkey script

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>