Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
Исправлена проблема, что скрипт пытался запуститься, пока еще не загрузилась страница

-Более менее работает
-Добавил иконки в разных местах
  • Loading branch information
FutureXpo committed Apr 12, 2018
1 parent 1bf6265 commit 6b432a5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ $.get(chrome.extension.getURL('/injected.js'),
document.getElementsByTagName("head")[0].appendChild(script);
document.getElementsByTagName("body")[0].setAttribute("onLoad", "injected_main();");
}
);
);
6 changes: 6 additions & 0 deletions injected.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
42 changes: 24 additions & 18 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 6b432a5

Please sign in to comment.