Koszowiec

gisopdjfgopsd

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       Koszowiec
// @namespace  http://mongla.net
// @description gisopdjfgopsd
// @version    0.7
// @include    http://www.ufs.pt/forum/postings.php*
// @include    http://www.ufs.pt/forum/inlinemod.php*
// @require   http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// ==/UserScript==

(function() {
    var css = "\n.wheatButton { vertical-align: top; display: inline-block; padding: 5px 6px 4px; background-color: #FFA502; color: black!important; text-decoration: none!important; border-radius: 4px; font-weight: bold; cursor: pointer; }\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 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 ()
                  {
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Do Kosza",
                            "id": "kosz",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 160px; right: 85px;"
                        }).appendTo("body"); 
                      $('#kosz').click(function() {
                          kosz();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Kosz Kont",
                            "id": "kont",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 160px; right: 160px;"
                        }).appendTo("body"); 
                      $('#kont').click(function() {
                          kont();
                      });
                     $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Upload Do Poprawy",
                            "id": "udp",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 130px; right: 85px;"
                        }).appendTo("body"); 
                      $('#udp').click(function() {
                          udp();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Niezatwierdzone",
                            "id": "niezatwierdzony",
                            value: "niezatwierdzony",
                            type: "button",
                            style: "position: fixed; top: 190px; right: 85px;"
                        }).appendTo("body"); 
                      $('#niezatwierdzony').click(function() {
                          niezatwierdzony();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Dubel",
                            "id": "dubel",
                            value: "Dubel",
                            type: "button",
                            style: "position: fixed; top: 220px; right: 85px;"
                        }).appendTo("body"); 
                      $('#debul').click(function() {
                          dubell();
                      });
                      
                      function kosz()
                      {
                         $("select[id='destforumid']").val('21');
                         $("input[value='Przenieś wątek']").first().click()
                      }
                       function udp()
                      {
                         $("select[id='destforumid']").val('132');
                         $("input[value='Przenieś wątek']").first().click()
                      }
                       function niezatwierdzony()
                      {
                         $("select[id='destforumid']").val('507');
                         $("input[value='Przenieś wątek']").first().click()
                      }
                      function dubel()
                      {
                         $("select[id='destforumid']").val('501');
                         $("input[value='Przenieś wątek']").first().click()
                      }
                      function kont()
                      {
                         $("select[id='destforumid']").val('176');
                         $("input[value='Przenieś wątek']").first().click()
                      }
   })