MCPcopy Index your code
hub / github.com/hoothin/UserScripts / convertFVars2Obj

Function convertFVars2Obj

FlashViewer-HTML5 Video/flashViewer.user.js:3408–3427  ·  view source on GitHub ↗
(fVars)

Source from the content-addressed store, hash-verified

3406 };
3407
3408 function convertFVars2Obj(fVars) {
3409 var ret = {};
3410
3411 fVars.split('&').forEach(function (item) {
3412 if (!item) return;
3413
3414 var index = item.indexOf('=');
3415 if (index == -1) {
3416 if (item !=' ') {
3417 ret[item] = '';
3418 };
3419 } else {
3420 if (index > 0) {
3421 ret[item.slice(0, index)] = item.slice(index + 1);
3422 };
3423 };
3424 });
3425
3426 return ret;
3427 };
3428
3429 var src;
3430 var fVars;

Callers 1

contentScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected