Skip to content

Instantly share code, notes, and snippets.

@mickle00
Created May 2, 2014 19:00
Show Gist options
  • Save mickle00/ae5d758da823c32bd8aa to your computer and use it in GitHub Desktop.
Save mickle00/ae5d758da823c32bd8aa to your computer and use it in GitHub Desktop.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
function main(){
var formulaFieldCells = $("td:contains('Formula (')");
var fieldList = [];
formulaFieldCells.each(function(){
formulaField = $($(this).prev()[0]).html();
if (formulaField.indexOf('__c') != -1){
fieldList.push(formulaField);
}
});
console.log(fieldList);
}
setTimeout(main, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment