Skip to content

Instantly share code, notes, and snippets.

@luizjacomn
Last active August 11, 2020 20:07
Show Gist options
  • Save luizjacomn/df4e20d0b045b643876711c108ab855d to your computer and use it in GitHub Desktop.
Save luizjacomn/df4e20d0b045b643876711c108ab855d to your computer and use it in GitHub Desktop.
Manipular urls de inicialização do firefox
// menu > opções > Página inicial e novas janelas > URLs personalizadas > Copiar o conteúdo do campo (caso exista)
void main() {
String fromFirefox = '<from-firefox>';
String token = '|';
List<String> urls = fromFirefox.split(token);
urls.add('<new-url>');
urls.insert(<at-position>, '<new-url>');
urls.forEach((url) => print(url));
print('\n');
print(urls.join(token));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment