Changes

Jump to: navigation, search

MediaWiki:Common.js

474 bytes added, 11:13, 23 June 2023
m
no edit summary
if (typeof(GDPR_table_undecided) !== 'undefined' && GDPR_table_undecided!== null){
GDPR_table_undecided.remove();
}
 
var GDPR_cookie = "GDPR=accepted";
 
var GDPR_year = new Date(); // create date
GDPR_year.setFullYear(GDPR_year.getFullYear() +1) // add 1 year from now
var GDPR_end = "expires=" + GDPR_year.toGMTString() + ";path=/; samesite=strict"; // make endcookie and path variable
// var GDPR_end = "expires=0;path=/; samesite=strict"; // make endcookie and path variable
 
document.cookie = GDPR_cookie + ";" + GDPR_end;
console.log("Added cookie: " + document.cookie);
 
accepted();
 
console.log("accept cookies");
}
// read cookie and set action here
function run_onload(){

Navigation menu