?
In this example, a Single HTML source is used for various injections.
<a href="inject-sources.html#pos-1" class="pat-inject">
<a href="inject-sources.html#pos-2" class="pat-inject">
<a href="inject-sources.html#pos-3" class="pat-inject">
<a href="inject-sources.html" data-pat-inject="#pos-3 #pos-1 &&#pos-1 #pos-2 &&#pos-2 #pos-3" class="pat-inject">
<a href="inject-sources.html#pos-3" data-pat-inject="source: #pos-3; target: .item article" class="pat-inject">Place "Cocteau" in all frames</a>
<a href="inject-sources.html#pos-2" data-pat-inject="source: #pos-2; target: #pos-3; trigger: autload; delay: 2000" class="pat-inject">Autoloads "Wilde" in frame 3 after a 2 second delay</a>
Click quickly to prevent Wilde and load Rilke instead
<a href="inject-sources.html#pos-2" data-pat-inject="source: #pos-2; target: #pos-4; trigger: autload; delay: 2000" class="pat-inject">Autoloads "Wilde" in frame 4 after a 2 second delay</a>
<a href="inject-sources.html#pos-2" class="pat-inject" data-pat-inject="push-marker: content-updated">
<a href="page-that-doesnt-exist" class="pat-inject">
?
?
?
<a href="index.html" class="pat-inject" data-pat-inject="scroll:#demo-history">
<a href="index.html" class="pat-inject" data-pat-inject="scroll:top">
<a href="inject-text.html" class="pat-inject" data-pat-inject="scroll:#scroll-target">
<a href="inject-text.html#pos-4" class="pat-inject" data-pat-inject="scroll:target">
<a href="inject-text.html" class="pat-inject" data-pat-inject="scroll:none">
<a href="inject-sources.html#pos-3" class="pat-inject" data-pat-inject="target:#pos-4; scroll: #dieu-nu-p-1">
<a href="inject-sources.html" class="pat-inject" data-pat-inject="target:#pos-4; scroll: #pos-2">
?
?
Inject some text and record the history
here goes the injection
here goes the injection
You need to open your network inspector to actually validate that the request is sent. It works if you see a call to backend-action.html in the list of requested items.
Trigger something, but don't inject resultsThe source is nothing and the target is given, so when triggering the injection, the target is removed.
I will be killed once you click the link below
Do something, but don't replace any content, just kill the target.