Skip to content

Instantly share code, notes, and snippets.

@kaz
Last active March 3, 2016 03:21
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 kaz/4845c7787f711a5f0125 to your computer and use it in GitHub Desktop.
Save kaz/4845c7787f711a5f0125 to your computer and use it in GitHub Desktop.
javascript:(function(a,c){var b=a("#ctl00_ContentPlaceHolder1_ctl00_div tr");1>=b.size()&&(b=a("#ctl00_ContentPlaceHolder1_div tr"));b.find("td:eq(5)").each(function(){c(this.textContent)||(this.textContent=100,a(this).parent().find("td").css("background-color","white"))}).end().find("td:eq(6)").each(function(){c(this.textContent)||(this.textContent=4.5)})})(jQuery,isNaN);
/*
(function($,isNaN){
let $e = $("#ctl00_ContentPlaceHolder1_ctl00_div tr");
if($e.size() <= 1){
$e = $("#ctl00_ContentPlaceHolder1_div tr");
}
$e.find("td:eq(5)").each(function(){
if(!isNaN(this.textContent)){
this.textContent = 100;
$(this).parent().find("td").css("background-color", "white");
}
}).end().find("td:eq(6)").each(function(){
if(!isNaN(this.textContent)){
this.textContent = 4.5;
}
});
}(jQuery,isNaN));
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment