您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Choose how you want profile favorites to look like.
当前为
// ==UserScript== // @name Better MAL Favs // @namespace https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs // @version 0.5 // @description Choose how you want profile favorites to look like. // @author hacker09 & Shishio-kun // @match https://myanimelist.net/profile/* // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://myanimelist.net&size=64 // @grant GM_registerMenuCommand // @run-at document-end // @grant GM_getValue // @grant GM_setValue // ==/UserScript== (function() { 'use strict'; var hide = '1'; //Define the fav info as visible GM_registerMenuCommand("Choose MAL Favs Styles", function() { //Creates a new function var UserInput = prompt('1 Actual style showing all favs titles and names\n\n2 Vertical style\n\n3 Vertical style with big images\n\n4 Vertical style without franchise name/year\n\n5 Vertical style with big images and without franchise name/year\n*Write only your choice number and click OK'); //Gets the user input GM_setValue("Choice", UserInput); //Defines the variable as the UserInput location.reload(); //Reloads the page }); //Adds an option to the menu and finishes the function if (GM_getValue("Choice") === undefined) { //If the variable doesn't exist yet alert('Click on the TamperMonkey extension icon, and click on the button "Choose MAL Favs Styles", to chose how you want the MAL favs to look like by default.'); //Shows how to config the script } //Finishes the if condition if (GM_getValue("Choice") === '1') { //If the user chose option 1 document.head.insertAdjacentHTML('beforeend', '<style>.fav-slide-block .fav-slide .btn-fav .link .title, .fav-slide-block .fav-slide .btn-fav .link .users {opacity: unset;}</style>'); //Show the titles by default } //Finishes the if condition if (GM_getValue("Choice").match(/4|5/) !== null) { //If the user chose option 4 or 5 hide = '0'; //Hide the fav info } //Finishes the if condition if (GM_getValue("Choice").match(/2|4/) !== null) { //If the user chose option 2 or 4 document.head.insertAdjacentHTML('beforeend', `<style>@namespace url(http://www.w3.org/1999/xhtml);.fav-slide-block .fav-slide { display: table-cell; width: 100px !important; } .fav-slide-block .fav-slide .btn-fav { padding-bottom: 10px !important; } .fav-slide-block .fav-slide-outer { height: auto; width: 200px !important; } .fav-slide-block .fav-slide .btn-fav .link img { background-color: transparent; } #anime_favorites{ height: auto !important; width: 198px; position: relative !important; position: relative; float: left; } #anime_favorites:hover{ overflow-y: auto; } div#manga_favorites.fav-slide-block.mb12 { height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } div#manga_favorites.fav-slide-block.mb12:hover{ overflow-y: auto; } #character_favorites{ height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } #character_favorites:hover{ overflow-y: auto; } #person_favorites { height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } #person_favorites:hover{ overflow-y: auto; } .fav-slide-block .fav-slide{ position: relative; } .favmore{ display: block !important; } .container-right > h5:nth-child(6){ position: absolute; left: 450px; margin-top: -25px !important; } .favmore > h5:nth-child(1){ position: absolute; left: 850px; margin-top: -25px !important; } .container-right > h5:nth-child(8){ position: absolute; left: 650px; margin-top: -25px !important; } .btn-favmore.open, .btn-favmore, .fav-slide-block .btn-fav-slide-side { opacity: 0 !important; pointer-events: none; } .page-common .content-container .pt24 { position: relative; float: left; top:-60px; } .fav-slide-block .lazyloaded{ width: 40px; height: 60px;} .fav-slide-block .lazyloaded{ width: 40px; height: 60px; image-rendering: inherit; image-rendering: -webkit-optimize-contrast; } .fav-slide-block .fav-slide .btn-fav .link { height: 55px;} /* CLASSIC FAVE INFO RE-STYLE */ .fav-slide-block .fav-slide .btn-fav .link .title { color: #1d439b; text-shadow: none !important; font-family: Verdana,Arial; font-size: 11px !important; padding: 0; } .fav-slide-block .fav-slide .btn-fav .link .users { opacity: ${hide}; color: #787878 !important; text-shadow: none; font-family: Verdana,Arial; font-size: 11px; line-height: 15px; } .fav-slide-block .fav-slide .btn-fav .link .title { width: 150px; position: relative; background:transparent; margin-left: 45px; } .fav-slide-block .fav-slide .btn-fav .link .users {width: 150px; position: relative; background: transparent; margin-left: 40px; margin-top: 4px; } .fav-slide-block .fav-slide .btn-fav .link img{ position: absolute !important; background: transparent; left: 0px; top: 0px; } .fav-slide-block .fav-slide .btn-fav { padding-top: 4px !important; } .fav-slide-block .fav-slide .btn-fav .link .title:hover{ text-decoration: underline; } /* UPDATE REPAIRS */ .fav-slide-block .fav-slide .btn-fav .link .title { opacity: 1; } .fav-slide-block .fav-slide .btn-fav .link .title { color: #1d439b; top: 0px; text-shadow: none !important; font-size: 11px; left: 0px; font-family: Verdana,Arial; font-size: 11px !important; overflow: hidden; width: 150px !important;; overflow: hidden; } /* FAVORITES HEIGHT Change auto to the new px amount, 1500px is the default for 10 faves. */ .fav-slide-block .fav-slide-outer { height: auto !important; padding-bottom: 10px; }</style>`); //Original Favorites Style By Shishio-kun } //Finishes the if condition if (GM_getValue("Choice").match(/3|5/) !== null) { //If the user chose option 3 or 5 document.head.insertAdjacentHTML('beforeend', `<style>@namespace url(http://www.w3.org/1999/xhtml);.fav-slide-block .fav-slide { display: table-cell; width: 100px !important; } .fav-slide-block .fav-slide .btn-fav { padding-bottom: 10px !important; } .fav-slide-block .fav-slide-outer { height: auto; width: 200px !important; height: important; } .fav-slide-block .fav-slide .btn-fav .link img { background-color: transparent; } #anime_favorites{ height: auto !important; width: 198px; position: relative !important; position: relative; float: left; } #anime_favorites:hover{ overflow-y: auto; } div#manga_favorites.fav-slide-block.mb12 { height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } div#manga_favorites.fav-slide-block.mb12:hover{ overflow-y: auto; } #character_favorites{ height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } #character_favorites:hover{ overflow-y: auto; } #person_favorites { height: auto !important; width: 198px; position: relative !important; scrollbar-width: thin; padding-left: 2px; position: relative; float: left; } #person_favorites:hover{ overflow-y: auto; } .fav-slide-block .fav-slide{ position: relative; } .favmore{ display: block !important; } .container-right > h5:nth-child(6){ position: absolute; left: 450px; margin-top: -25px !important; } .favmore > h5:nth-child(1){ position: absolute; left: 850px; margin-top: -25px !important; } .container-right > h5:nth-child(8){ position: absolute; left: 650px; margin-top: -25px !important; } .btn-favmore.open, .btn-favmore, .fav-slide-block .btn-fav-slide-side { opacity: 0 !important; pointer-events: none; } .page-common .content-container .pt24 { position: relative; float: left; top:-60px; } .fav-slide-block .lazyloaded{ width: 40px; height: 60px;} .fav-slide-block .lazyloaded{ width: 90px; height: 140px; image-rendering: inherit; image-rendering: -webkit-optimize-contrast; } .fav-slide-block .fav-slide .btn-fav .link { height: 130px;} /* CLASSIC FAVE INFO RE-STYLE */ .fav-slide-block .fav-slide .btn-fav .link .title { color: #1d439b; text-shadow: none !important; font-family: Verdana,Arial; font-size: 11px !important; padding: 0; } .fav-slide-block .fav-slide .btn-fav .link .users { opacity: ${hide}; color: #787878 !important; text-shadow: none; font-family: Verdana,Arial; font-size: 11px; } .fav-slide-block .fav-slide .btn-fav .link .title { width: 115px; position: relative; background:transparent; margin-left: 94px; } .fav-slide-block .fav-slide .btn-fav .link .users {width: 126px; position: relative; background: transparent; margin-left: 90px; margin-top: 4px; } .fav-slide-block .fav-slide .btn-fav .link img{ position: absolute !important; background: transparent; left: 0px; top: 0px; } .fav-slide-block .fav-slide .btn-fav { padding-top: 4px !important; } .fav-slide-block .fav-slide .btn-fav .link .title:hover { text-decoration: underline; } /* BIG RE-STYLE FOR CLASSIC */ .fav-slide-block .lazyloaded { width: 90px; height: 140px; } .fav-slide-block .fav-slide .btn-fav .link { height: 130px !important; } .fav-slide-block .fav-slide .btn-fav .link .title { width: 105px !important; margin-left: 94px; } .fav-slide-block .fav-slide .btn-fav .link .users { width: 110px; margin-left: 89px; margin-top: 4px; line-height: 15px; } /* UPDATE REPAIRS */ .fav-slide-block .fav-slide .btn-fav .link .title { opacity: 1; } .fav-slide-block .fav-slide .btn-fav .link .title { color: #1d439b; top: 0px; text-shadow: none !important; font-size: 11px; left: 0px; font-family: Verdana,Arial; font-size: 11px !important; width: 110px; background: transparent; overflow: hidden; } /* FAVORITES HEIGHT Change auto to the new px amount, 1500px is the default for 10 faves. */ .fav-slide-block .fav-slide-outer { height: auto !important; padding-bottom: 10px; }</style>`); //Original Favorites Style with bigger pics By Shishio-kun } //Finishes the if condition })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址