Advertisement
gaz_lloyd

Untitled

Mar 15th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name          merfy's HabitRPG — Custom Compact Edition
  3. // @namespace     http://userstyles.org
  4. // @description   merfy's latest theme for HabitRPG.  Enjoy!
  5. // @author        Caspid
  6. // @homepage      https://userstyles.org/styles/101273
  7. // @include       http://habitica.com/*
  8. // @include       https://habitica.com/*
  9. // @include       http://*.habitica.com/*
  10. // @include       https://*.habitica.com/*
  11. // @run-at        document-start
  12. // @version       0.20150809211845
  13. // ==/UserScript==
  14. (function() {var css = [
  15.     "html,body {",
  16.     "    ",
  17.     "  }",
  18.     "  ",
  19.     "  body {",
  20.     "    font-size: 14px !important;",
  21.     "    /* grid",
  22.     "    background: url(http://creativenerds.co.uk/wp-content/uploads/2012/06/gridphotoshoppattern.jpg) 0 2px !important;*/",
  23.     "    background: url(http://i.imgur.com/anSVcTO.png) fixed !important;",
  24.     "    line-height: unset !important;",
  25.     "    margin: unset !important;",
  26.     "  }",
  27.     "  ",
  28.     "  #wrap {min-height: unset !important;}",
  29.     "",
  30.     "  ",
  31.     "  ",
  32.     "/* NAVBAR */",
  33.     "",
  34.     "   /* hide close toolbar button */",
  35.     "   .toolbar-toggle {display: none !important;}",
  36.     "",
  37.     "  nav.toolbar {",
  38.     "    background: none !important;",
  39.     "    border: none !important;",
  40.     "  }",
  41.     "   .toolbar-nav {",
  42.     "     padding: 0 0.618em !important;",
  43.     "   }",
  44.     "  .toolbar-nav .toolbar-button-dropdown > a, .toolbar-nav .toolbar-button-dropdown button {",
  45.     "    color: rgba(0,0,0,0.5) !important;",
  46.     "    border: none !important;",
  47.     "  }",
  48.     "  .toolbar-nav .toolbar-button-dropdown > a:nth-of-type(2) {",
  49.     "    border: none !important;",
  50.     "  }",
  51.     "  ",
  52.     "    /* the loading bar shadow breaks the toolbar opacity :( */",
  53.     "    #loading-bar .peg {box-shadow: none !important;}",
  54.     "  ",
  55.     "  /* buttons */",
  56.     "  nav.toolbar li.toolbar-button a,",
  57.     "  nav.toolbar li.toolbar-button-dropdown,",
  58.     "  nav.toolbar li.toolbar-button-dropdown a,",
  59.     "  nav.toolbar ul.toolbar-options a {",
  60.     "    background: none !important;",
  61.     "    border: none !important;",
  62.     "  }",
  63.     " .toolbar-nav .toolbar-button-dropdown > a:first-of-type,",
  64.     " .toolbar-nav .toolbar-button-dropdown > a:nth-of-type(2) {",
  65.     "   border-radius: 2px !important;",
  66.     "  }",
  67.     "   .toolbar-nav .toolbar-button > a:hover, ",
  68.     "   .toolbar-nav .toolbar-button button:hover,",
  69.     "   .toolbar-nav .toolbar-button-dropdown > a:hover, ",
  70.     "   .toolbar-nav .toolbar-button-dropdown button:hover {",
  71.     "       background-color: rgba(0,0,0,0.1) !important;",
  72.     "       color: #000 !important;",
  73.     "   }",
  74.     "  ",
  75.     "  /* upper-right settings */",
  76.     "  .toolbar .glyphicon {",
  77.     "    color: rgba(0,0,0,0.4) !important;",
  78.     "  }",
  79.     "  ",
  80.     "  /*.toolbar-options .glyphicon {opacity: 0.33 !important;}",
  81.     "  ",
  82.     "  .toolbar-bailey, .toolbar-wallet, .toolbar-options, .toolbar-subscribe {",
  83.     "    padding: 0px 0.618em 0px 0 !important;",
  84.     "  }*/",
  85.     "  ",
  86.     "nav.toolbar .toolbar-subscribe {display: none !important;}",
  87.     "  ",
  88.     "  /* fix gems */",
  89.     "  .toolbar-wallet .gem-wallet span {",
  90.     "    padding-top: .218em !important;",
  91.     "  }",
  92.     "    ",
  93.     "  ",
  94.     "  ",
  95.     "/* HEADER */",
  96.     "  ",
  97.     "  .sticky-wrapper {",
  98.     "    height: 168px !important;",
  99.     "  }",
  100.     "  ",
  101.     "  .header-wrap {",
  102.     "    /*grid",
  103.     "    background: url(http://creativenerds.co.uk/wp-content/uploads/2012/06/gridphotoshoppattern.jpg) 0 2px !important;*/",
  104.     "    background: url(http://i.imgur.com/anSVcTO.png) fixed !important;",
  105.     "    border: none !important;",
  106.     "    padding: 28px 0 0 !important;",
  107.     "    /*overflow: hidden !important;  hides scrollbars */",
  108.     "  }",
  109.     "  ",
  110.     "  .site-header {",
  111.     "    height: auto !important;",
  112.     "    width: 100% !important;",
  113.     "    margin-bottom: -12px !important;",
  114.     "  }",
  115.     "  ",
  116.     "  /* hide avatars ",
  117.     "  .herobox, .herobox-wrap {display: none !important;}",
  118.     "  */",
  119.     "  .herobox {",
  120.     "    background: none !important;",
  121.     "    margin-top: -26px !important;",
  122.     "    outline: none !important;",
  123.     "  }",
  124.     "  .herobox .avatar-level.label {",
  125.     "    background: none !important;",
  126.     "    color: rgba(0,0,0,0.5) !important;",
  127.     "    font-weight: 400 !important;",
  128.     "  }",
  129.     "  .label .glyphicon {color: rgba(0,0,0,0.25) !important;}",
  130.     "  ",
  131.     "  /* bars */",
  132.     "  .hero-stats {",
  133.     "    border: none !important;",
  134.     "    background: none !important;",
  135.     "    min-width: 300px !important; ",
  136.     "    padding: 0 1.5em 1.5em !important;",
  137.     "  }",
  138.     "   .meter {",
  139.     "     font-size: 12.5px !important;",
  140.     "     font-weight: 600 !important;",
  141.     "     color: rgba(0,0,0,0.5) !important;",
  142.     "     background: #FFF !important;",
  143.     "     border: none !important;",
  144.     "     outline: none !important;",
  145.     "     box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.25) !important;",
  146.     "     margin: 0 0 4px !important;",
  147.     "     height: 2.25em /* default: 2.25em */ !important;",
  148.     "   }",
  149.     "    .bar {}",
  150.     "    /*.meter-text .glyphicon {display:none !important;}*/",
  151.     "",
  152.     "  ",
  153.     "  ",
  154.     "  ",
  155.     "  ",
  156.     "  ",
  157.     "/* TASKS */",
  158.     "  ",
  159.     "  habitrpg-tasks {",
  160.     "    font-size: 13px !important;",
  161.     "  }",
  162.     "  ",
  163.     "  /* task columns */",
  164.     "  .tasks-lists .row .col-md-3 {",
  165.     "    padding: 0 8px !important;",
  166.     "    margin: 0 !important;",
  167.     "  }",
  168.     "  ",
  169.     "",
  170.     "    .task-column {",
  171.     "      padding: 0 !important;",
  172.     "      border: none !important;",
  173.     "      background: none !important;",
  174.     "    }",
  175.     "      /* make rewards column skinnier */",
  176.     "      .col-md-3:not([class=\"rewards-module\"]) {",
  177.     "        width: 27% !important;",
  178.     "      }",
  179.     "      .col-md-3.rewards-module {",
  180.     "        width: 19% !important;",
  181.     "      }",
  182.     "",
  183.     "  ",
  184.     "  /* add new task */",
  185.     "    .addtask-form {",
  186.     "    outline: none !important;",
  187.     "    background: none !important;",
  188.     "    margin: 0 !important;",
  189.     "  }",
  190.     "    .addtask-field input {",
  191.     "      height: auto !important;",
  192.     "      padding: .5em .5em !important;",
  193.     "      background: none !important;",
  194.     "    }",
  195.     "     .addtask-field input:focus {",
  196.     "       background: none !important;",
  197.     "       box-shadow: none !important;",
  198.     "       /*outline: 1px solid #CCC !important;*/",
  199.     "     }",
  200.     "    .addtask-btn {display: none !important;}",
  201.     "  ",
  202.     "  ",
  203.     "  /* column titles */ /* Δ */",
  204.     "  h2.task-column_title {",
  205.     "    font-size: 14px !important;",
  206.     "    font-weight: 400 !important;",
  207.     "    font-size: 1.4em !important;",
  208.     "    margin: 4px 0 0em !important;",
  209.     "    text-align: center !important;",
  210.     "    font-weight: 400 !important;",
  211.     "    line-height: 1 !important;",
  212.     "    font-family: Open Sans, Lato, sans-serif !important;",
  213.     "    color: rgba(0,0,0,0.5) !important;",
  214.     "  }",
  215.     "    /* messes up to-dos progress */",
  216.     "    .todos .pull-right {display: none !important;}",
  217.     "  ",
  218.     "  ",
  219.     "  .task-column hr {display: none !important;}",
  220.     "  ",
  221.     "  ",
  222.     "  ",
  223.     "  ",
  224.     "  /* Task body */",
  225.     "  .task {",
  226.     "    /*background: #FFF !important;*/",
  227.     "    border: none !important;",
  228.     "    border-radius: 1.5px !important;",
  229.     "    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
  230.     "    min-height: unset !important;",
  231.     "    margin: 0 0 3px 0 !important;",
  232.     "    clear: unset !important; /* fixes spells */",
  233.     "  }",
  234.     "  .task-meta-controls {",
  235.     "    height: unset !important;",
  236.     "    margin: 5px 2px 0 0 !important;",
  237.     "  }",
  238.     "  /* Habit +/- */",
  239.     "    .habits .task-action-btn {",
  240.     "      width: 24px !important;",
  241.     "      height: 100% !important;",
  242.     "      line-height: unset !important;",
  243.     "      font-size: 15px !important;",
  244.     "      /*vertical-align: middle !important;*/",
  245.     "      color: rgba(0,0,0,0.33) !important;",
  246.     "      font-weight: 700 !important;",
  247.     "      outline: none !important;",
  248.     "      border: none !important;",
  249.     "      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
  250.     "       padding: 3px 0 0 0 !important;",
  251.     "    }",
  252.     "      /* - */",
  253.     "      .habits .task-action-btn:nth-child(2) {",
  254.     "        box-shadow: ",
  255.     "          inset 0 -1px 1px -1px rgba(0,0,0,0.3),",
  256.     "          inset -1px 0 1px -1px rgba(0,0,0,0.3),",
  257.     "          inset 0 1px 1px -1px rgba(0,0,0,0.3)",
  258.     "          !important;",
  259.     "      }",
  260.     "    /* match .task border-radius */",
  261.     "    .task-action-btn:first-child,",
  262.     "    .task-checker label {",
  263.     "    border-top-left-radius: 1.5px !important;",
  264.     "    border-bottom-left-radius: 1.5px !important; ",
  265.     "  }",
  266.     "        /* fix task settings */",
  267.     "            .task-options .task-action-btn {",
  268.     "              width: unset !important;",
  269.     "              padding: 4px 8px !important;",
  270.     "              height: auto !important;",
  271.     "            }",
  272.     "      ",
  273.     "  /* Daily & To-do checkboxes */",
  274.     ".daily .task-checker label,",
  275.     "    .todo .task-checker label {",
  276.     "      box-shadow: inset 0 0 0px 1px rgba(0,0,0,0.1) !important;",
  277.     "      width: 24px !important;",
  278.     "    }",
  279.     "    /* inner box */",
  280.     "    .action-yesno label:after {",
  281.     "      margin: 7px auto !important;",
  282.     "    }",
  283.     "    .action-yesno label:before { /* fixes weird clickable area */",
  284.     "      width: auto !important;",
  285.     "    }",
  286.     "      /* checkmark */",
  287.     "        .action-yesno label:hover:after, ",
  288.     "        .action-yesno label:focus:after,",
  289.     "        .action-yesno input[type=\"checkbox\"]:checked + label:after {",
  290.     "        font-size: 1.1em !important;",
  291.     "        height: auto !important;",
  292.     "        margin: 5px 0 0 0 !important;",
  293.     "        width: 24px !important;",
  294.     "        content: \"\" !important;",
  295.     "        transform: none !important;",
  296.     "      }",
  297.     "  ",
  298.     "   .task-text {",
  299.     "   color: rgba(0,0,0,0.75) !important;",
  300.     "   }",
  301.     "  .habits .task-text {",
  302.     "    padding: 3px 0 3px 54px !important;",
  303.     "  }",
  304.     "  .dailys .task-text,",
  305.     "  .todos .task-text {",
  306.     "    padding: 3px 0 3px 30px !important;",
  307.     "  }",
  308.     //"  .rewards .task-text {",
  309.     //"    padding: 3px 0 3px 44px !important;",
  310.     //"  }",
  311.     "  ",
  312.     "  /* lists */",
  313.     "  .task-text .checkbox {",
  314.     "    margin: 0 !important;",
  315.     "    min-height: unset !important;",
  316.     "  }",
  317.     "  ",
  318.     "  .task-meta-controls .glyphicon-tags,",
  319.     "  .task-meta-controls .glyphicon-signal,",
  320.     "  .task-meta-controls .glyphicon-comment {",
  321.     "    display: none !important;",
  322.     "  }",
  323.     "  ",
  324.     "",
  325.     "  ",
  326.     "",
  327.     "",
  328.     "/* REWARDS */",
  329.     "",
  330.     "     .rewards {",
  331.     "       margin-bottom: 4px !important;",
  332.     "       padding-bottom: 4px !important;",
  333.     "       border-bottom: none !important;",
  334.     "     }",
  335.     "     .rewards.main-list {}",
  336.     "     ",
  337.     "     .items.rewards .task {",
  338.     "       min-height: 40px !important;",
  339.     "     }",
  340.     "     .items.rewards .task-text {",
  341.     "       padding: 10px 0 0px calc(2.5em + 40px) !important;",
  342.     "     }",
  343.     "     .items .btn-buy {}",
  344.     "     .rewards .task-controls {",
  345.     "       margin: 0 .5em 0 0 !important;",
  346.     "       float: unset !important;",
  347.     "       position: absolute !important;",
  348.     "       left: 0 !important;",
  349.     "       height: 100% !important;",
  350.     "     }",
  351.     "     .item-img {",
  352.     "       float: unset !important;",
  353.     "       position: absolute !important;",
  354.     "       left: 2.5em !important;",
  355.     "       margin: 0 !important;",
  356.     "       vertical-align: middle !important;",
  357.     "     }",
  358.     "     .money {line-height: unset !important;}",
  359.     "     .btn-buy {",
  360.     "       width: auto !important;",
  361.     "       min-height: unset !important;",
  362.     "       height: 100% !important;",
  363.     "       padding: 4px 6px !important;",
  364.     "       vertical-align: middle !important;",
  365.     "       box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1) !important;",
  366.     "     }",
  367.     "     /* hide gold coin */",
  368.     "     .btn-buy .shop_gold {",
  369.     "       display: none !important;",
  370.     "     }",
  371.     "     /*.shop_potion {",
  372.     "       margin: -8px 0 !important;",
  373.     "     }*/",
  374.     "     ",
  375.     "     /* spells */",
  376.     //"       ul.items:nth-child(6) .task-text {",
  377.     //"         padding-left: 4.25em !important;",
  378.     //"       }",
  379.     "  ",
  380.     "  ",
  381.     "  ",
  382.     "  ",
  383.     "  /* Hide Anki tasks */",
  384.     "  li[id=\"task-Anki Correct Answer\"], ",
  385.     "  li[id=\"task-Anki Timebox Reached\"] {",
  386.     "    visibility: collapse !important;",
  387.     "  }",
  388.     "   ",
  389.     "    ",
  390.     "",
  391.     "  ",
  392.     "  ",
  393.     "/* FOOTER */",
  394.     "  footer {display: none !important;}",
  395.     "",
  396.     "  ",
  397.     "  ",
  398.     "  ",
  399.     "  ",
  400.     "  ",
  401.     "  ",
  402.     "  ",
  403.     "  ",
  404.     "  ",
  405.     "/* POP-UP NOTIFICATIONS */",
  406.     "  ",
  407.     ".ui-pnotify-shadow {box-shadow: none !important;}",
  408.     ".ui-pnotify-container{",
  409.     "   padding: 0.25em 0.5em !important;",
  410.     "  outline: 1px solid rgba(0,0,0,0.1) !important;",
  411.     "}",
  412.     " ",
  413.     " ",
  414.     "",
  415.     "",
  416.     "",
  417.     "",
  418.     "",
  419.     "",
  420.     "",
  421.     "/* TAVERN TWEAKS */",
  422.     "",
  423.     "   /* hides the notice to submit bugs to github ",
  424.     "   div.alert {display:none !important;}*/",
  425.     "   ",
  426.     "   /* removes scrollbars */",
  427.     "   .tavern-chat li .scrollable-message, ",
  428.     "   .party-chat li .scrollable-message {",
  429.     "       max-height: unset !important;",
  430.     "       overflow-y: unset !important;",
  431.     "     }",
  432.     "   ",
  433.     "   /* makes highlights (when someone addresses @you) more prominent */",
  434.     "   .tavern-chat li.highlight, ",
  435.     "     .party-chat li.highlight {",
  436.     "     background: #FFFFDD !important;",
  437.     "   }",
  438.     "  ",
  439.     "",
  440.     "",
  441.     "",
  442.     "",
  443.     "",
  444.     "",
  445.     "",
  446.     ".task.daily.completed {display: none !important;}",
  447.     "",
  448.     "/* Experimental animations! */",
  449.     "",
  450.     ".current-pet {",
  451.     "    animation-duration: 60s !important;",
  452.     "    -webkit-animation-name: boingg !important;",
  453.     "    animation-name: boingg !important;",
  454.     "    animation-delay: 45s !important;",
  455.     "    animation-iteration-count: infinite;",
  456.     "}",
  457.     "    @keyframes boingg {",
  458.     "      0%, 2.1% {transform: translateY(0) scaleX(1) scaleY(1);}",
  459.     "      1% {transform: translateY(8px) scaleY(0.9) scaleX(1.05);}",
  460.     "      1.5% {transform: translateY(-24px) scaleY(1.06) scaleX(1);}",
  461.     "      1.8% {transform: translateY(8px) scaleY(0.95) scaleX(1.2);}",
  462.     "      ",
  463.     "    }",
  464.     "",
  465.     ".herobox span[class^=\"Mount_Head\"] {",
  466.     "    animation-duration: 80s !important;",
  467.     "    -webkit-animation-name: rawrr !important;",
  468.     "    animation-name: rawrr !important;",
  469.     "    animation-delay: 75s !important;",
  470.     "    animation-iteration-count: infinite;",
  471.     "}",
  472.     "    @keyframes rawrr {",
  473.     "        0%,7.5% {transform: rotate(0);}",
  474.     "        2.5% {transform: rotate(-.015turn) translateX(-2px) translateY(3px);}",
  475.     "        3.5% {transform: rotate(.01turn) translateX(-1px) translateY(4px);}",
  476.     "    }",
  477.     ".herobox .character-sprites span[class^=\"weapon_\"] {",
  478.     "    animation-duration: 100s;",
  479.     "    animation-name: becareful;",
  480.     "    animation-iteration-count: infinite;",
  481.     "    animation-delay: 57s !important;",
  482.     "}",
  483.     "    @keyframes becareful {",
  484.     "          1%,1.3% {transform: rotate(30deg); transform-origin: 47px 68px;}",
  485.     "          1.5%,1.6% {transform: rotate(-100deg) translateY(-4px); transform-origin: 47px 68px;}",
  486.     "          3% {transform: rotate(0); transform-origin: 47px 68px;}",
  487.     "    }",
  488.     ".herobox .character-sprites span[class^=\"headAccessory_\"] {",
  489.     "        animation-duration: 28s;",
  490.     "       animation-name: twitchy;",
  491.     "       animation-iteration-count: infinite;",
  492.     "    animation-delay: 19s !important;",
  493.     "    }",
  494.     "    @keyframes twitchy {",
  495.     "        0%,3% {transform: skewX(0)}",
  496.     "        1.5% {transform: skewX(3deg)}",
  497.     "        2% {transform: skewX(-3deg)}",
  498.     "        2.3% {transform: skewX(3deg)}",
  499.     "    }",
  500.     "",
  501.     "",
  502.     "",
  503.     "",
  504.     "",
  505.     ".current-pet {",
  506.     "    animation-duration: 60s !important;",
  507.     "    -webkit-animation-name: boingg !important;",
  508.     "    animation-name: boingg !important;",
  509.     "    animation-delay: 45s !important;",
  510.     "    animation-iteration-count: infinite;",
  511.     "}",
  512.     "    @keyframes boingg {",
  513.     "      0%, 2.1% {transform: translateY(0) scaleX(1) scaleY(1);}",
  514.     "      1% {transform: translateY(8px) scaleY(0.9) scaleX(1.05);}",
  515.     "      1.5% {transform: translateY(-24px) scaleY(1.06) scaleX(1);}",
  516.     "      1.8% {transform: translateY(8px) scaleY(0.95) scaleX(1.2);}",
  517.     "      ",
  518.     "    }",
  519.     "",
  520.     ".herobox span[class^=\"Mount_Head\"] {",
  521.     "    animation-duration: 80s !important;",
  522.     "    -webkit-animation-name: rawrr !important;",
  523.     "    animation-name: rawrr !important;",
  524.     "    animation-delay: 75s !important;",
  525.     "    animation-iteration-count: infinite;",
  526.     "}",
  527.     "    @keyframes rawrr {",
  528.     "        0%,7.5% {transform: rotate(0);}",
  529.     "        2.5% {transform: rotate(-.015turn) translateX(-2px) translateY(3px);}",
  530.     "        3.5% {transform: rotate(.01turn) translateX(-1px) translateY(4px);}",
  531.     "    }",
  532.     ".herobox .character-sprites span[class^=\"weapon_\"] {",
  533.     "    animation-duration: 100s;",
  534.     "    animation-name: becareful;",
  535.     "    animation-iteration-count: infinite;",
  536.     "    animation-delay: 57s !important;",
  537.     "}",
  538.     "    @keyframes becareful {",
  539.     "          1%,1.3% {transform: rotate(30deg); transform-origin: 47px 68px;}",
  540.     "          1.5%,1.6% {transform: rotate(-100deg) translateY(-4px); transform-origin: 47px 68px;}",
  541.     "          3% {transform: rotate(0); transform-origin: 47px 68px;}",
  542.     "    }",
  543.     ".herobox .character-sprites span[class^=\"headAccessory_\"] {",
  544.     "        animation-duration: 28s;",
  545.     "       animation-name: twitchy;",
  546.     "       animation-iteration-count: infinite;",
  547.     "    animation-delay: 19s !important;",
  548.     "    }",
  549.     "    @keyframes twitchy {",
  550.     "        0%,3% {transform: skewX(0)}",
  551.     "        1.5% {transform: skewX(3deg)}",
  552.     "        2% {transform: skewX(-3deg)}",
  553.     "        2.3% {transform: skewX(3deg)}",
  554.     "    }",
  555.     "",
  556.     "",
  557.     ".task-column {",
  558.     "    max-height: none !important;",
  559.     "}",
  560.     ".task-checklist {",
  561.     "    clear: right !important;",
  562.     "}",
  563.     "",
  564.     "  ",
  565.     "/* TAGS */",
  566.     "  .filters {margin: 0 !important;}",
  567.     "    .pull-left {display: none !important;} /* hide \"Tags:\" */",
  568.     "      .nav.nav-pills .glyphicon {opacity: 0.33 !important;}",
  569.     "        .nav > li > a {padding: 0px 10px 4px !important;}",
  570.     "",
  571.     ".filters .filters-tags a:after {background-color: unset !important;}  ",
  572.     "@media (min-width:768px) and (max-width:991px){.new-row-md{ clear:none !important; }}",
  573.     "",
  574.     "/*[[EasterEggs]]*/",
  575.     "",
  576.     "           /*must be last!*/"
  577. ].join("\n");
  578. if (typeof GM_addStyle != "undefined") {
  579.     GM_addStyle(css);
  580. } else if (typeof PRO_addStyle != "undefined") {
  581.     PRO_addStyle(css);
  582. } else if (typeof addStyle != "undefined") {
  583.     addStyle(css);
  584. } else {
  585.     var node = document.createElement("style");
  586.     node.type = "text/css";
  587.     node.appendChild(document.createTextNode(css));
  588.     var heads = document.getElementsByTagName("head");
  589.     if (heads.length > 0) {
  590.         heads[0].appendChild(node);
  591.     } else {
  592.         // no head yet, stick it whereever
  593.         document.documentElement.appendChild(node);
  594.     }
  595. }
  596. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement