Skip to content

Instantly share code, notes, and snippets.

View 0xDaksh's full-sized avatar
🦄
Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

🦄
Layer 2 DeFi is going to be fun!
View GitHub Profile
@0xDaksh
0xDaksh / Redirect-Traffic-Script-dak.sh
Last active May 9, 2017 11:00
Traffic Redirect Script, Redirect your traffic when user clicks back button to another url :3
var urlToSend = 'https://dak.sh'; // change this shit :3
jQuery(document).ready(function($) {
if (window.history && window.history.pushState) {
window.history.pushState('forward', null, './#here');
$(window).on('popstate', function() {
window.location = urlToSend;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>You tried to contact Pug.</title>
</head>
<body>
<h1>Ayy Lean-On, Thanks for Contacting Pug Let's Stop Racism.</h1>
<p>Whom to Contact: <b><%= data.who %></b></p>
<p>Whom to Contact: <b><%= data.email %></b></p>