diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2aae21e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Blackboard Instructor Enhancements \ No newline at end of file diff --git a/CopyItem.js b/CopyItem.js new file mode 100644 index 0000000..9d750c5 --- /dev/null +++ b/CopyItem.js @@ -0,0 +1,55 @@ +let defaults={ + gcMaxTweak:true, + gcFilterTweak:true, + gcScrollBarTweak:true, + dbAddDownloadAll:true, + dlAssignmentsShowAll:true, + userShowAll:true, + needsGradingShowAll:true, + poolQuestionsShowAll:true, + gradeQuestionsShowAll:true, + fixPaste:true, + addDisableUsers:true, + hideRemoveUsers:true, + gcEnableDisableUsers:true, + gcEnableScrollOnTable:true, + gradingAddStudentIDs:true, + gradeDetailsShowJumpTo:true, + gcHoverAddedDate:true, + gcCopyUsernames:true, + gcDeleteUsers:true, + copyItemSearchCourses:true, + gcCopyUsernamesDel:'; ', + gcHScrollSensitivity:100, + gcVScrollSensitivity:100 +}; + + +browser.storage.sync.get(defaults).then(function(options){ + /* + + */ + + var script = document.createElement("script"); + if(options.gradingAddStudentIDs){ + script.innerHTML = ` + jQuery(document).ready(()=>{ + let select2Script = document.createElement("script"); + let select2Css = document.createElement("link"); + + select2Script.type="text/javascript"; + select2Script.src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.min.js"; + + select2Css.href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.min.css"; + select2Css.rel="stylesheet"; + + document.head.appendChild(select2Script); + document.head.appendChild(select2Css); + select2Script.onload = ()=>{ + jQuery("#destCourse").chosen(); + } + }); + `; + } + document.body.appendChild(script); +}); \ No newline at end of file diff --git a/DiscussionBoardTweak.js b/DiscussionBoardTweak.js index bd2be6e..4c0c512 100644 --- a/DiscussionBoardTweak.js +++ b/DiscussionBoardTweak.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/GradeAttempt.js b/GradeAttempt.js index 9e48455..a103ff3 100644 --- a/GradeAttempt.js +++ b/GradeAttempt.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/GradeCenterTweak.js b/GradeCenterTweak.js index 66ce9d9..d0d2323 100644 --- a/GradeCenterTweak.js +++ b/GradeCenterTweak.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/GradeDetails.js b/GradeDetails.js index d961b13..264ea92 100644 --- a/GradeDetails.js +++ b/GradeDetails.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/background.js b/background.js index 1b97854..dc431fe 100644 --- a/background.js +++ b/background.js @@ -17,6 +17,8 @@ let defaults={ gradeDetailsShowJumpTo:true, gcHoverAddedDate:true, gcCopyUsernames:true, + gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/disableSelectedUsers.js b/disableSelectedUsers.js index 5294a15..8a0fc96 100644 --- a/disableSelectedUsers.js +++ b/disableSelectedUsers.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100 diff --git a/manifest.json b/manifest.json index 68bd124..78f5ad9 100644 --- a/manifest.json +++ b/manifest.json @@ -35,6 +35,12 @@ "matches": ["*://*/webapps/gradebook/do/instructor/viewGradeDetails*"], "all_frames": true, "js": ["browser-polyfill.js","GradeDetails.js"] + }, + { + "run_at": "document_end", + "matches": ["*://*/webapps/blackboard/content/copyItem.jsp*"], + "all_frames": true, + "js": ["browser-polyfill.js","CopyItem.js"] } ], "permissions": [ @@ -63,5 +69,5 @@ "default_title": "Blackboard Instructor Enhancements", "default_popup": "options.html" }, - "web_accessible_resources": ["settings.json"] + "web_accessible_resources": ["settings.json","browser-polyfill.js.map"] } \ No newline at end of file diff --git a/options.html b/options.html index 593fcf4..a08fd56 100644 --- a/options.html +++ b/options.html @@ -56,6 +56,9 @@

Blackboard Instructor Enchancements

+
+
+
diff --git a/options.js b/options.js index 11b6fd0..b091d3e 100644 --- a/options.js +++ b/options.js @@ -18,6 +18,7 @@ let defaults={ gcHoverAddedDate:true, gcCopyUsernames:true, gcDeleteUsers:true, + copyItemSearchCourses:true, gcCopyUsernamesDel:'; ', gcHScrollSensitivity:100, gcVScrollSensitivity:100