// ==UserScript==
// @name Anistar custom style
// @description Тема для сайта anistar
// @author DygDyg
// @homepage http://dygdyg.ddns.net
// @include /^https?://(.*).online-star(.*)\.org/.*$/
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @icon https://cdn.discordapp.com/attachments/483711805529653268/609561809799872545/favicon2.png
// @version 0.46.4
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
// @run-at context-menu
// @namespace https://gf.qytechs.cn/users/303755
// ==/UserScript==
var $ = window.jQuery;
// https://csscolor.ru Палитра цветов
//Цвет прозрачной "плёнки" на текущем видео
let RGBA1 = "rgba(69, 152, 255, 0.75)";
//Цвет задней подложки
let background2 = "#4a4a4a";
let background1 = "#333333";
//Основной цвет сайта
let MainColor = "#1368d1";
$(document).ready(function () {
let tt = $('body .footer .f-center').text();
if (!tt.includes('All rights reserved AniStar')) return;
GM_setValue('anistar_host', location.host);
start();
setTimeout(function () {
let click = $("#torrent_all");
if (click.length) {
click.click();
};
}, 1);
});
function start() {
for (let age of ['14', '16', '18'])
document.cookie = `${age}=yes`;
let anistar_host = GM_getValue('anistar_host', null);
if (anistar_host == location.host) {
$('link[rel$=icon]').remove();
$('head').append($('<link rel="shortcut icon" type="image/x-icon"/>').attr('href', "https://cdn.discordapp.com/attachments/483711805529653268/609561809799872545/favicon2.png"));
GM_addStyle(`
small .news .descripts {
color: #d6d6d6;
text-shadow: -2px 2px 2px #000 !important;
}
.list-nav ul li,
.flat_button {
background-color: ${MainColor} !important;
}
.torrent .download, torrent .download a {
filter: brightness(0.3) !important;
}
.torrent .cont,
.torrent .info_d {
background:transparent !important;
}
.pagenav a,
.left-panel-bottom,
.news_header .title_left > a,
.login_nav2 form input[type=submit],
.search-block [type="submit"],
.cal-list,
.mini_nav li.logout a,
.anime_status .block_selected .selected-title,
.status_val::before,
.news_text ul a,
.vide_be > span,
.contain_zerkls span,
.color_t > span,
.mirror_video>span,
.contain_zerkls span,
.select_config ul li:hover,
#playlist_pric > span,
header .menu.active .menu__handle::before,
header .menu.active .menu__handle::after,
header .menu.active .menu__handle span,
header .menu.active > p:hover .menu__handle::before,
header .menu.active > p:hover .menu__handle::after,
header .menu.active > p:hover .menu__handle span,
.panel-bottom-shor .right-panel-bottom > span,
.mybutton,
.color_t.com_links_tab a,
.cat-cal.manga,
.button_c,
.berrors,
.title-3 {
background: ${MainColor} !important;
}
.main.wrapper.width1200{
background-color: ${background2} !important;
}
body {
background: ${background1} !important;
}
.prefooter ul li a:hover,
#news_set_sort a,
.autor_nav a,
.news .descripts a,
.news_text .descripts a,
.video_as a,
.left-menu ul li a:hover,
.text-s h3,
.text-s h1,
.reason,
.views-icon a,
.date-icon a,
.autor-icon a,
.date-icon,
.views-icon,
.news_header .rat_col_new span,
#alert_pric,
.alert-title,
.alert_vip_hd a,
.close-alert,
.news_header .title_left .title a,
.news_header .tags,
.title-6 span,
.dle-confirm.ui-dialog-content.ui-widget-content a,
.as_play_list li:hover .aslist_title,
.panel-tab a.active-tab,
.mini_nav ul li a:hover,
.cal-list > span.active > span,
.janrs .rate .rating .rat_col_new span,
.news_text ul b {
text-shadow: -2px 1px 6px #000 !important;
color: ${MainColor} !important;
}
.top-w .title-top
{
text-shadow: 0px 0px 0px #000 !important;
-webkit-text-stroke: 0.3px #000;
font-size: 25px;
color: ${MainColor} !important;
}
#alert_pric {
border: ${MainColor} 3px solid !important;
}
.selected_form.active-s,
.as_play_list li.play_as .aslist_title {
background:${RGBA1}!important;
}
.list-nav ul li:hover a,
.icon-vip:hover span,
.icon-clock:hover span,
.icon-resp:hover span,
.icon-chat:hover span,
.icon-copy:hover span {
background-position: 0px 18px;
color: ${MainColor} !important;
}
.soc,
a[title="Официальный Telegram канал AniStar об аниме"] img {
height: 0;
width: 0;
}
.logo,
.width50.float-left.left1 .logo a,
.vk-top .icon-top:hover,
.profile-top .icon-top {
/*background: url('https://cdn.discordapp.com/attachments/483711805529653268/609547342256930816/svg-editor-image.svg') no-repeat top left;*/
filter: hue-rotate(-45deg) brightness(145%) !important;
}
/*.logo,
.width50.float-left.left1 .logo a {
background: url('https://cdn.discordapp.com/attachments/483711805529653268/609548039014711296/logo1.png') no-repeat center;*/
filter: hue-rotate(-45deg) brightness(145%);
}*/
.avatar{
border: 2px solid ${MainColor} !important;
}
.vip_traf,
.button.ui-button.ui-state-default,
.mini_nav li a:before,
.rating .unit-rating .current-rating,
.top-w .janrs .unit-rating,
.ui-button.ui-state-default{
filter: hue-rotate(-45deg) brightness(145%) !important;
}
.panel-tab a{
border-bottom: 3px solid ${MainColor} !important;
}
.panel-tab a.active-tab{
border-bottom: 3px solid #FED000 !important;
}
`);
}
/*GM_addStyle(`
.contain_zerkls span,
.mirror_video>span,
#playlist_pric > span{
background: ${MainColor} !important;
}
.panel-tab a{
border-bottom: 3px solid ${MainColor} !important;
}
`)*/
/*$('.top-w .janrs .rate').remove()*/
};
start();
/*
$.map($('.section-website.website');, function(arr) {
return $(arr).text();
})
*/
//https://anistar.appspot.com/