Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name merfy's HabitRPG — Custom Compact Edition
- // @namespace http://userstyles.org
- // @description merfy's latest theme for HabitRPG. Enjoy!
- // @author Caspid
- // @homepage https://userstyles.org/styles/101273
- // @include http://habitica.com/*
- // @include https://habitica.com/*
- // @include http://*.habitica.com/*
- // @include https://*.habitica.com/*
- // @run-at document-start
- // @version 0.20150809211845
- // ==/UserScript==
- (function() {var css = [
- "html,body {",
- " ",
- " }",
- " ",
- " body {",
- " font-size: 14px !important;",
- " /* grid",
- " background: url(http://creativenerds.co.uk/wp-content/uploads/2012/06/gridphotoshoppattern.jpg) 0 2px !important;*/",
- " background: url(http://i.imgur.com/anSVcTO.png) fixed !important;",
- " line-height: unset !important;",
- " margin: unset !important;",
- " }",
- " ",
- " #wrap {min-height: unset !important;}",
- "",
- " ",
- " ",
- "/* NAVBAR */",
- "",
- " /* hide close toolbar button */",
- " .toolbar-toggle {display: none !important;}",
- "",
- " nav.toolbar {",
- " background: none !important;",
- " border: none !important;",
- " }",
- " .toolbar-nav {",
- " padding: 0 0.618em !important;",
- " }",
- " .toolbar-nav .toolbar-button-dropdown > a, .toolbar-nav .toolbar-button-dropdown button {",
- " color: rgba(0,0,0,0.5) !important;",
- " border: none !important;",
- " }",
- " .toolbar-nav .toolbar-button-dropdown > a:nth-of-type(2) {",
- " border: none !important;",
- " }",
- " ",
- " /* the loading bar shadow breaks the toolbar opacity :( */",
- " #loading-bar .peg {box-shadow: none !important;}",
- " ",
- " /* buttons */",
- " nav.toolbar li.toolbar-button a,",
- " nav.toolbar li.toolbar-button-dropdown,",
- " nav.toolbar li.toolbar-button-dropdown a,",
- " nav.toolbar ul.toolbar-options a {",
- " background: none !important;",
- " border: none !important;",
- " }",
- " .toolbar-nav .toolbar-button-dropdown > a:first-of-type,",
- " .toolbar-nav .toolbar-button-dropdown > a:nth-of-type(2) {",
- " border-radius: 2px !important;",
- " }",
- " .toolbar-nav .toolbar-button > a:hover, ",
- " .toolbar-nav .toolbar-button button:hover,",
- " .toolbar-nav .toolbar-button-dropdown > a:hover, ",
- " .toolbar-nav .toolbar-button-dropdown button:hover {",
- " background-color: rgba(0,0,0,0.1) !important;",
- " color: #000 !important;",
- " }",
- " ",
- " /* upper-right settings */",
- " .toolbar .glyphicon {",
- " color: rgba(0,0,0,0.4) !important;",
- " }",
- " ",
- " /*.toolbar-options .glyphicon {opacity: 0.33 !important;}",
- " ",
- " .toolbar-bailey, .toolbar-wallet, .toolbar-options, .toolbar-subscribe {",
- " padding: 0px 0.618em 0px 0 !important;",
- " }*/",
- " ",
- "nav.toolbar .toolbar-subscribe {display: none !important;}",
- " ",
- " /* fix gems */",
- " .toolbar-wallet .gem-wallet span {",
- " padding-top: .218em !important;",
- " }",
- " ",
- " ",
- " ",
- "/* HEADER */",
- " ",
- " .sticky-wrapper {",
- " height: 168px !important;",
- " }",
- " ",
- " .header-wrap {",
- " /*grid",
- " background: url(http://creativenerds.co.uk/wp-content/uploads/2012/06/gridphotoshoppattern.jpg) 0 2px !important;*/",
- " background: url(http://i.imgur.com/anSVcTO.png) fixed !important;",
- " border: none !important;",
- " padding: 28px 0 0 !important;",
- " /*overflow: hidden !important; hides scrollbars */",
- " }",
- " ",
- " .site-header {",
- " height: auto !important;",
- " width: 100% !important;",
- " margin-bottom: -12px !important;",
- " }",
- " ",
- " /* hide avatars ",
- " .herobox, .herobox-wrap {display: none !important;}",
- " */",
- " .herobox {",
- " background: none !important;",
- " margin-top: -26px !important;",
- " outline: none !important;",
- " }",
- " .herobox .avatar-level.label {",
- " background: none !important;",
- " color: rgba(0,0,0,0.5) !important;",
- " font-weight: 400 !important;",
- " }",
- " .label .glyphicon {color: rgba(0,0,0,0.25) !important;}",
- " ",
- " /* bars */",
- " .hero-stats {",
- " border: none !important;",
- " background: none !important;",
- " min-width: 300px !important; ",
- " padding: 0 1.5em 1.5em !important;",
- " }",
- " .meter {",
- " font-size: 12.5px !important;",
- " font-weight: 600 !important;",
- " color: rgba(0,0,0,0.5) !important;",
- " background: #FFF !important;",
- " border: none !important;",
- " outline: none !important;",
- " box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.25) !important;",
- " margin: 0 0 4px !important;",
- " height: 2.25em /* default: 2.25em */ !important;",
- " }",
- " .bar {}",
- " /*.meter-text .glyphicon {display:none !important;}*/",
- "",
- " ",
- " ",
- " ",
- " ",
- " ",
- "/* TASKS */",
- " ",
- " habitrpg-tasks {",
- " font-size: 13px !important;",
- " }",
- " ",
- " /* task columns */",
- " .tasks-lists .row .col-md-3 {",
- " padding: 0 8px !important;",
- " margin: 0 !important;",
- " }",
- " ",
- "",
- " .task-column {",
- " padding: 0 !important;",
- " border: none !important;",
- " background: none !important;",
- " }",
- " /* make rewards column skinnier */",
- " .col-md-3:not([class=\"rewards-module\"]) {",
- " width: 27% !important;",
- " }",
- " .col-md-3.rewards-module {",
- " width: 19% !important;",
- " }",
- "",
- " ",
- " /* add new task */",
- " .addtask-form {",
- " outline: none !important;",
- " background: none !important;",
- " margin: 0 !important;",
- " }",
- " .addtask-field input {",
- " height: auto !important;",
- " padding: .5em .5em !important;",
- " background: none !important;",
- " }",
- " .addtask-field input:focus {",
- " background: none !important;",
- " box-shadow: none !important;",
- " /*outline: 1px solid #CCC !important;*/",
- " }",
- " .addtask-btn {display: none !important;}",
- " ",
- " ",
- " /* column titles */ /* Δ */",
- " h2.task-column_title {",
- " font-size: 14px !important;",
- " font-weight: 400 !important;",
- " font-size: 1.4em !important;",
- " margin: 4px 0 0em !important;",
- " text-align: center !important;",
- " font-weight: 400 !important;",
- " line-height: 1 !important;",
- " font-family: Open Sans, Lato, sans-serif !important;",
- " color: rgba(0,0,0,0.5) !important;",
- " }",
- " /* messes up to-dos progress */",
- " .todos .pull-right {display: none !important;}",
- " ",
- " ",
- " .task-column hr {display: none !important;}",
- " ",
- " ",
- " ",
- " ",
- " /* Task body */",
- " .task {",
- " /*background: #FFF !important;*/",
- " border: none !important;",
- " border-radius: 1.5px !important;",
- " box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
- " min-height: unset !important;",
- " margin: 0 0 3px 0 !important;",
- " clear: unset !important; /* fixes spells */",
- " }",
- " .task-meta-controls {",
- " height: unset !important;",
- " margin: 5px 2px 0 0 !important;",
- " }",
- " /* Habit +/- */",
- " .habits .task-action-btn {",
- " width: 24px !important;",
- " height: 100% !important;",
- " line-height: unset !important;",
- " font-size: 15px !important;",
- " /*vertical-align: middle !important;*/",
- " color: rgba(0,0,0,0.33) !important;",
- " font-weight: 700 !important;",
- " outline: none !important;",
- " border: none !important;",
- " box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
- " padding: 3px 0 0 0 !important;",
- " }",
- " /* - */",
- " .habits .task-action-btn:nth-child(2) {",
- " box-shadow: ",
- " inset 0 -1px 1px -1px rgba(0,0,0,0.3),",
- " inset -1px 0 1px -1px rgba(0,0,0,0.3),",
- " inset 0 1px 1px -1px rgba(0,0,0,0.3)",
- " !important;",
- " }",
- " /* match .task border-radius */",
- " .task-action-btn:first-child,",
- " .task-checker label {",
- " border-top-left-radius: 1.5px !important;",
- " border-bottom-left-radius: 1.5px !important; ",
- " }",
- " /* fix task settings */",
- " .task-options .task-action-btn {",
- " width: unset !important;",
- " padding: 4px 8px !important;",
- " height: auto !important;",
- " }",
- " ",
- " /* Daily & To-do checkboxes */",
- ".daily .task-checker label,",
- " .todo .task-checker label {",
- " box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.1) !important;",
- " width: 24px !important;",
- " }",
- " /* inner box */",
- " .action-yesno label:after {",
- " margin: 7px auto !important;",
- " }",
- " .action-yesno label:before { /* fixes weird clickable area */",
- " width: auto !important;",
- " }",
- " /* checkmark */",
- " .action-yesno label:hover:after, ",
- " .action-yesno label:focus:after,",
- " .action-yesno input[type=\"checkbox\"]:checked + label:after {",
- " font-size: 1.1em !important;",
- " height: auto !important;",
- " margin: 5px 0 0 0 !important;",
- " width: 24px !important;",
- " content: \"✔\" !important;",
- " transform: none !important;",
- " }",
- " ",
- " .task-text {",
- " color: rgba(0,0,0,0.75) !important;",
- " }",
- " .habits .task-text {",
- " padding: 3px 0 3px 54px !important;",
- " }",
- " .dailys .task-text,",
- " .todos .task-text {",
- " padding: 3px 0 3px 30px !important;",
- " }",
- //" .rewards .task-text {",
- //" padding: 3px 0 3px 44px !important;",
- //" }",
- " ",
- " /* lists */",
- " .task-text .checkbox {",
- " margin: 0 !important;",
- " min-height: unset !important;",
- " }",
- " ",
- " .task-meta-controls .glyphicon-tags,",
- " .task-meta-controls .glyphicon-signal,",
- " .task-meta-controls .glyphicon-comment {",
- " display: none !important;",
- " }",
- " ",
- "",
- " ",
- "",
- "",
- "/* REWARDS */",
- "",
- " .rewards {",
- " margin-bottom: 4px !important;",
- " padding-bottom: 4px !important;",
- " border-bottom: none !important;",
- " }",
- " .rewards.main-list {}",
- " ",
- " .items.rewards .task {",
- " min-height: 40px !important;",
- " }",
- " .items.rewards .task-text {",
- " padding: 10px 0 0px calc(2.5em + 40px) !important;",
- " }",
- " .items .btn-buy {}",
- " .rewards .task-controls {",
- " margin: 0 .5em 0 0 !important;",
- " float: unset !important;",
- " position: absolute !important;",
- " left: 0 !important;",
- " height: 100% !important;",
- " }",
- " .item-img {",
- " float: unset !important;",
- " position: absolute !important;",
- " left: 2.5em !important;",
- " margin: 0 !important;",
- " vertical-align: middle !important;",
- " }",
- " .money {line-height: unset !important;}",
- " .btn-buy {",
- " width: auto !important;",
- " min-height: unset !important;",
- " height: 100% !important;",
- " padding: 4px 6px !important;",
- " vertical-align: middle !important;",
- " box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
- " }",
- " /* hide gold coin */",
- " .btn-buy .shop_gold {",
- " display: none !important;",
- " }",
- " /*.shop_potion {",
- " margin: -8px 0 !important;",
- " }*/",
- " ",
- " /* spells */",
- //" ul.items:nth-child(6) .task-text {",
- //" padding-left: 4.25em !important;",
- //" }",
- " ",
- " ",
- " ",
- " ",
- " /* Hide Anki tasks */",
- " li[id=\"task-Anki Correct Answer\"], ",
- " li[id=\"task-Anki Timebox Reached\"] {",
- " visibility: collapse !important;",
- " }",
- " ",
- " ",
- "",
- " ",
- " ",
- "/* FOOTER */",
- " footer {display: none !important;}",
- "",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "/* POP-UP NOTIFICATIONS */",
- " ",
- ".ui-pnotify-shadow {box-shadow: none !important;}",
- ".ui-pnotify-container{",
- " padding: 0.25em 0.5em !important;",
- " outline: 1px solid rgba(0,0,0,0.1) !important;",
- "}",
- " ",
- " ",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "/* TAVERN TWEAKS */",
- "",
- " /* hides the notice to submit bugs to github ",
- " div.alert {display:none !important;}*/",
- " ",
- " /* removes scrollbars */",
- " .tavern-chat li .scrollable-message, ",
- " .party-chat li .scrollable-message {",
- " max-height: unset !important;",
- " overflow-y: unset !important;",
- " }",
- " ",
- " /* makes highlights (when someone addresses @you) more prominent */",
- " .tavern-chat li.highlight, ",
- " .party-chat li.highlight {",
- " background: #FFFFDD !important;",
- " }",
- " ",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ".task.daily.completed {display: none !important;}",
- "",
- "/* Experimental animations! */",
- "",
- ".current-pet {",
- " animation-duration: 60s !important;",
- " -webkit-animation-name: boingg !important;",
- " animation-name: boingg !important;",
- " animation-delay: 45s !important;",
- " animation-iteration-count: infinite;",
- "}",
- " @keyframes boingg {",
- " 0%, 2.1% {transform: translateY(0) scaleX(1) scaleY(1);}",
- " 1% {transform: translateY(8px) scaleY(0.9) scaleX(1.05);}",
- " 1.5% {transform: translateY(-24px) scaleY(1.06) scaleX(1);}",
- " 1.8% {transform: translateY(8px) scaleY(0.95) scaleX(1.2);}",
- " ",
- " }",
- "",
- ".herobox span[class^=\"Mount_Head\"] {",
- " animation-duration: 80s !important;",
- " -webkit-animation-name: rawrr !important;",
- " animation-name: rawrr !important;",
- " animation-delay: 75s !important;",
- " animation-iteration-count: infinite;",
- "}",
- " @keyframes rawrr {",
- " 0%,7.5% {transform: rotate(0);}",
- " 2.5% {transform: rotate(-.015turn) translateX(-2px) translateY(3px);}",
- " 3.5% {transform: rotate(.01turn) translateX(-1px) translateY(4px);}",
- " }",
- ".herobox .character-sprites span[class^=\"weapon_\"] {",
- " animation-duration: 100s;",
- " animation-name: becareful;",
- " animation-iteration-count: infinite;",
- " animation-delay: 57s !important;",
- "}",
- " @keyframes becareful {",
- " 1%,1.3% {transform: rotate(30deg); transform-origin: 47px 68px;}",
- " 1.5%,1.6% {transform: rotate(-100deg) translateY(-4px); transform-origin: 47px 68px;}",
- " 3% {transform: rotate(0); transform-origin: 47px 68px;}",
- " }",
- ".herobox .character-sprites span[class^=\"headAccessory_\"] {",
- " animation-duration: 28s;",
- " animation-name: twitchy;",
- " animation-iteration-count: infinite;",
- " animation-delay: 19s !important;",
- " }",
- " @keyframes twitchy {",
- " 0%,3% {transform: skewX(0)}",
- " 1.5% {transform: skewX(3deg)}",
- " 2% {transform: skewX(-3deg)}",
- " 2.3% {transform: skewX(3deg)}",
- " }",
- "",
- "",
- "",
- "",
- "",
- ".current-pet {",
- " animation-duration: 60s !important;",
- " -webkit-animation-name: boingg !important;",
- " animation-name: boingg !important;",
- " animation-delay: 45s !important;",
- " animation-iteration-count: infinite;",
- "}",
- " @keyframes boingg {",
- " 0%, 2.1% {transform: translateY(0) scaleX(1) scaleY(1);}",
- " 1% {transform: translateY(8px) scaleY(0.9) scaleX(1.05);}",
- " 1.5% {transform: translateY(-24px) scaleY(1.06) scaleX(1);}",
- " 1.8% {transform: translateY(8px) scaleY(0.95) scaleX(1.2);}",
- " ",
- " }",
- "",
- ".herobox span[class^=\"Mount_Head\"] {",
- " animation-duration: 80s !important;",
- " -webkit-animation-name: rawrr !important;",
- " animation-name: rawrr !important;",
- " animation-delay: 75s !important;",
- " animation-iteration-count: infinite;",
- "}",
- " @keyframes rawrr {",
- " 0%,7.5% {transform: rotate(0);}",
- " 2.5% {transform: rotate(-.015turn) translateX(-2px) translateY(3px);}",
- " 3.5% {transform: rotate(.01turn) translateX(-1px) translateY(4px);}",
- " }",
- ".herobox .character-sprites span[class^=\"weapon_\"] {",
- " animation-duration: 100s;",
- " animation-name: becareful;",
- " animation-iteration-count: infinite;",
- " animation-delay: 57s !important;",
- "}",
- " @keyframes becareful {",
- " 1%,1.3% {transform: rotate(30deg); transform-origin: 47px 68px;}",
- " 1.5%,1.6% {transform: rotate(-100deg) translateY(-4px); transform-origin: 47px 68px;}",
- " 3% {transform: rotate(0); transform-origin: 47px 68px;}",
- " }",
- ".herobox .character-sprites span[class^=\"headAccessory_\"] {",
- " animation-duration: 28s;",
- " animation-name: twitchy;",
- " animation-iteration-count: infinite;",
- " animation-delay: 19s !important;",
- " }",
- " @keyframes twitchy {",
- " 0%,3% {transform: skewX(0)}",
- " 1.5% {transform: skewX(3deg)}",
- " 2% {transform: skewX(-3deg)}",
- " 2.3% {transform: skewX(3deg)}",
- " }",
- "",
- "",
- ".task-column {",
- " max-height: none !important;",
- "}",
- ".task-checklist {",
- " clear: right !important;",
- "}",
- "",
- " ",
- "/* TAGS */",
- " .filters {margin: 0 !important;}",
- " .pull-left {display: none !important;} /* hide \"Tags:\" */",
- " .nav.nav-pills .glyphicon {opacity: 0.33 !important;}",
- " .nav > li > a {padding: 0px 10px 4px !important;}",
- "",
- ".filters .filters-tags a:after {background-color: unset !important;} ",
- "@media (min-width:768px) and (max-width:991px){.new-row-md{ clear:none !important; }}",
- "",
- "/*[[EasterEggs]]*/",
- "",
- " /*must be last!*/"
- ].join("\n");
- if (typeof GM_addStyle != "undefined") {
- GM_addStyle(css);
- } else if (typeof PRO_addStyle != "undefined") {
- PRO_addStyle(css);
- } else if (typeof addStyle != "undefined") {
- addStyle(css);
- } else {
- var node = document.createElement("style");
- node.type = "text/css";
- node.appendChild(document.createTextNode(css));
- var heads = document.getElementsByTagName("head");
- if (heads.length > 0) {
- heads[0].appendChild(node);
- } else {
- // no head yet, stick it whereever
- document.documentElement.appendChild(node);
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement