Skip to content

Instantly share code, notes, and snippets.

@vcsjones
Last active August 8, 2018 21:46
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 vcsjones/d5456c04fc54de6c7b490a1f62f34d89 to your computer and use it in GitHub Desktop.
Save vcsjones/d5456c04fc54de6c7b490a1f62f34d89 to your computer and use it in GitHub Desktop.
static function OnBoot() {
var surveyType = FiddlerApplication.Assembly.GetType("Fiddler.Surveys.FiddlerSurveySettings", true);
var surveySettings = System.Activator.CreateInstance(surveyType, true);
var remindDateProp = surveyType.GetProperty("RemindDate", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
var surveySave = surveyType.GetMethod("Save", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
remindDateProp.SetValue(surveySettings, System.DateTime.Now.AddDays(7));
surveySave.Invoke(surveySettings, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment