Great to hear that executeScript | document.cookie = \"username=John Doe\";"
usually works.
But executeScript_Sandbox blocks all website access of the Javascript to avoid content security errors. So no surprise that it does not work as workaround for Github.
Can you maybe manually copy the cookie text file to the browser cache? Does this extension work with Github?