Anistar custom style

Тема для сайта anistar

当前为 2020-02-01 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name          Anistar custom style
// @description	  Тема для сайта anistar
// @author        DygDyg
// @homepage      http://dygdyg.ddns.net
// @include      /^https?://(.*).online-star(.*)\.org/.*$/
// @require       https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @icon          https://cdn.discordapp.com/attachments/483711805529653268/609561809799872545/favicon2.png
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_addStyle
// @grant         GM_registerMenuCommand
// @icon          https://cdn.discordapp.com/attachments/483711805529653268/609561809799872545/favicon2.png
// @version       0.47.02

// @namespace https://greasyfork.org/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";


GM_addStyle(`

    small .news .descripts,
    .descripts,
    .news_header .tags a,
    .text-s p
    {
        color: #ffffff !important;
        text-shadow: -2px 2px 2px #000 !important;
    }

    .list-nav ul li,
    .flat_button
    {
        background-color: ${MainColor} !important;
    }

    .torrent .download, torrent .download a
    {
        filter: hue-rotate(90deg) !important;
        background: #ffffff00 url(https://cdn.discordapp.com/attachments/667612136788328478/673252757150367744/tor_down_03.png) no-repeat top left !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: #4a4a4ab0 !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;
    }

    .bg-white-main
    {
        backdrop-filter: blur(3px);
    }

    .UCOWisrw0aLVBW9otEVJiZmA0 a,
    .newclasswqasdvsdv .newclasswqasdvsdv2,
    .newclasswqasdvsdv .text_vi_sky,
    #timeout_autoplay
    {
        width: 0px !important;
        height: 0px !important;
    }

    .new_menu {
    background: #00000000 !important;
}


`);


GM_registerMenuCommand('Задать фон', () => {
    var background_url = prompt("Задать ссылку на фон/Оставить пустым для серого фона.", GM_getValue('background'));
    GM_setValue('background', background_url);
    window.location.reload();
});

GM_addStyle(`
body
{

    background: url(`+ GM_getValue('background') + `)  ${background1};
    background-attachment: fixed;
    background-size: 100%;
}

`);


window.onload = function () {

    setTimeout(function () {
        let click = $("#torrent_all");
        if (click.length) {
            click.click();
        };
    }, 1);

    $('head').append($('<link rel="shortcut icon" type="image/x-icon"/>').attr('href', "https://cdn.discordapp.com/attachments/483711805529653268/609561809799872545/favicon2.png"));

    $('#myDiv').remove();

    var elem1 = document.getElementById("videoroll_autoplay2");
    if (elem1)
    {
        elem1.remove();
    }



    var elem1 = document.getElementById("sky_video");
    if (elem1)
    {
        elem1.remove();
    }



    var elem1 = document.getElementById("TTwitch_remove2");
    if (elem1)
    {
        elem1.remove();
    }



    var elem1 = document.getElementById("videoroll_autoplay2");
    if (elem1)
    {
        elem1.remove();
    }

    var elem1 = document.getElementById("_bry39_2894063");
    if (elem1)
    {
        elem1.remove();
    }
};