I am struggling to install a few short and simple extensions on Chrome. The error message I receive about the 'manifest version' indicates that the issue might be due to outdated information. Since I lack experience in Chrome extensions and JavaScript, I am unable to fix them myself. These extensions were created for me by a friend some time ago.
Can someone provide guidance on how to 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=';
Any assistance would be greatly appreciated. Thank you!