Just curious, did you try using the method as @paulirish outlined in this comment: https://github.com/bgrins/devtools-snippets/issues/28#issuecomment-27455522 - just setting the localStorage `scriptSnippets` item?  Though it is impressive that you reverse engineered the whole devtools snippet storage API.