NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Anime365 addblocker // @version 0.5 // @description Turns off smotret-anime ads // @author Gjmrd // @match https://smotret-anime.ru/* // @include https://smotretanime.ru/* // @include https://play.shikimori.org/* // @copyright 2019, Newt300 (https://openuserjs.org//users/Newt300) // @grant none // @license MIT // ==/UserScript== (function() { var script = document.createElement('script'); script.innerHTML = ` var watchedVideoToday = getCookieItem("watchedVideoToday"); var lastDate = getCookieItem("lastDate"); var dateTime = new Date() var today = dateTime.getDate(); var now = dateTime.getTime(); if ((isNaN(watchedVideoToday)) || (today != lastDate)){ watchedVideoToday = 1; lastDate = today; } var expireTime = (new Date()).setTime(now + (1000 * 60 * 60)); setCookieItem('watchedVideoToday', +watchedVideoToday+1, '/'); setCookieItem('watchedPromoVideo', now, expireTime, '/'); setCookieItem('lastDate', lastDate, '/'); `; script.setAttribute('id', 'super_id_name'); document.body.appendChild(script); })();