Skip to content

Instantly share code, notes, and snippets.

@aackose
Created February 11, 2018 16:27
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 aackose/f675063c23cbb59358df654c6d951c85 to your computer and use it in GitHub Desktop.
Save aackose/f675063c23cbb59358df654c6d951c85 to your computer and use it in GitHub Desktop.
Select fixed number of checkboxes in the TranslatePlus Admin page
var fileref = document.createElement('script');
var filepath = "//code.jquery.com/jquery-3.2.1.min.js";
// Checking the top 25 checkboxes
fileref.onload = function(){jQuery(".QueueTable.sortable tr td input[type='checkbox']:lt(25)").attr("checked","checked")};
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", filepath);
// Insert the above script in the <head> tag
document.getElementsByTagName("head")[0].appendChild(fileref);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment