I have a couple very short + simple extensions that I can't install to chrome. I am given the following error about the 'manifest version', so I assume that the problem is that it is outdated, I haven't any experience in chrome extensions/javascript so I couldn't fix them myself as I would normally try to do, these were written for me by a friend a while back.
Could someone let me know how I should correct these files?
Error:
The 'manifest_version' key must be present and set to 2 (without quotes). See developer.chrome.com/extensions/manifestVersion.html for details.
Extension files:
manifest.json for extension 1:
{
"content_scripts": [ {
"exclude_globs": [ ],
"include_globs": [ "*slavehack*index2.php\\?page=internet&openFolder=&var3=files&aktie=*&*=*" ],
"js": [ "script.js" ],
"matches": [ "http://*/*", "https://*/*" ]
} ],
"converted_from_user_script": true,
"description": "",
"key": "XKBlE2kyhcJNHGYLuLylZhjFVQV7puTEQbsFuGRcKoY=",
"name": "Slavehack Process Log Protector",
"version": "1.0"
}
script.js for extension 1:
// ==UserScript==
// @name Slavehack Process Log Protector
// @include *slavehack*index2.php?page=internet&openFolder=&var3=files&aktie=*&*=*
// @version 1.0
// ==/UserScript==
var allA = document.getElementsByTagName('a');
for (var i = 0; i < allA.length; i++) {
if ( allA[i].innerHTML.match('Access logfile') ) {
window.location.href = allA[i].href;
}
}
manifest.json for extension 2:
{
"content_scripts": [ {
"exclude_globs": [ ],
"include_globs": [ "*slavehack*index2.php\\?page=internet&var3=&aktie=FP&var2=*&transfer=*&tonumber=*&toip=*" ],
"js": [ "script.js" ],
"matches": [ "http://*/*", "https://*/*" ]
} ],
"converted_from_user_script": true,
"description": "",
"key": "WxQnzwPDzxXFW/TSZw6dNJJJSyVIXlub/QQGMlVtjbc=",
"name": "Bank IP Log Crack Remover",
"version": "1.0"
}
script.js for extension 2:
// ==UserScript==
// @name Bank IP Log Crack Remover
// @include *slavehack*index2.php?page=internet&var3=&aktie=FP&var2=*&transfer=*&tonumber=*&toip=*
// @version 1.0
// ==/UserScript==
var bankip = window.location.href.split('=')[window.location.href.split('=').length - 1]
window.location.href = 'http://www.slavehack.com/index2.php?page=internet&var2='+bankip.replace('#','')+'&var3=crack&var4=';
Many thanks for any help