PageSourceSearch

https://welcomeprojectpa.org/wp-content/plugins/escape-button/assets/js/escapebutton.js?ver=1.0.0

js welcomeprojectpa.org collected 2026-10-07 02:57:03 UTC 1,002 bytes, 32 lines download raw bytes

1// Define configuration			
2const config = {
3    newTabUrl: undefined,
4    replaceTabUrl: undefined
5}
6
7// Set up config
8const newTabUrl = config.newTabUrl != null ? config.newTabUrl : 'https://www.amazon.com/?search=newest-deals-today/490239040234023942342i04203904';
9const replaceTabUrl = config.replaceTabUrl != null ? config.replaceTabUrl : 'https://www.allrecipes.com/?page=2';
10
11// Define leave handler
12const handleLeavePage = () => {
13    document.body.innerHTML = '';
14    window.open(newTabUrl, '_newtab');
15    window.location.replace(replaceTabUrl);
16};
17
18// Show escape button
19const elements = document.querySelectorAll('.ow-leave-page-fab.script-enabled');
20for (let i = 0; i < elements.length; i += 1) {
21    elements[i].style.display = 'block';
22}
23
24// Handle escape button logic
25document.addEventListener('click', (event) => {
26
27    // Ignore if incorrect selector
28    if (!event.target.closest('.ow-leave-page-fab.script-enabled')) return;
29
30    // Handle leave page logic
31    handleLeavePage();
32});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.