Ejemplo n.º 1
0
 private static void OverrideStylesheet_BeforeResponse(Fiddler.Session oSession)
 {
     if (oSession.fullUrl != Properties.Settings.Default.KanColleGamePage.AbsoluteUri)
     {
         return;
     }
     oSession.utilDecodeResponse();
     oSession.utilReplaceInResponse("</head>", Properties.Settings.Default.TagOverrideStylesheet + "</head>");
 }
Ejemplo n.º 2
0
 private static void NoTouchActionStylesheet_BeforeResponse(Fiddler.Session oSession)
 {
     if (!Models.Settings.Current.DisableBrowserTouchAction)
     {
         return;
     }
     if (oSession.fullUrl != uri)
     {
         return;
     }
     oSession.utilDecodeResponse();
     oSession.utilReplaceInResponse("</head>", Properties.Settings.Default.TagNoTouchAction + "</head>");
 }
Ejemplo n.º 3
0
        private static void QualityScript_BeforeResponse(Fiddler.Session oSession)
        {
            if (!oSession.url.Contains("osapi.dmm.com/gadgets/ifr?"))
            {
                return;
            }

            var q = Models.Settings.Current.FlashQuality;
            var m = Models.Settings.Current.FlashRenderMode;

            oSession.utilDecodeResponse();
            oSession.utilReplaceInResponse("</head>", string.Format(Properties.Settings.Default.TagQualityShim, q, m) + "</head>");
        }