Skip to content

Instantly share code, notes, and snippets.

@hkamran80
Last active August 22, 2020 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkamran80/2a7676a816564832588fde7b43516eba to your computer and use it in GitHub Desktop.
Save hkamran80/2a7676a816564832588fde7b43516eba to your computer and use it in GitHub Desktop.
FuelEd Brightspace Keystroke
// ==UserScript==
// @name FuelEd Keystroke
// @namespace https://hkamran.com
// @version 1.0.1
// @description Keystroke for FuelEd
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/2a7676a816564832588fde7b43516eba/raw/fueled.user.js
// @updateUrl https://gist.github.com/hkamran80/2a7676a816564832588fde7b43516eba/raw/fueled.user.js
// @match https://fueled.brightspace.com/*
// @grant none
// ==/UserScript==
function pagination(e) {
var evtobj = window.event? event : e
if (evtobj.keyCode == 78 && evtobj.shiftKey) {
// Next Page Keystroke (Shift + N)
document.querySelector("button.next-activity").click();
}
}
document.onkeydown = pagination;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment