By default, WebSite-Watcher triggers a notification as soon as a change is detected.


If you want to receive an update notification only when there is, for example, more than one change, you can use the Plugin below.

You can also increase the value from 1 to a higher number, for example to receive an update notification only when there are more than 3 changes on the page.


Sub Wsw_CompareVersions(ByRef $sMemWeb, ByRef $sMemLocal, ByRef $sStatusMessage, ByRef $iStatusCode)
   
   Dim $nNew, $nChg, $nDel
   
   ' Apply entered filter definitions
   $sMemWeb = Bookmark_ApplyFilter($sMemWeb)
   $sMemLocal = Bookmark_ApplyFilter($sMemLocal)
   
   ' Calculate the number of new/changed/deleted content
   GetComparisonInfo($sMemWeb, $sMemLocal, 1, $nNew, $nChg, $nDel)
   
   ' Notification only if there is more than 1 change
   If ($nNew + $nChg > 1) Then
      $iStatusCode = 1
   End If
   
End Sub