/MyR1pp3rL4b

Question and answer ripper for MyProgrammingLab by Pearson. Rip question & answers to CSV or Quizlet

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

MyR1pp3rL4b

This script will rip your questions and answers from MyProgrammingLab by Pearson. Export them as a CSV or for importing into a Quizlet set. Easily injectible into your brower, and is incorperated into the native UI.

Features

  • Rip to CSV
  • Rip for Quizlet
  • Native UI Integration

r - A very creative namespace

Variables

Var Description
CurrentRipElem A variable to store the chapter/section to use in the save file
Q_SEPERATE_TERM Delimiters for term. Default ^^^
Q_SEPERATE_DEFF Delimiters for card. Default ~~~
prevSubmissions Dictionary of submissions. Key exSSN, ValueArray of previous submissions
instructions Dictionary of instructions. Key exSSN, Value Instruction string

Methods

Method Args Return Description
setSubmissions s- dict of submissions void Set prevSubmissionsto s
getSubmissions none prevSubmissions Get prevSubmissions
addSubmission k- exSSN, s- submission void Set Key kand Value sof prevSubmissions
setInstruction i-dictionary void Set instructionsto i
getInstructions none instructions Get instructions
addInstruction k-exSSN, i-instruction void Set Key kand Value iof instruction
getexSSNs none array of exSSNs Query user for chap/sec number and return all exSSNs from that node as dict
getSubmissionsFromExSSNs exs-array of exSSNs none Sets prevSubmissionsto the submission from each exSSN
getInstructionsFromExSSNs exs-array of exSSNs none Sets instructionsto the instructions from each exSSN
parseAnswer ans-answer string cleaned up string Cleans up ansby removing html tags
parseForCSV q-question string string for CSV Removes escape characters and replaces "with ""
ripToCSV none void Rips questions and downloads as CSV
ripForQuizlet none void Rips questions and shows them in textarea to copy into Quizlet
rip mode-CSV(1) or Quizlet(0) void Gets user input and calls appropriate ripping function
copyText none void Copies text generated for Quizlet to clipboard
toggleTextArea none void Toggle the ripper div
setupUI none void Sets up the textarea, buttons, and dropdown

Usage

Injection (FireFox)

  • Download/Copy content of MyR1pp3rL4b.js
  • Open Inspect Element
  • Go to Console
  • Paste into console and press enter

Ripping

To CSV

  • Select Rip to CSV

  • Enter Chapter or Section number
  • Download CSV

Into Quizlet

  • Select Rip for Quizlet from dropdown

  • Enter Chapter or Section number

  • Press Copy
  • Create new Quizlet set
  • Select Import
  • Paste into the textbox
  • Set the custom delimiters to ^^^ & ~~~

  • Preview cards
  • Click Import

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

1.0 (2/10/2018)

  • Initial Release

Credits

Made by Gh0stByte

License

This project is licensed under GNU General Public License v3.0. See License