Top "Hook" questions

A hook refers to replacing or extending a system or application's default behavior with a custom behavior for a specific event.

reset hard on git push

I have a post-receive hook script sitting on the remote repo I am pushing to that does a git reset …

git hook reset git-post-receive
Add listener for all element events in WPF

I would like to hook for all available element events in one call. Some thing like this: elem.AddHandler(AnyRoutedEvent, (…

wpf events hook event-listener
How to get Context through hooking in android

The background is : I'm using xposed framework to hook a third party app. When I hook method XXX, xposed gave …

android hook android-context xposed
Not able to detect branch from Git post-receive hook

I've got a post receive hook setup on the remote repo that tries to determine the branch name of the …

git hook git-post-receive
SpecFlow - Retry failed tests

Is there a way to implement an AfterScenario hook to re-run the current test in case of Fail? Something like …

testing hook specflow scenarios
Android hooking of abstract class method calls using Frida

I am trying to learn Frida and have experimented with a little so far. Things have mostly worked as thankfully …

android security hook code-injection frida
Plugin Update Hook

My plugin needs to fire an init/build/checker function when the plugin is updated via auto updates in the …

wordpress plugins hook activation
How to filter messages in Ejabberd

I have Ejabberd up and running with test users, and its working fine. I want to write a module that …

erlang hook ejabberd
Scrape / eavesdrop AJAX data using JavaScript?

Is it possible to use JavaScript to scrape all the changes to a webpage that is being updated live with …

javascript ajax google-chrome-extension hook scrape
How can I hook into Perl's print?

Here's a scenario. You have a large amount of legacy scripts, all using a common library. Said scripts use the …

perl printing hook tie