Version 1.0.0

Исправлена проблема, что скрипт пытался запуститься, пока еще не загрузилась страница

-Более менее работает
-Добавил иконки в разных местах
This commit is contained in:
FutureX 2018-04-12 23:45:24 +03:00
parent 1bf62658de
commit 6b432a54a5
3 changed files with 31 additions and 19 deletions

View File

@ -6,4 +6,4 @@ $.get(chrome.extension.getURL('/injected.js'),
document.getElementsByTagName("head")[0].appendChild(script);
document.getElementsByTagName("body")[0].setAttribute("onLoad", "injected_main();");
}
);
);

View File

@ -1,4 +1,10 @@
function injected_main() {
var timerId = setInterval(show, 2000);
setTimeout(function() {
clearInterval(timerId);
}, 7000);
}
function show() {
$('*[class^="correct"]').show().removeClass("ng-hide").parent().show().removeClass("ng-hide");
$("table.ng-hide").removeClass("ng-hide");
$("section").css("user-select","initial");

View File

@ -1,20 +1,26 @@
{
"name": "LMS helper ♥",
"description": "Easy answers from your heart. Made with love by FutureX",
"version": "1.4.8.8",
"manifest_version": 2,
"browser_action": {
"default_icon": "icon.png"
},
"content_scripts": [
{
"matches": [ "*://www.cambridgelms.org/*" ],
"js": [ "jquery.js", "background.js" ],
"run_at": "document_end",
"all_frames": true
}
],
"web_accessible_resources": [
"/injected.js"
]
"name": "LMS helper ♥",
"description": "Easy answers from your heart. Made with love by FutureX",
"icons": {
"16": "icon.png",
"32": "icon.png",
"48": "icon.png",
"128": "icon.png"
},
"version": "1.4.8.8",
"manifest_version": 2,
"browser_action": {
"default_icon": "icon.png"
},
"content_scripts": [
{
"matches": [ "*://www.cambridgelms.org/*" ],
"js": [ "jquery.js", "background.js" ],
"run_at": "document_end",
"all_frames": true
}
],
"web_accessible_resources": [
"/injected.js"
]
}