Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Highlight Link Reference Issue
// @match https://fiu.instructure.com/*
// @exclude https://fiu.instructure.com/courses/*/link_validator
// @exclude https://fiu.instructure.com/courses
// @exclude https://fiu.instructure.com/courses/*/content_migrations
// ==/UserScript==
let blackboardLinks = document.querySelectorAll('#content_listContainer a');
let canvasLinks = document.querySelectorAll('#content a');
@tidusx18
tidusx18 / AllExternalURLItemsOpenNewWindow.js
Last active May 26, 2019 21:00
Short and misc scripts for canvas.
var moduleItem = document.querySelectorAll('.external_url');
for(let item of moduleItem) {
let editLink = item.querySelector('.edit_item_link');
editLink.click();
let newWindowCheckbox = document.querySelector('#content_tag_new_tab');
newWindowCheckbox.checked = true;
let submitButton = document.querySelector('.button_type_submit');
submitButton.click();
}
var destinationCourseId = document.querySelector('a[href*="cpbucket"]').href.split('/')[3];
var copyURL = 'https://fiu.blackboard.com/webapps/blackboard/execute/cp_copy_content?navItem=cp_copy_course&course_id=_89343_1&target=no';
var newWindow = window.open(copyURL, 'GET');
document.addEventListener('DOMContentLoaded', function() {
// Edit options below as needed
newWindow.document.getElementById('destinationCourseId').value = destinationCourseId;
newWindow.document.getElementById('copyLinkToCourseFiles').checked = true;
newWindow.document.getElementById('toc_1567112_1_id').click();
newWindow.document.getElementById('selectCourse').submit();
@tidusx18
tidusx18 / TurnitinDatePickerHotkeys.js
Created August 10, 2017 15:34
Use keyboard arrow left/right to go back/forward a month in Turnitin's date picker.
// ==UserScript==
// @name Turnitin Date Picker Hotkeys
// @namespace https://github.com/tidusx18
// @version 0.0.1
// @description Adds action for "Arrow Left and Right" hotkey to go back and forward a month in Turnitin's date picker.
// @match https://api.turnitin.com/t_modify_assignment.asp?*
// @grant none
// ==/UserScript==
(function() {
@tidusx18
tidusx18 / FilterCreatorProTerms.js
Created August 7, 2017 21:02
Filters semesters in CreatorPro "Term" dropdown select.
// ==UserScript==
// @name Hide CreatorPro Dates
// @namespace http://github.com/tidusx18
// @version 0.1
// @description Hides unwanted dates in CreatorPro search page's date dropdown.
// @match https://cp.fiu.edu/*
// @grant none
// ==/UserScript==
(function() {
// ==UserScript==
// @name Load Turnitin Source
// @namespace http://tampermonkey.net/
// @version 0.1
// @match https://fiu.blackboard.com/webapps/turn-plgnhndl-BBLEARN/content/modify.jsp?*
// @grant none
// ==/UserScript==
(function() {
'use strict';
@tidusx18
tidusx18 / UpdateDatesCreatorPro.js
Created July 6, 2017 17:01
Update dates in CreatorPro
function replaceDates() {
var oldString = /<p>Module available from.+<\/p>/igm;
// var oldString = /<p>Module available from.+<\/p>|<p>.+Module available from.+<\/p>/igm;
var newString = '';
var cpCalendarDates = document.querySelectorAll('.generic_table.cke_show_border tbody tr > td:first-child');
console.log(cpCalendarDates);
for(let date of cpCalendarDates) {
console.log(date.innerHTML);
if(date.innerHTML.toLowerCase().includes('week 2')) {
@tidusx18
tidusx18 / BlackboardSubmitHotkey.user.js
Last active June 13, 2017 18:03
Blackboard hotkey
// ==UserScript==
// @name Submit/Save Hotkey (Ctrl + s)
// @namespace https://github.com/tidusx18
// @version 0.0.1
// @description Overrides browser default action for "Ctrl + s" hotkey to submit/save the current form/page.
// @author You
// @match https://fiu.blackboard.com/*
// @match https://cp.fiu.edu/*
// @grant none
// ==/UserScript==