Canvas Quiz De-suckifier

An attempt to introduce regex to canvas quizzes

What is Canvas Quiz De-suckifier?

Canvas Quiz De-suckifier is a Chrome extension developed by Skandalabrandur, and its main feature is "An attempt to introduce regex to canvas quizzes".

Extension Screenshots

screenshot

Download Canvas Quiz De-suckifier Extension CRX File

Download Canvas Quiz De-suckifier extension files in crx format, manually install Chrome extensions in the browser, or share the crx files with friends to easily install Chrome extensions.

Extension Usage Instructions

                        NOTICE: "TAILOR MADE FOR REYKJAVÍK UNIVERSITY. MIGHT NOT WORK FOR PEOPLE OUTSIDE OF THE SCOPE UNLESS SOME CHANGES ARE MADE TO THE SOURCE CODE"

--------

This extension adds the clickable link "Populate with basic regex" besides the "Add another answer" link.
This is only intended for use with "Fill in the blank" and "Fill in multiple blanks" types of questions. The behaviour of this extension is undefined outside of this scope.

Basic syntax:
  [abc]: any character a, b or c
  --E is the empty character:
    [abc--E]: any character a, b, c, or nothing/empty character.
  --S is a flag that splits words on | inside the []
     Example: [--SLorem|Ipsum|--E] is either Lorem, Ipsum or nothing/empty character.

  {optional}: the string within {} becomes optional
    Example: '{A }boat' yields both "A boat" and "boat"

  $$variable$$: 
    To populate correctly for a variable in the 
    "Fill in multiple blanks" section, the regex query
    MUST START with $$variable$$ as a selector for your intended variable.
    Example: $$color1$$[--Syellow|blue|green]
      populates the "color1" variable with yellow, blue and green.

---

Version 0.1
Single fill in the blanks seem to work

Version 0.2
Multiple fill in the blanks work only when it is the first question

Version 0.3
Introduced $$variable$$ selection and a global limiter on variable names because of Canvas' global scope per input values (results in no more undefined behaviour for multiple questions per quiz)

Version 0.3.1
Added a matcher for question banks as well.                    

Extension Basic Information

Name Canvas Quiz De-suckifier Canvas Quiz De-suckifier
ID bmlilboiahnjdjhoimjaljknonmghoag
Official URL https://chromewebstore.google.com/detail/canvas-quiz-de-suckifier/bmlilboiahnjdjhoimjaljknonmghoag
Description An attempt to introduce regex to canvas quizzes
File Size 9.8 KB
Installation Count 16
Current Version 0.3.1
Last Updated 2018-09-22
Publish Date 2018-09-22
Developer Skandalabrandur
Email [email protected]
Payment Type free
Supported Languages en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "Canvas Quiz De-suckifier",
    "version": "0.3.1",
    "description": "An attempt to introduce regex to canvas quizzes",
    "content_scripts": [
        {
            "matches": [
                "https:\/\/reykjavik.instructure.com\/courses\/*\/quizzes\/*\/edit",
                "https:\/\/reykjavik.instructure.com\/courses\/*\/question_banks\/*"
            ],
            "run_at": "document_idle",
            "js": [
                "inject.js"
            ]
        }
    ],
    "web_accessible_resources": [
        "expandDong.js"
    ],
    "icons": {
        "128": "icon128.png"
    }
}