// ==UserScript==
// @name Qualtrics:Show All Questions
// @description Show All Questions on Qualtrics (use in edit mode of survey)
// @include https://*.qualtrics.com/ControlPanel/*Edit*
// @grant none
// @version 0.0.1.20160301185027
// @namespace https://greasyfork.org/users/4252
// @downloadURL none
// ==/UserScript==
//Note: Only been tested in firefox
function OutputQuestions() {
Questions = document.getElementsByClassName("QuestionText");
var output;
output = ' ';
output += '
';
for (i = 0; i < Questions.length; i++) {
if (!document.getElementById("TrashArea").contains(Questions[i])) //don't include questions in trash (section at end)
{
if (!isNaN(Questions[i].textContent.trim().substr(0, 1))) { //if it starts with a number then show automatically (and ignore whitespace and html)
output += "
" + Questions[i].innerHTML + "
";
} else //if it doesnt start with a number then hide it
{
output += '