Adds a #maybe_add_cookies to handle website requiring a specific cookie

This commit is contained in:
erwanlr
2019-04-03 19:08:52 +01:00
parent 025ce37c05
commit 352286e497
5 changed files with 146 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex">
</head>
<body>
<script>
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
createCookie('vjs','2420671338',60);
</script><form id="repost" method="post" action=""></form>
<script>
if((document.cookie.indexOf('vjs=') !== -1))
location.reload();
</script>
<h1>Access to this website is possible only using browser with JavaScript and Cookies enabled.</h1>