Skip to content

Instantly share code, notes, and snippets.

@mahdyar
Last active January 19, 2024 12:14
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 mahdyar/418d6f72cdd5d0a889be4523c2dd396f to your computer and use it in GitHub Desktop.
Save mahdyar/418d6f72cdd5d0a889be4523c2dd396f to your computer and use it in GitHub Desktop.
پرکردن نظرسنجی‌های بوستان به صورت خودکار | Select Bustan survey checkboxes
var allInputs = document.getElementsByTagName("input");
for (var i = 0, max = allInputs.length; i < max; i++){
if (allInputs[i].type === 'checkbox' && allInputs[i].id.endsWith('_8'))
allInputs[i].checked = true;
}
@mahdyar
Copy link
Author

mahdyar commented Jan 19, 2024

  1. Go to survey page
  2. Click right and select inspect
  3. Go to console tab
  4. Copy & Paste this snippet.

Change _8 on line 3 to change you selection.
Screen Recording 2024-01-19 at 15 24 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment