Skip to content

Instantly share code, notes, and snippets.

View Grossdm's full-sized avatar
🇺🇸
How should I know?

grossdm Grossdm

🇺🇸
How should I know?
  • Milky Way, Earth, Above Sea Level
View GitHub Profile
@Grossdm
Grossdm / mega.js
Created September 8, 2018 22:25 — forked from LI-NA/mega.js
MEGA Chrome extension was HACKED. Please remove it NOW!
// This is Chrome Mega extension script that hacked!!!
// Version is 3.39.4_0.
// You can check it from your comptuer too.
// %AppData%\Local\Google\Chrome\User Data\Default\Extensions\bigefpfhnfcobdlfbedofhhaibnlghod\3.39.4_0
// Original mega.js is here. https://github.com/meganz/chrome-extension/blob/master/mega.js
function getParameterByName(name, data) {
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(data);
if (!results) return '';