User Tools

Site Tools


howto:fridahooklibrary

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:fridahooklibrary [2017/11/06 23:01]
czokie Replaced old hooks with generated ones
howto:fridahooklibrary [2017/11/12 09:45] (current)
czokie [Tweak.js]
Line 203: Line 203:
 jsfunction,DJIUpgradeNotifyViewModel,notifyHidden,-,1,[*] Upgrade Notification DISABLLED,[*] Upgrade Notification already disabled,0 jsfunction,DJIUpgradeNotifyViewModel,notifyHidden,-,1,[*] Upgrade Notification DISABLLED,[*] Upgrade Notification already disabled,0
 jsfunctioniffcc,DJIProductManager,currentProductCode,+,13,[*] Changed product code to MAVIC,,1 jsfunctioniffcc,DJIProductManager,currentProductCode,+,13,[*] Changed product code to MAVIC,,1
 +jsfunction,DJILImitDBUpdateLogic,needUpdateType,-,0,[*] Removing NFZ DB Update Message,,0
 </code> </code>
- 
 ===== Tweak.js ===== ===== Tweak.js =====
  
Line 442: Line 442:
       return originalResult;       return originalResult;
     }     }
 +  });
 +
 +  //
 +  // DJILImitDBUpdateLogic needUpdateType jsfunction
 +  //
 +
 +  var DJILImitDBUpdateLogic = ObjC.classes.DJILImitDBUpdateLogic;
 +  var needUpdateType = DJILImitDBUpdateLogic['- needUpdateType'];
 +  var needUpdateTypeImpl = needUpdateType.implementation;
 +  needUpdateType.implementation = ObjC.implement(needUpdateType, function (handle, selector) {
 +    var originalResult = needUpdateTypeImpl(handle, selector);
 +    if ( originalResult != 0 ) {
 +      if ( 00 == 0 || DJILImitDBUpdateLogicneedUpdateTypeSeenReplace == 0 ) {
 +        console.log("[*] Removing NFZ DB Update Message");
 +        DJILImitDBUpdateLogicneedUpdateTypeSeenReplace = 1;
 +      }
 +    } else {
 +      if ( 00 == 0 || DJILImitDBUpdateLogicneedUpdateTypeSeenHit == 0 ) {
 +        console.log("");
 +        DJILImitDBUpdateLogicneedUpdateTypeSeenHit = 1;
 +      }
 +    }
 +    return 0;
   });   });
 } }
 </code> </code>
  
howto/fridahooklibrary.1510009300.txt.gz ยท Last modified: 2017/11/06 23:01 by czokie