Last active
August 29, 2015 14:01
-
-
Save agentlame/5700ebe676c98deb3030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reset Toolbox | |
// @namespace reddit.com/r/toolbox | |
// @description enter something useful | |
// @include http://*.reddit.com/r/tb_reset/comments/26jwfh/click_here_to_reset_all_your_toolbox_settings/ | |
// @version 1.0 | |
// ==/UserScript== | |
(function() { | |
Object.keys(localStorage) | |
.forEach(function(key){ | |
if (/^(Toolbox.)/.test(key)) { | |
localStorage.removeItem(key); | |
} | |
}); | |
window.location.href = "http://www.reddit.com/r/tb_reset/comments/26jwpl/your_toolbox_settings_have_been_reset/" | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment