Skip to content

Instantly share code, notes, and snippets.

View michaelts1's full-sized avatar

Michael Tsaban michaelts1

  • Israel
  • 01:23 (UTC +03:00)
View GitHub Profile
@calraith
calraith / extract_tampermonkey_scripts.ps1
Created May 23, 2018 03:20
This is meant to be a PowerShell alternative to https://gist.github.com/derjanb/9f6c10168e63c3dc3cf0 for Windows users unable to compile the leveldb Python module.
# Copy your Tampermonkey storage.js into the same directory as this script.
# It'll extract the user scripts from storage.js and write them as .user.js files
# in the current working directory.
add-type -as System.Web.Extensions
$JSON = new-object Web.Script.Serialization.JavaScriptSerializer
$obj = $JSON.DeserializeObject((gc storage.js))
foreach ($key in $obj.keys) {
foreach ($val in $obj[$key].value) {