Skip to content

Instantly share code, notes, and snippets.

View Remonell's full-sized avatar
🏠
Working from home

Remonell

🏠
Working from home
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) {