1. Куча / Говнокод #28574

    −1

    1. 1
    IT Оффтоп #166

    #136: https://govnokod.ru/27845 https://govnokod.xyz/_27845
    #137: https://govnokod.ru/27857 https://govnokod.xyz/_27857
    #138: https://govnokod.ru/27867 https://govnokod.xyz/_27867
    #139: https://govnokod.ru/27887 https://govnokod.xyz/_27887
    #140: https://govnokod.ru/27900 https://govnokod.xyz/_27900
    #141: https://govnokod.ru/27914 https://govnokod.xyz/_27914
    #142: https://govnokod.ru/27942 https://govnokod.xyz/_27942
    #143: https://govnokod.ru/27960 https://govnokod.xyz/_27960
    #144: https://govnokod.ru/27972 https://govnokod.xyz/_27972
    #145: https://govnokod.ru/27996 https://govnokod.xyz/_27996
    #146: https://govnokod.ru/28008 https://govnokod.xyz/_28008
    #147: https://govnokod.ru/28049 https://govnokod.xyz/_28049
    #148: https://govnokod.ru/28087 https://govnokod.xyz/_28087
    #149: https://govnokod.ru/28136 https://govnokod.xyz/_28136
    #150: https://govnokod.ru/28157 https://govnokod.xyz/_28157
    #151: https://govnokod.ru/28209 https://govnokod.xyz/_28209
    #152: https://govnokod.ru/28217 https://govnokod.xyz/_28217
    #153: https://govnokod.ru/28232 https://govnokod.xyz/_28232
    #154: https://govnokod.ru/28275 https://govnokod.xyz/_28275
    #155: https://govnokod.ru/28281 https://govnokod.xyz/_28281
    #156: https://govnokod.ru/28322 https://govnokod.xyz/_28322
    #157: https://govnokod.ru/28344 https://govnokod.xyz/_28344
    #158: https://govnokod.ru/28366 https://govnokod.xyz/_28366
    #159: https://govnokod.ru/28391 https://govnokod.xyz/_28391
    #160: https://govnokod.ru/28434 https://govnokod.xyz/_28434
    #161: https://govnokod.ru/28449 https://govnokod.xyz/_28449
    #162: https://govnokod.ru/28477 https://govnokod.xyz/_28477
    #163: https://govnokod.ru/28501 https://govnokod.xyz/_28501
    #164: https://govnokod.ru/28527 https://govnokod.xyz/_28527
    #165: https://govnokod.ru/28557 https://govnokod.xyz/_28557

    nepeKamHblu_nemyx, 26 Января 2023

    Комментарии (426)
  2. Куча / Говнокод #28573

    −1

    1. 1
    Пиздец-оффтоп #63

    #33: https://govnokod.ru/27801 https://govnokod.xyz/_27801
    #34: https://govnokod.ru/27817 https://govnokod.xyz/_27817
    #35: https://govnokod.ru/27822 https://govnokod.xyz/_27822
    #36: https://govnokod.ru/27826 https://govnokod.xyz/_27826
    #37: https://govnokod.ru/27827 https://govnokod.xyz/_27827
    #38: https://govnokod.ru/27833 https://govnokod.xyz/_27833
    #39: https://govnokod.ru/27862 https://govnokod.xyz/_27862
    #40: https://govnokod.ru/27869 https://govnokod.xyz/_27869
    #41: https://govnokod.ru/27933 https://govnokod.xyz/_27933
    #42: (vanished) https://govnokod.xyz/_27997
    #43: https://govnokod.ru/28042 https://govnokod.xyz/_28042
    #44: https://govnokod.ru/28080 https://govnokod.xyz/_28080
    #45: https://govnokod.ru/28086 https://govnokod.xyz/_28086
    #46: https://govnokod.ru/28105 https://govnokod.xyz/_28105
    #47: https://govnokod.ru/28166 https://govnokod.xyz/_28166
    #48: https://govnokod.ru/28229 https://govnokod.xyz/_28229
    #49: https://govnokod.ru/28298 https://govnokod.xyz/_28298
    #50: https://govnokod.ru/28308 https://govnokod.xyz/_28308
    #51: https://govnokod.ru/28329 https://govnokod.xyz/_28329
    #52: https://govnokod.ru/28340 https://govnokod.xyz/_28340
    #53: (vanished) https://govnokod.xyz/_28346
    #54: https://govnokod.ru/28353 https://govnokod.xyz/_28353
    #55: https://govnokod.ru/28361 https://govnokod.xyz/_28361
    #56: https://govnokod.ru/28383 https://govnokod.xyz/_28383
    #57: https://govnokod.ru/28411 https://govnokod.xyz/_28411
    #58: https://govnokod.ru/28454 https://govnokod.xyz/_28454
    #59: https://govnokod.ru/28472 https://govnokod.xyz/_28472
    #60: https://govnokod.ru/28540 https://govnokod.xyz/_28540
    #61: https://govnokod.ru/28548 https://govnokod.xyz/_28548
    #62: https://govnokod.ru/28555 https://govnokod.xyz/_28555

    nepeKamHblu_nemyx, 26 Января 2023

    Комментарии (464)
  3. Куча / Говнокод #28572

    −2

    1. 1
    Политота #19

    #1: https://govnokod.ru/15804 https://govnokod.xyz/_15804
    #2: https://govnokod.ru/19910 https://govnokod.xyz/_19910
    #3: https://govnokod.ru/23643 https://govnokod.xyz/_23643
    #4: (vanished) https://govnokod.xyz/_24822
    #5: https://govnokod.ru/24868 https://govnokod.xyz/_24868
    #6: (vanished) https://govnokod.xyz/_26648
    #7: https://govnokod.ru/26673 https://govnokod.xyz/_26673
    #8: https://govnokod.ru/27052 https://govnokod.xyz/_27052
    #9: https://govnokod.ru/27852 https://govnokod.xyz/_27852
    #10: https://govnokod.ru/28060 https://govnokod.xyz/_28060
    #11: https://govnokod.ru/28091 https://govnokod.xyz/_28091
    #12: https://govnokod.ru/28103 https://govnokod.xyz/_28103
    #13: https://govnokod.ru/28144 https://govnokod.xyz/_28144
    #14: https://govnokod.ru/28270 https://govnokod.xyz/_28270
    #15: https://govnokod.ru/28341 https://govnokod.xyz/_28341
    #16: https://govnokod.ru/28379 https://govnokod.xyz/_28379
    #17: https://govnokod.ru/28394 https://govnokod.xyz/_28394
    #18: https://govnokod.ru/28440 https://govnokod.xyz/_28440

    nepeKamHblu_nemyx, 23 Января 2023

    Комментарии (429)
  4. C++ / Говнокод #28571

    +3

    1. 1
    2. 2
    С++ признан опасным. Власти США призывают разработчиков отказаться от разработки на нем приложений.
    https://dzen.ru/news/story/Vlasti_SSHA_trebuyut_razrabotchikov_otkazatsya_otispolzovaniya_yazyka_programmirovaniya_C--6bd1377f55599eb3e8b5f3b852e52b90?lang=ru&rubric=personal_feed&fan=1&stid=T5HyeXddnnEZJtv923hF&t=1674486417&persistent_id=1560561255&story=520422d0-c284-5803-bdc8-d030bb2c3dda&issue_tld=ru

    Молитесь.

    Support, 23 Января 2023

    Комментарии (2)
  5. Куча / Говнокод #28570

    +1

    1. 1
    я дрочу

    cepreu_monoJlb, 23 Января 2023

    Комментарии (0)
  6. Куча / Говнокод #28569

    0

    1. 1
    Дареному коню, как говориться, в зубы не смотрят...

    Иго-го!

    CTOMATOJlOr, 23 Января 2023

    Комментарии (2)
  7. Go / Говнокод #28568

    −2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    package main
    
    import (
        "fmt"
        "log"
    )
    
    func square(x int) (int, error) {
        return x * x, fmt.Errorf("Какой багор )))")
    }
    
    func main() {
        var err error
        a := 10
        if a % 2 == 0 {
            res, err := square(a)
            if err != nil {
                err = fmt.Errorf("Какой багор 2 )))")
            }
            log.Printf("res=%v", res)
        }
        log.Printf("err=%v", err)
    }

    Какой багор )))

    https://github.com/dominikh/go-tools/issues/917

    3_dar, 23 Января 2023

    Комментарии (7)
  8. VisualBasic / Говнокод #28567

    −2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    Public Function DescendingSort(ByRef Data As Variant) As Variant
        Dim i As Long
        For i = LBound(Data) To UBound(Data) - 1
            Dim j As Long
            For j = i + 1 To UBound(Data)
                If Data(i) < Data(j) Then
                    Dim Temp As Variant
                    Temp = Data(j)
                    Data(j) = Data(i)
                    Data(i) = Temp
                End If
            Next
        Next
    
        DescendingSort = Data
    End Function

    Вот все спрашивают, зачем на собеседованиях требуют сортировки писать — так вот для этого! Вдруг вам придётся писать на «VBA»?
    > Как в VBA правильно создавать одномерный массив. ArrayList
    https://habr.com/ru/post/712000/

    ISO, 23 Января 2023

    Комментарии (279)
  9. Куча / Говнокод #28566

    0

    1. 1
    LongLongToULongLong

    -

    TAPAC, 22 Января 2023

    Комментарии (1)
  10. JavaScript / Говнокод #28565

    −1

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    98. 98
    99. 99
    const o = {};
    o.operationsBtn = '<a class="button" href="market/user/1/payments" style="display:inline-flex;align-items:center">...</a>';
    const q = {};
    q.renamemodal = '<div class="xenOverlay" style="top: 10%;"><div class="scroll-wrapper sectionMain scrollbar-macosx scrollbar-dynamic" style="position: relative;"><div class="sectionMain scrollbar-macosx scrollbar-dynamic scroll-content" id="SelectForumOverlayScrollbar" style="height: auto; margin-bottom: 0px; margin-right: 0px; max-height: 332px;"><h1 class="heading h1" style="font-size: 1.5em; text-align: center; font-weight: 600; padding: 14px;">Переименовать пользователя</h1><a class="close OverlayCloser"></a><div style="padding: 20px;"><div class="textHeading" style="margin-top: 0">Введите новый никнейм</div><input id="lztnextrename_input" class="textCtrl" style="width: 100%;" maxlength="50"><div style="margin-top:20px"><button class="button primary" id="lztnextrenamesave">Сохранить</button><button class="button" style="margin-left:10px" id="lztnextrenamereset">Сбросить</button><div id="show_renamed_users" style="opacity: 0.4; cursor: pointer; margin-top: 18px; float: right;">Показать переименованных</div></div></div></div></div></div>';
    const G = {};
    G.admin = o, G.lztnext = q;
    const j = G;
    function L() {
      return "aboba";
    }
    const b = abc, c = CryptoJS;
    let Z = {};
    const d = {};
    d.md5 = "abc", d.CryptoJS = "crypto";
    const D = d;
    for (const rQ of Object.entries(D)) {
      window[rQ[1]] = window[rQ[0]];
    }
    if (location.host.match(/\./g).length !== 1 || ["lolz.guru", "zelenka.guru"].indexOf(location.hostname) === -1) return;
    const n = {}, E = GM_info.script.updateURL.split("/")[4].split(".")[0];
    if (eval != unsafeWindow.eval) {
      alert("пашол нахуй");
      return;
    }
    NodeList.prototype.forEach = function (rf) {
      return Array.from(this).forEach(rf);
    };
    const T = [];
    ra("#lztnext-custom-smilies {margin-bottom: 20px}");
    let i = {get: (...rf) => {
      if (i.s) return typeof GM_getValue !== "undefined" ? GM_getValue(...rf) : localStorage.getItem(...rf);
    }, set: typeof GM_setValue !== "undefined" ? GM_setValue : localStorage.setItem, cache: {get: rf => {
      if (i.s) return i.get("_cache_" + rf);
    }, set: (rf, rP) => {
      return i.set("_cache_" + rf, rP);
    }, clear: (rf = "") => {
      i.keys().forEach(rp => {
        if (rp.startsWith("_cache_" + rf) && !rp.match(/(banned)/)) i.del(rp);
      });
    }}, del: typeof GM_deleteValue !== "undefined" ? GM_deleteValue : localStorage.removeItem, keys: typeof GM_listValues !== "undefined" ? GM_listValues : () => {
      return Object.keys(localStorage);
    }, s: true};
    const U = i.get("v");
    if (!U || GM_info.script.version > U) {
      i.cache.clear(), location.reload(), i.set("v", GM_info.script.version);
    }
    !i.get("start") && (["hide_contests_content", "start", "hide_ads", "hide_backgrounds"].forEach(rP => i.set(rP, "true")), i.set("theme", "next"));
    let I = i.get("xenforo_uuid") || localStorage.getItem("xenforo_uuid"), z = i.get("user_id") || localStorage.getItem("uid");
    (!I || !z) && rr();
    const Y = false;
    let g = JSON.parse(i.cache.get("themes") || "null") || {default: {name: "Обычная", source: "data:text/plain,", author: "Lolzteam", palette: ["rgba(52, 52, 52)", "rgb(214,214,214)"]}, next: {name: "Next", source: "https://lztnext.0-day.pw/assets/themes/next.css", author: "кустик, zoto_ff", palette: ["rgba(33, 33, 33)", "rgb(13, 179, 121)"]}};
    const {fetch: k} = unsafeWindow, l = {};
    l.headers = {};
    const N = (rP, rp = l) => {
      return new Promise((a1, a2) => {
        rp.headers = rp.headers || {};
        if (rP.match(u)) {
          if (!z) return;
          rp.headers["lztnext-payload"] = E, rp.headers.Authorization = rp.headers.Authorization || "Bearer " + I.split("%")[0], rp.headers["lolz-user-id"] = z, rp.headers["lztnext-version"] = GM_info.script.version;
          const a5 = Math.floor(Date.now() / 1e3), a6 = a5 + "," + b(L() + ("-" + rp.headers["lztnext-payload"] + "-" + rp.headers.Authorization + "-" + rp.headers["lolz-user-id"] + "-" + rp.headers["lztnext-version"] + "-" + (a5 - a5 % 22)));
          rp.headers["lztnext-hash"] = a6;
        }
        rp.onabort = () => a2(), rp.onerror = () => a2(), rp.ontimeout = () => a2(), rp.onload = a8 => {
          a1(a8.response);
        }, rp.url = rP, GM_xmlhttpRequest(rp);
      });
    };
    if (Y) unsafeWindow.storage = i;
    const u = "https://lztnext.0-day.pw/";
    function t(rP = null, rp = false) {
      rM(rP), rO(rP);
      if (i.get("hide_avatars") === "true") {
        document.querySelectorAll(".avatar img, .avatar span.img").forEach(a3 => rJ(a3));
        if (rp) {
          const a3 = $$(".avatarScaler");
          if (a3.length) {
            const a4 = a3.find("img"), a5 = $$("#page_info_wrap .username span");
            let a6 = a5.attr("data-renamed") || a5.text();
            a4.replaceWith(re(a4, a6, true));
          }
        }
      } else document.querySelectorAll(".avatar img").forEach(async a7 => {
        var _U$Cv, _c$CS;
        const a9 = await rw(a7.src);
        if (!a7.ad) a7.src = a9;
      }), document.querySelectorAll(".avatar span.img.s").forEach(async a7 => {
        const a8 = await rw(a7.style["background-image"].slice(5, -2));
        if (!a7.ad) a7.style["background-image"] = "url(" + a8 + ")";
      });
      const a1 = i.get("redirect");
      if (a1 && a1 !== "none") {
        const a7 = a1 === "lolz" ? "zelenka.guru/" : "lolz.guru/", a8 = a1 === "zelenka" ? "zelenka.guru/" : "lolz.guru/";
        document.querySelectorAll('a[href*="' + a7 + '"]').forEach(async a9 => {
          a9.href = a9.href.replace(a7, a8);
        }), Array.from($('a:contains("' + a7 + '")')).forEach(async a9 => {
          a9.innerHTML = a9.innerHTML.replace(new RegExp(a7.replace(/\//g, "\\/"), "g"), a8);
        });
      }
    }

    jcyozmzl, 20 Января 2023

    Комментарии (4)