Anistar custom style

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

Verze ze dne 20. 02. 2020. Zobrazit nejnovější verzi.

// ==UserScript==
// @noframes
// @name          Anistar custom style
// @description	  Тема для сайта anistar
// @author        DygDyg
// @homepage      http://dygdyg.ddns.net
// @include      /^https?://(.*).online-star(.*)\.org/.*$/
// @include      /^https?://(.*)anistar(.*)\.org/.*$/
// @run-at        document-start
// @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
// @version       0.47.04
// @namespace https://greasyfork.dpdns.org/users/303755
// ==/UserScript==

//$(document).ready(function () { alert('body loadet') });


/*window.onload = function () {
    var pbody = document.getElementById('system_msg');
    var d = document.createElement('div');
    d.id = "background123";
    element.insertBefore(d, pbody);


    GM_addStyle(`
    #background123 {
        height: 100%;
        width: 100%;
        background: url(${GM_getValue('background')});
        background-size: 100%;
        position: fixed;
    }
    `);
}*/




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,
    .sw_bladeo2,
    div#TTwitch_remove2
    {
        display: none !important;
    }

    .new_menu {
    background: #00000000 !important;
}




`);


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

});



function background() {
    GM_addStyle(`
html
{
    background: url(${GM_getValue('background')})  ${background1} !important;
    background-attachment: fixed !important;
    background-size: 100% !important;
}

`);
}
background();


$(document).ready(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();
    }*/
});
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元