teblefixer

fdbsaazbv

当前为 2017-02-03 提交的版本,查看 最新版本

// ==UserScript==
// @name       teblefixer
// @namespace  http://mongla.net
// @description fdbsaazbv
// @version    1.0
// @include    http://rezerwacje.ufs.pt/reports*
// @require    http://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==

(function() {
    var css = ".wheatButton { padding: 5px 10px; display: inline-block; color: black!important; font-size: 11px; font-weight: bold; font-variant: small-caps; text-decoration: none!important; background-color: #606060; border-radius: 2px; cursor: pointer; -webkit-font-smoothing:antialiased;  box-sizing: border-box; box-shadow: -2px 2px 1px black; border: 1px solid #1b1b1b; transition: all 250ms;  } .wheatButton:hover{ background-color: #1b1b1b; color: #d35400!important; box-shadow: -4px 4px 5px black!important; border: 1px solid #606060; transition: all 250ms;} .tatabelka {   table-layout: fixed; word-wrap: break-word; font-variant: small-caps; }";
    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 heads = document.getElementsByTagName("head");
        if (heads.length > 0) {
            var node = document.createElement("style");
            node.type = "text/css";
            node.appendChild(document.createTextNode(css));
            heads[0].appendChild(node); 
        }
    }
})();
$(document).ready(function ()
                  {
                      $("<button>",
                        {
                            "class": "wheatButton",
                            text: "Zwiń wiersze",
                            "id": "tabelka",
                            style: "position: fixed; top: 50px; right: 5px;"
                        }).appendTo("body"); 
                      $('#tabelka').click(function() {
                          tabelka();
                      });
                       function tabelka()
                      {
                         $("table").toggleClass( "tatabelka" );
                      }
                  });