Koszowiec

gisopdjfgopsd

目前為 2017-01-23 提交的版本,檢視 最新版本

// ==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: #01ffe9; 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: 20px; right: 85px;"
                        }).appendTo("body"); 
                      $('#kosz').click(function() {
                          kosz();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Kosz Kont",
                            "id": "kont",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 20px; 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: 50px; right: 85px;"
                        }).appendTo("body"); 
                      $('#udp').click(function() {
                          udp();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Niezatwierdzone",
                            "id": "niezatwierdzony",
                            value: "niezatwierdzony",
                            type: "button",
                            style: "position: fixed; top: 80px; right: 85px;"
                        }).appendTo("body"); 
                      $('#niezatwierdzony').click(function() {
                          niezatwierdzony();
                      });
                      $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Dubel",
                            "id": "dubel",
                            value: "Dubel",
                            type: "button",
                            style: "position: fixed; top: 110px; right: 85px;"
                        }).appendTo("body"); 
                      $('#debul').click(function() {
                          dubell();
                      });
                      
    					  // added by melman
					  
					   $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Wykonane REQ",
                            "id": "req",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 150px; right: 85px;"
                        }).appendTo("body"); 
                      $('#req').click(function() {
                          req();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Polskie",
                            "id": "pl",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 190px; right: 85px;"
                        }).appendTo("body"); 
                      $('#pl').click(function() {
                          pl();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "LEK/DUB",
                            "id": "lek",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 190px; right: 145px;"
                        }).appendTo("body"); 
                      $('#lek').click(function() {
                          lek();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Cam/TS",
                            "id": "cam",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 220px; right: 85px;"
                        }).appendTo("body"); 
                      $('#cam').click(function() {
                          cam();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "ENG HQ",
                            "id": "eng",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 220px; right: 150px;"
                        }).appendTo("body"); 
                      $('#eng').click(function() {
                          eng();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Animowane",
                            "id": "anim",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 250px; right: 85px;"
                        }).appendTo("body"); 
                      $('#anim').click(function() {
                          anim();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Anime",
                            "id": "anime",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 250px; right: 175px;"
                        }).appendTo("body"); 
                      $('#anime').click(function() {
                          anime();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "720/1080",
                            "id": "hd",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 280px; right: 85px;"
                        }).appendTo("body"); 
                      $('#hd').click(function() {
                          hd();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "x264",
                            "id": "x264",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 310px; right: 85px;"
                        }).appendTo("body"); 
                      $('#x264').click(function() {
                          x264();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "x265",
                            "id": "x265",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 310px; right: 132px;"
                        }).appendTo("body"); 
                      $('#x265').click(function() {
                          x265();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "3D",
                            "id": "trzy",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 280px; right: 165px;"
                        }).appendTo("body"); 
                      $('#trzy').click(function() {
                          trzy();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Dokumentalne",
                            "id": "doku",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 340px; right: 85px;"
                        }).appendTo("body"); 
                      $('#doku').click(function() {
                          doku();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Pełne sezony",
                            "id": "sezon",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 380px; right: 85px;"
                        }).appendTo("body"); 
                      $('#sezon').click(function() {
                          sezon();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Pojedyńcze odcinki",
                            "id": "poj",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 410px; right: 85px;"
                        }).appendTo("body"); 
                      $('#poj').click(function() {
                          poj();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Seriale Anime",
                            "id": "sanime",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 440px; right: 85px;"
                        }).appendTo("body"); 
                      $('#sanime').click(function() {
                          sanime();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Gry PC PL",
                            "id": "grypl",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 480px; right: 85px;"
                        }).appendTo("body"); 
                      $('#grypl').click(function() {
                          grypl();
                      });
					  $("<a>",
                        {
                            "class": "wheatButton",
                            text: "Gry PC ENG",
                            "id": "gryeng",
                            value: "up",
                            type: "button",
                            style: "position: fixed; top: 510px; right: 85px;"
                        }).appendTo("body"); 
                      $('#gryeng').click(function() {
                          gryeng();
                      });
					  
					  function req()
                      {
                         $("select[id='destforumid']").val('490');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					    function pl()
                      {
                         $("select[id='destforumid']").val('52');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function lek()
                      {
                         $("select[id='destforumid']").val('51');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					   function cam()
                      {
                         $("select[id='destforumid']").val('165');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function eng()
                      {
                         $("select[id='destforumid']").val('166');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function anim()
                      {
                         $("select[id='destforumid']").val('126');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function anime()
                      {
                         $("select[id='destforumid']").val('392');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function hd()
                      {
                         $("select[id='destforumid']").val('167');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function x264()
                      {
                         $("select[id='destforumid']").val('170');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function x265()
                      {
                         $("select[id='destforumid']").val('804');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function trzy()
                      {
                         $("select[id='destforumid']").val('725');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function doku()
                      {
                         $("select[id='destforumid']").val('512');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function sezon()
                      {
                         $("select[id='destforumid']").val('122');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function poj()
                      {
                         $("select[id='destforumid']").val('54');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function sanime()
                      {
                         $("select[id='destforumid']").val('755');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					   function grypl()
                      {
                         $("select[id='destforumid']").val('271');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  function gryeng()
                      {
                         $("select[id='destforumid']").val('274');
                         $("input[value='Przenieś wątki']").first().click()
                      }
					  
					  // end
    
                      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()
                      }
   })