Блог

Вневременные статьи о жизни предпринимателей, бизнесе и стартапах.
Copyright 2026 ScripTop
Статистика Здесь 221 предпринимателей и специалистов создали 355 тем и написали 460 сообщений. 4771 человек состоят в нашем сообществе. Основное Финансы Сферы
Верх
ArrayObject {#229
  -storage: array:358 [
    "ExUp_BccEmail" => "mail.scriptop@gmail.com"
    "ExUp_BccEmail_Action" => """
      purchased_upgrade\n
      purchased_subscription\n
      expired_upgrade\n
      expired_subscription
      """
    "ExUp_ShowExtendFailReason" => "0"
    "acpSearchExclude" => []
    "activitySummaryEmail" => array:4 [
      "enabled" => false
      "last_activity_min_days" => 14
      "email_frequency_days" => 14
      "last_activity_max_days" => 180
    ]
    "activitySummaryEmailBatchLimit" => "100"
    "addBanUserGroup" => "0"
    "adminRequireTfa" => "0"
    "adsDisallowedTemplates" => ""
    "akismetKey" => ""
    "alertExpiryDays" => "7"
    "alertsPerPage" => "250"
    "alertsPopupExpiryDays" => "7"
    "allowGuestRte" => "1"
    "allowVideoUploads" => array:2 [
      "enabled" => "1"
      "size" => "5120"
    ]
    "allowedCodeLanguages" => """
      apacheconf\n
      applescript\n
      aspnet\n
      bash\n
      c\n
      clike\n
      coffeescript\n
      cpp\n
      csharp\n
      css\n
      diff\n
      git\n
      html\n
      http\n
      ini\n
      java\n
      javascript\n
      json\n
      jsx\n
      less\n
      makefile\n
      markdown\n
      nginx\n
      objectivec\n
      perl\n
      php\n
      python\n
      ruby\n
      sass\n
      scss\n
      sql\n
      svg\n
      swift\n
      wiki\n
      xml\n
      yaml
      """
    "approveSharedBannedRejectedIp" => array:2 [
      "enabled" => "1"
      "days" => "7"
    ]
    "attachmentExtensions" => """
      png\n
      jpg\n
      jpeg\n
      webp\n
      gif
      """
    "attachmentMaxDimensions" => array:2 [
      "width" => "5000"
      "height" => "5000"
    ]
    "attachmentMaxFileSize" => "5120"
    "attachmentMaxPerMessage" => "10"
    "attachmentThumbnailDimensions" => "1000"
    "autoEmbedMedia" => array:2 [
      "embedType" => "1"
      "linkBbCode" => "[i][size=2][url={$url}]View: {$url}[/url][/size][/i]"
    ]
    "av_threadTitles_max" => "65"
    "av_threadTitles_min" => "20"
    "av_ttm_forums" => array:1 [
      0 => "0"
    ]
    "boardActive" => "1"
    "boardDescription" => "Глобальное бизнес-сообщество, где вы можете расти личностно и профессионально, налаживать связи и привлекать новых клиентов."
    "boardInactiveMessage" => "Извините, в настоящее время сайт недоступен. Пожалуйста, зайдите позже."
    "boardShortTitle" => "BSS Forum RU"
    "boardTitle" => "BSS Forum RU"
    "boardUrl" => "https://ru.bss.vc"
    "boardUrlCanonical" => "1"
    "bounceEmailAddress" => ""
    "bsUcConsiderFooter" => "1"
    "bsUcEnableHistoryPush" => "0"
    "bsUcEnableResource" => "0"
    "bsUcEnableThread" => "1"
    "bsUcEnableThreadView" => "1"
    "bsUcEnableWhatsNew" => "0"
    "bsUcScrollPercent" => "60"
    "captcha" => ""
    "categoryOwnPage" => "0"
    "censorCharacter" => "*"
    "censorWords" => array:44 [
      0 => array:3 [
        "word" => "*хуй*"
        "regex" => "#хуй#iu"
        "replace" => 3
      ]
      1 => array:3 [
        "word" => "хуе*"
        "regex" => "#(?<=\W|^)хуе#iu"
        "replace" => 3
      ]
      2 => array:3 [
        "word" => "хуё*"
        "regex" => "#(?<=\W|^)хуё#iu"
        "replace" => 3
      ]
      3 => array:3 [
        "word" => "*сука*"
        "regex" => "#сука#iu"
        "replace" => 4
      ]
      4 => array:3 [
        "word" => "*сучий*"
        "regex" => "#сучий#iu"
        "replace" => 5
      ]
      5 => array:3 [
        "word" => "*пизд*"
        "regex" => "#пизд#iu"
        "replace" => 4
      ]
      6 => array:3 [
        "word" => "*гавно*"
        "regex" => "#гавно#iu"
        "replace" => 5
      ]
      7 => array:3 [
        "word" => "*говно*"
        "regex" => "#говно#iu"
        "replace" => 5
      ]
      8 => array:3 [
        "word" => "*дерьм*"
        "regex" => "#дерьм#iu"
        "replace" => 5
      ]
      9 => array:3 [
        "word" => "*бляд*"
        "regex" => "#бляд#iu"
        "replace" => 4
      ]
      10 => array:3 [
        "word" => "блят*"
        "regex" => "#(?<=\W|^)блят#iu"
        "replace" => 4
      ]
      11 => array:3 [
        "word" => "ебал*"
        "regex" => "#(?<=\W|^)ебал#iu"
        "replace" => 4
      ]
      12 => array:3 [
        "word" => "ебат*"
        "regex" => "#(?<=\W|^)ебат#iu"
        "replace" => 4
      ]
      13 => array:3 [
        "word" => "*ебад*"
        "regex" => "#ебад#iu"
        "replace" => 4
      ]
      14 => array:3 [
        "word" => "ебу*"
        "regex" => "#(?<=\W|^)ебу#iu"
        "replace" => 3
      ]
      15 => array:3 [
        "word" => "манда*"
        "regex" => "#(?<=\W|^)манда#iu"
        "replace" => 5
      ]
      16 => array:3 [
        "word" => "*дрочит*"
        "regex" => "#дрочит#iu"
        "replace" => 6
      ]
      17 => array:3 [
        "word" => "шлюх*"
        "regex" => "#(?<=\W|^)шлюх#iu"
        "replace" => 4
      ]
      18 => array:3 [
        "word" => "шалав*"
        "regex" => "#(?<=\W|^)шалав#iu"
        "replace" => 5
      ]
      19 => array:3 [
        "word" => "*пидор*"
        "regex" => "#пидор#iu"
        "replace" => 5
      ]
      20 => array:3 [
        "word" => "*пидар*"
        "regex" => "#пидар#iu"
        "replace" => 5
      ]
      21 => array:3 [
        "word" => "*писю*"
        "regex" => "#писю#iu"
        "replace" => 4
      ]
      22 => array:3 [
        "word" => "мудак*"
        "regex" => "#(?<=\W|^)мудак#iu"
        "replace" => 5
      ]
      23 => array:3 [
        "word" => "курва*"
        "regex" => "#(?<=\W|^)курва#iu"
        "replace" => 5
      ]
      24 => array:3 [
        "word" => "наёб*"
        "regex" => "#(?<=\W|^)наёб#iu"
        "replace" => 4
      ]
      25 => array:3 [
        "word" => "жопа*"
        "regex" => "#(?<=\W|^)жопа#iu"
        "replace" => 4
      ]
      26 => array:3 [
        "word" => "dick*"
        "regex" => "#(?<=\W|^)dick#iu"
        "replace" => 4
      ]
      27 => array:3 [
        "word" => "елда*"
        "regex" => "#(?<=\W|^)елда#iu"
        "replace" => 4
      ]
      28 => array:3 [
        "word" => "конча*"
        "regex" => "#(?<=\W|^)конча#iu"
        "replace" => 5
      ]
      29 => array:3 [
        "word" => "дупа*"
        "regex" => "#(?<=\W|^)дупа#iu"
        "replace" => 4
      ]
      30 => array:3 [
        "word" => "уёб*"
        "regex" => "#(?<=\W|^)уёб#iu"
        "replace" => 3
      ]
      31 => array:3 [
        "word" => "*пидр*"
        "regex" => "#пидр#iu"
        "replace" => 4
      ]
      32 => array:3 [
        "word" => "*ебаны*"
        "regex" => "#ебаны#iu"
        "replace" => 5
      ]
      33 => array:3 [
        "word" => "сдохни*"
        "regex" => "#(?<=\W|^)сдохни#iu"
        "replace" => 6
      ]
      34 => array:3 [
        "word" => "*заеб*"
        "regex" => "#заеб#iu"
        "replace" => 4
      ]
      35 => array:3 [
        "word" => "*хуил*"
        "regex" => "#хуил#iu"
        "replace" => 4
      ]
      36 => array:3 [
        "word" => "*соси*"
        "regex" => "#соси#iu"
        "replace" => 4
      ]
      37 => array:3 [
        "word" => "*залуп*"
        "regex" => "#залуп#iu"
        "replace" => 5
      ]
      38 => array:3 [
        "word" => "манда*"
        "regex" => "#(?<=\W|^)манда#iu"
        "replace" => 5
      ]
      39 => array:3 [
        "word" => "*минет*"
        "regex" => "#минет#iu"
        "replace" => 5
      ]
      40 => array:3 [
        "word" => "*наеб*"
        "regex" => "#наеб#iu"
        "replace" => 4
      ]
      41 => array:3 [
        "word" => "*ссать*"
        "regex" => "#ссать#iu"
        "replace" => 5
      ]
      42 => array:3 [
        "word" => "целка*"
        "regex" => "#(?<=\W|^)целка#iu"
        "replace" => 5
      ]
      43 => array:3 [
        "word" => "гандон*"
        "regex" => "#(?<=\W|^)гандон#iu"
        "replace" => 6
      ]
    ]
    "changeLogLength" => "60"
    "cirilla_stick_msg_max" => "10000"
    "collectServerStats" => array:4 [
      "configured" => "1"
      "enabled" => false
      "installation_id" => ""
      "last_sent" => ""
    ]
    "contactEmailAddress" => "contact@bss.vc"
    "contactEmailSenderHeader" => "0"
    "contactUrl" => array:3 [
      "type" => "default"
      "custom" => false
      "overlay" => false
    ]
    "conversationPopupExpiryHours" => "72"
    "convertMarkdownToBbCode" => "0"
    "cookieConsent" => array:1 [
      "type" => "disabled"
    ]
    "cookieConsentLogLength" => "90"
    "currentVersionId" => "2021270"
    "cv6CoreFaAnimation" => array:2 [
      "fa-spin" => false
      "fa-pulse" => false
    ]
    "cv6CoreFaRotation" => array:5 [
      "fa-rotate-90" => false
      "fa-rotate-180" => false
      "fa-rotate-270" => false
      "fa-flip-vertical" => false
      "fa-flip-horizontal" => false
    ]
    "cv6CoreFaStyle" => array:5 [
      "fal" => false
      "far" => false
      "fas" => false
      "fad" => false
      "fab" => false
    ]
    "cv6CoreImageSample" => ""
    "cv6IconSample" => "fa-check"
    "cv6LetterRegExp" => "[a-zA-Z]"
    "cv6MarkEmptyLetter" => "0"
    "cv6MinimumContent" => "0"
    "cv6NodeIconDoubleClickAction" => "0"
    "cv6NodeIconSvgInline" => "0"
    "cv6RemoveTab" => "0"
    "cv6ShowIconHelper" => "0"
    "cv6ShowNodeIconsinAdmin" => "1"
    "cv6ShowNumberTab" => array:2 [
      "enabled" => false
      "character" => false
    ]
    "cv6ShowOthersTab" => array:2 [
      "enabled" => false
      "character" => false
    ]
    "defaultEmailAddress" => "contact@bss.vc"
    "defaultEmailStyleId" => "0"
    "defaultLanguageId" => "6"
    "defaultStyleId" => "1"
    "disallowedCustomTitles" => """
      admin\n
      moderator\n
      bss\n
      siden\n
      whoopzee\n
      you\n
      scriptop
      """
    "discourageBlankChance" => "15"
    "discourageDelay" => array:2 [
      "min" => 5
      "max" => 10
    ]
    "discourageFloodMultiplier" => "10"
    "discourageRedirectChance" => "15"
    "discourageRedirectUrl" => ""
    "discourageSearchChance" => "40"
    "discussionPreview" => "0"
    "discussionRssContentLength" => "500"
    "discussionsPerPage" => "30"
    "displayVisitorCount" => "icon_indicator"
    "dynamicAvatarEnable" => "1"
    "editHistory" => array:2 [
      "enabled" => "1"
      "length" => "60"
    ]
    "editLogDisplay" => array:2 [
      "enabled" => "1"
      "delay" => "5"
    ]
    "editorDropdownConfig" => array:2 [
      "xfList" => array:3 [
        "cmd" => "xfList"
        "icon" => "fa-list"
        "buttons" => array:4 [
          0 => "formatOL"
          1 => "formatUL"
          2 => "indent"
          3 => "outdent"
        ]
      ]
      "bsHide" => array:3 [
        "cmd" => "bsHide"
        "icon" => "fa-shield"
        "buttons" => array:11 [
          0 => "xfCustom_club"
          1 => "xfCustom_hide"
          2 => "xfCustom_likes"
          3 => "xfCustom_posts"
          4 => "xfCustom_users"
          5 => "xfCustom_groups"
          6 => "xfCustom_clike"
          7 => "xfCustom_days"
          8 => "xfCustom_trophies"
          9 => "xfCustom_userids"
          10 => "xfCustom_buy"
        ]
      ]
    ]
    "editorToolbarConfig" => array:4 [
      "toolbarButtons" => array:4 [
        "moreText" => array:3 [
          "buttons" => array:5 [
            0 => "clearFormatting"
            1 => "bold"
            2 => "italic"
            3 => "insertLink"
            4 => "xfInlineSpoiler"
          ]
          "buttonsVisible" => "8"
          "align" => "left"
        ]
        "moreParagraph" => array:3 [
          "buttons" => array:1 [
            0 => "xfList"
          ]
          "buttonsVisible" => "2"
          "align" => "left"
        ]
        "moreRich" => array:3 [
          "buttons" => array:3 [
            0 => "insertImage"
            1 => "xfSpoiler"
            2 => "bsHide"
          ]
          "buttonsVisible" => "10"
          "align" => "left"
        ]
        "moreMisc" => array:3 [
          "buttons" => array:3 [
            0 => "undo"
            1 => "redo"
            2 => "xfDraft"
          ]
          "buttonsVisible" => "4"
          "align" => "right"
        ]
      ]
      "toolbarButtonsMD" => array:4 [
        "moreText" => array:3 [
          "buttons" => array:5 [
            0 => "clearFormatting"
            1 => "bold"
            2 => "italic"
            3 => "insertLink"
            4 => "xfInlineSpoiler"
          ]
          "buttonsVisible" => "7"
          "align" => "left"
        ]
        "moreParagraph" => array:3 [
          "buttons" => array:1 [
            0 => "xfList"
          ]
          "buttonsVisible" => "2"
          "align" => "left"
        ]
        "moreRich" => array:3 [
          "buttons" => array:3 [
            0 => "insertImage"
            1 => "xfSpoiler"
            2 => "bsHide"
          ]
          "buttonsVisible" => "6"
          "align" => "left"
        ]
        "moreMisc" => array:3 [
          "buttons" => array:3 [
            0 => "undo"
            1 => "redo"
            2 => "xfDraft"
          ]
          "buttonsVisible" => "2"
          "align" => "right"
        ]
      ]
      "toolbarButtonsSM" => array:4 [
        "moreText" => array:3 [
          "buttons" => array:5 [
            0 => "clearFormatting"
            1 => "bold"
            2 => "italic"
            3 => "insertLink"
            4 => "xfInlineSpoiler"
          ]
          "buttonsVisible" => "5"
          "align" => "left"
        ]
        "moreParagraph" => array:3 [
          "buttons" => array:1 [
            0 => "xfList"
          ]
          "buttonsVisible" => "1"
          "align" => "left"
        ]
        "moreRich" => array:3 [
          "buttons" => array:3 [
            0 => "insertImage"
            1 => "xfSpoiler"
            2 => "bsHide"
          ]
          "buttonsVisible" => "3"
          "align" => "left"
        ]
        "moreMisc" => array:3 [
          "buttons" => array:2 [
            0 => "undo"
            1 => "redo"
          ]
          "buttonsVisible" => "2"
          "align" => "right"
        ]
      ]
      "toolbarButtonsXS" => array:4 [
        "moreText" => array:3 [
          "buttons" => array:5 [
            0 => "bold"
            1 => "clearFormatting"
            2 => "italic"
            3 => "insertLink"
            4 => "xfInlineSpoiler"
          ]
          "buttonsVisible" => "1"
          "align" => "left"
        ]
        "moreParagraph" => array:3 [
          "buttons" => array:1 [
            0 => "xfList"
          ]
          "buttonsVisible" => "0"
          "align" => "left"
        ]
        "moreRich" => array:3 [
          "buttons" => array:3 [
            0 => "insertImage"
            1 => "xfSpoiler"
            2 => "bsHide"
          ]
          "buttonsVisible" => "0"
          "align" => "left"
        ]
        "moreMisc" => array:3 [
          "buttons" => array:2 [
            0 => "undo"
            1 => "redo"
          ]
          "buttonsVisible" => "2"
          "align" => "right"
        ]
      ]
    ]
    "emailBounceHandler" => array:8 [
      "enabled" => false
      "type" => false
      "host" => false
      "port" => false
      "username" => false
      "password" => false
      "encryption" => false
      "oauth" => false
    ]
    "emailConversationIncludeMessage" => "0"
    "emailDkim" => array:5 [
      "enabled" => false
      "verified" => false
      "failed" => false
      "domain" => false
      "privateKey" => false
    ]
    "emailFileCheckWarning" => array:2 [
      "enabled" => "1"
      "email" => ""
    ]
    "emailSenderName" => "BSS Forum"
    "emailShare" => "0"
    "emailSoftBounceThreshold" => array:3 [
      "bounce_total" => "3"
      "unique_days" => "3"
      "days_between" => "5"
    ]
    "emailTransport" => array:7 [
      "emailTransport" => "smtp"
      "smtpHost" => "mail.privateemail.com"
      "smtpPort" => 465
      "smtpAuth" => "login"
      "smtpLoginUsername" => "contact@bss.vc"
      "smtpLoginPassword" => "65F2X39ds4X"
      "smtpEncrypt" => "ssl"
    ]
    "emailUnsubscribeHandler" => array:8 [
      "enabled" => false
      "type" => false
      "host" => false
      "port" => false
      "username" => false
      "password" => false
      "encryption" => false
      "oauth" => false
    ]
    "emailWatchedThreadIncludeMessage" => "0"
    "emojiSource" => array:2 [
      "source" => "cdn"
      "path" => false
    ]
    "emojiStyle" => "native"
    "enableMemberList" => "0"
    "enableNewsFeed" => "0"
    "enableNotices" => "0"
    "enablePush" => "1"
    "enableSearch" => "1"
    "enableTagging" => "0"
    "enableTrophies" => "0"
    "enableVerp" => "0"
    "extraCaptchaKeys" => []
    "exup_autoLeaveConversation" => "no_delete"
    "exup_extend_upgrade_button" => "1"
    "exup_notify_by" => array:3 [
      "alert" => array:1 [
        "active" => "alert"
      ]
      "email" => array:1 [
        "active" => "email"
      ]
      "conversation" => false
    ]
    "exup_notify_expired" => "1"
    "exup_notify_purchase" => "1"
    "exup_notify_recurring_extend" => "1"
    "exup_respect_email_privacy" => "0"
    "exup_upgradeUrl" => array:2 [
      "type" => "default"
      "custom" => false
    ]
    "facebookLike" => "0"
    "floodCheckLength" => "10"
    "floodCheckLengthDiscussion" => "10"
    "forumsDefaultPage" => "new_posts"
    "geoLocationUrl" => "https://maps.google.com/maps?q={location}"
    "giphy" => array:3 [
      "enabled" => false
      "api_key" => false
      "rating" => false
    ]
    "googleAnalyticsAnonymize" => "0"
    "googleAnalyticsWebPropertyId" => ""
    "gravatarEnable" => "0"
    "guestShowSignatures" => "0"
    "guestTimeZone" => "Europe/Moscow"
    "hideAllowedPaymentProfiles" => array:1 [
      0 => "-1"
    ]
    "hideBuyCurrency" => "USD"
    "hideBuyGroup" => "0"
    "hideClubMembers" => array:1 [
      0 => "0"
    ]
    "hideContentBuy" => array:3 [
      "enabled" => false
      "price" => false
      "currency" => false
    ]
    "hideExcludeGroups" => array:3 [
      0 => "1"
      1 => "25"
      2 => "7"
    ]
    "hideHiddenBuyOnlyInFirstPost" => "1"
    "homePageUrl" => "/forums/"
    "imageCacheRefresh" => "0"
    "imageCacheTTL" => "7"
    "imageLibrary" => "gd"
    "imageLinkProxy" => array:2 [
      "images" => "1"
      "links" => "1"
    ]
    "imageLinkProxyKey" => "IO4hTa9Bvn6tg50jJoSWPDhT4IMYeB"
    "imageLinkProxyLogLength" => "90"
    "imageLinkProxyReferrer" => array:2 [
      "enabled" => "1"
      "length" => "60"
    ]
    "imageProxyBypass" => array:2 [
      "bypassType" => ""
      "bypassDomains" => false
    ]
    "imageProxyMaxSize" => "5120"
    "includeCaptchaPrivacyPolicy" => "1"
    "includeTitleInUrls" => "1"
    "indexRoute" => ""
    "ipInfoUrl" => "https://whatismyipaddress.com/ip/{ip}"
    "ipLogCleanUp" => array:2 [
      "enabled" => "1"
      "delay" => "365"
    ]
    "jQuerySource" => "microsoft"
    "jobRunTrigger" => "server"
    "jsLastUpdate" => "1777808031"
    "klUIFullTrophyProgress" => "0"
    "klUIPostbitShowcase" => "0"
    "klUIProfileShowcase" => "0"
    "klUIProfileTrophyShowcase" => "0"
    "klUISeparateTrophyTab" => "1"
    "klUIShowPoints" => "0"
    "klUITrophyFollowers" => "0"
    "klUITrophyProgress" => "0"
    "klUiProfileViews" => "1"
    "lastPageLinks" => "3"
    "lfsCurrency" => "USD"
    "lfsPaymentProfiles" => array:1 [
      0 => "-1"
    ]
    "lfsPollUnfocused" => "0"
    "lfsSendEmailStickedLink" => "0"
    "lfsStickedLimit" => "4"
    "lfsStickedLinkCost" => "0"
    "lfsStickedLinkRules" => "0"
    "lfsStickedThreadCost" => "0"
    "lfsThreadsLimit" => array:2 [
      "enable_custom_limit" => false
      "custom_limits" => false
    ]
    "lightBoxUniversal" => "0"
    "linkShare" => "0"
    "loginLimit" => "captcha"
    "logoLink" => "1"
    "lostPasswordCaptcha" => "1"
    "lostPasswordTimeLimit" => "180"
    "maxContentSpamMessages" => "5"
    "maxContentTags" => "20"
    "maxContentTagsPerUser" => "10"
    "maximumSearchResults" => "200"
    "membersPerPage" => "20"
    "messageMaxImages" => "20"
    "messageMaxLength" => "10000"
    "messageMaxMedia" => "0"
    "messagesPerPage" => "10"
    "moderatorLogLength" => "365"
    "multiQuote" => "0"
    "newsFeedMaxItems" => "15"
    "newsFeedMessageSnippetLength" => "140"
    "oEmbedCacheRefresh" => "0"
    "oEmbedCacheTTL" => "7"
    "oEmbedLogLength" => "90"
    "oEmbedRequestReferrer" => array:2 [
      "enabled" => "1"
      "length" => "60"
    ]
    "onlineStatusTimeout" => "15"
    "pinterestShare" => "0"
    "pollMaximumResponses" => "10"
    "preRegAction" => array:3 [
      "enabled" => "1"
      "userGroups" => array:1 [
        0 => "2"
      ]
      "permissionCombinationId" => 3
    ]
    "preventDiscouragedRegistration" => "0"
    "privacyPolicyForceWhitelist" => ""
    "privacyPolicyLastUpdate" => "1664383924"
    "privacyPolicyUrl" => array:2 [
      "type" => "default"
      "custom" => false
    ]
    "profilePostMaxLength" => "500"
    "pushKeysVAPID" => array:2 [
      "publicKey" => "BBpySWeI__9koVpCtrJ9PR3M7D-PfdE4P7-wkJY_IbSy2ij6Ng2MyqznXyptWne0Lq_Me8-Fzbzy_-agTfTA91M"
      "privateKey" => "yoGxKvdFNKNG2en6T5odQi2xll2ecQioU5IbcI3cngc"
    ]
    "r9_yp_redirect" => "login"
    "readMarkingDataLifetime" => "30"
    "redditShare" => "0"
    "registrationCheckDnsBl" => array:3 [
      "check" => "1"
      "action" => "moderate"
      "projectHoneyPotKey" => ""
    ]
    "registrationDefaults" => array:18 [
      "visible" => "1"
      "activity_visible" => "1"
      "content_show_signature" => false
      "show_dob_date" => false
      "show_dob_year" => false
      "receive_admin_email" => false
      "email_on_conversation" => false
      "push_on_conversation" => false
      "sv_exup_email_on_expiring_expired_upgrade" => "1"
      "sv_exup_email_on_upgrade_purchase" => "1"
      "sv_exup_email_on_upgrade_reversal" => "1"
      "creation_watch_state" => "watch_no_email"
      "interaction_watch_state" => ""
      "allow_view_profile" => "everyone"
      "allow_post_profile" => "members"
      "allow_receive_news_feed" => "none"
      "allow_send_personal_conversation" => "none"
      "allow_view_identities" => "everyone"
    ]
    "registrationSetup" => array:7 [
      "enabled" => "1"
      "emailConfirmation" => "1"
      "moderation" => false
      "requireDob" => false
      "minimumAge" => "16"
      "requireLocation" => false
      "requireEmailChoice" => false
    ]
    "registrationTimer" => "0"
    "registrationWelcome" => array:13 [
      "messageEnabled" => false
      "messageParticipants" => false
      "messageTitle" => false
      "messageBody" => false
      "messageOpenInvite" => false
      "messageLocked" => false
      "messageDelete" => false
      "emailEnabled" => false
      "emailFromName" => false
      "emailFromEmail" => false
      "emailTitle" => false
      "emailFormat" => false
      "emailBody" => false
    ]
    "reportIntoForumId" => "0"
    "robotUserGroup" => "25"
    "robotUserGroupSitemap" => "0"
    "romanizeUrls" => "1"
    "rootBreadcrumb" => ""
    "saveDrafts" => array:3 [
      "enabled" => false
      "lifetime" => false
      "saveFrequency" => false
    ]
    "searchMinWordLength" => "4"
    "searchResultsPerPage" => "20"
    "selectQuotable" => "0"
    "sharedIpsCheckLimit" => "28"
    "shortcodeToEmoji" => "0"
    "showEmojiInSmilieMenu" => "0"
    "showMessageOnlineStatus" => "1"
    "similarThreadsEnhancedSearch" => "0"
    "similarThreadsErrorLog" => "0"
    "similarThreadsExcludeDays" => "0"
    "similarThreadsExcludeForums" => array:2 [
      0 => "158"
      1 => "109"
    ]
    "similarThreadsLimit" => "3"
    "similarThreadsMinimumCommonWordLength" => "3"
    "similarThreadsMultibyte" => "1"
    "similarThreadsSameForum" => "0"
    "similarThreadsShowBelowQuickReply" => "1"
    "similarThreadsShowPostThread" => "0"
    "similarThreadsShowPostThreadQuickThread" => "0"
    "similarThreadsStopWords" => "about after all also and any are back because but can come could day even first for from get give  good had have her him his how into it's its just know like look make most new not now one only other our out over people say see seen she some take than that the their them then there these they think this time two use want way well what when which who why will with work would year you your"
    "siropuKeywordLinkingAjaxLinking" => "1"
    "siropuKeywordLinkingCache" => "0"
    "siropuKeywordLinkingCacheKeywordLimit" => "500"
    "siropuKeywordLinkingCreateKeywordsFromTags" => "0"
    "siropuKeywordLinkingCustomFields" => array:4 [
      "thread_view" => false
      "xfrm_resource_view" => false
      "xa_ams_article_view" => false
      "xa_sc_item_view" => false
    ]
    "siropuKeywordLinkingDefaults" => array:14 [
      "css_style" => ""
      "css_class" => ""
      "fa_icon" => ""
      "fa_position" => "before"
      "rel" => false
      "rel_custom" => false
      "target_blank" => false
      "tooltip" => false
      "fa_description" => false
      "case_sensitive" => false
      "count_clicks" => false
      "post_limit" => "1"
      "page_limit" => "0"
      "priority" => "0"
    ]
    "siropuKeywordLinkingEnabledContentTypes" => array:10 [
      "thread" => "1"
      "thread_poll" => "1"
      "thread_article" => "1"
      "thread_question" => "1"
      "thread_suggestion" => "1"
      "conversation" => "1"
      "profile" => "1"
      "resource" => "1"
      "ams_article" => "1"
      "showcase_item" => "1"
    ]
    "siropuKeywordLinkingFirstThreadPostOnly" => "1"
    "siropuKeywordLinkingKeywordsPerPage" => "300"
    "siropuKeywordLinkingMinTagUseCount" => "3"
    "siropuKeywordLinkingUserGroupPostExceptions" => []
    "sitemapAutoRebuild" => "1"
    "sitemapAutoSubmit" => array:2 [
      "enabled" => false
      "urls" => false
    ]
    "sitemapExclude" => []
    "sitemapExtraUrls" => ""
    "spamDefaultOptions" => array:5 [
      "ban_user" => "1"
      "delete_messages" => "1"
      "delete_conversations" => "1"
      "action_threads" => "1"
      "check_ips" => "1"
    ]
    "spamMessageAction" => "soft-delete"
    "spamPhrases" => array:2 [
      "phrases" => ""
      "action" => "moderate"
    ]
    "spamThreadAction" => array:2 [
      "action" => "soft-delete"
      "node_id" => false
    ]
    "spamUserCriteria" => array:3 [
      "message_count" => "30"
      "register_date" => "30"
      "reaction_score" => "5"
    ]
    "stopForumSpam" => array:8 [
      "enabled" => "1"
      "denyThreshold" => "3"
      "moderateThreshold" => "1"
      "frequencyCutOff" => "5"
      "lastSeenCutOff" => "7"
      "hashEmail" => false
      "submitRejections" => false
      "apiKey" => false
    ]
    "svBlockRemovePrefixWithNoPerm" => "1"
    "svClickablePrefixes" => "1"
    "svLogLessFunc" => "0"
    "svMultiPrefixMultipleFilter" => "and"
    "svMultiprefixSortDisplay" => "1"
    "svStripPrefixOnContainerChange" => "1"
    "svg_tupc_tag_enable" => array:2 [
      "post" => 1
      "conversation" => 0
    ]
    "tagCloud" => array:2 [
      "enabled" => "1"
      "count" => "100"
    ]
    "tagCloudMinUses" => "1"
    "tagLength" => array:2 [
      "min" => 3
      "max" => 50
    ]
    "tagValidation" => array:2 [
      "disallowedWords" => ""
      "matchRegex" => ""
    ]
    "tckChangeContentOwner_defaultTimeInterval" => array:3 [
      "hours" => 0
      "minutes" => 0
      "seconds" => 30
    ]
    "templateHistoryLength" => "14"
    "termsLastUpdate" => "1678983398"
    "thmemberslocaltime_show_on_member_pages" => "1"
    "threadAutoReply_delay" => "1"
    "threadUpUserGroupTimeouts" => array:3 [
      0 => array:2 [
        "user_group_id" => "11"
        "timeout" => "43200"
      ]
      1 => array:2 [
        "user_group_id" => "15"
        "timeout" => "21600"
      ]
      2 => array:2 [
        "user_group_id" => "10"
        "timeout" => "8640"
      ]
    ]
    "thuserimprovements_member_tooltip_showcase" => "0"
    "thusernamecolor_disallowedColors" => ""
    "tosForceWhitelist" => ""
    "tosUrl" => array:2 [
      "type" => "default"
      "custom" => false
    ]
    "tpv_appendAt" => "0"
    "tpv_autoApplyNewMembers" => "0"
    "tpv_changeDays" => "7"
    "tpv_disallowUrls" => """
      admin\n
      you
      """
    "tpv_revokeAction" => "profile"
    "tpv_vanityLength" => "3"
    "tpv_vanityMaxLength" => "50"
    "tpv_vanityURLType" => "0"
    "tumblrShare" => "0"
    "tweet" => array:3 [
      "enabled" => false
      "via" => false
      "related" => false
    ]
    "unsubscribeEmailAddress" => ""
    "upgradeCheckStableOnly" => "1"
    "urlToPageTitle" => array:2 [
      "enabled" => false
      "format" => false
    ]
    "urlToRichPreview" => "0"
    "useFriendlyUrls" => "1"
    "userBanners" => array:4 [
      "showStaff" => "1"
      "displayMultiple" => "1"
      "hideUserTitle" => false
      "showStaffAndOther" => false
    ]
    "userMentionKeepAt" => "1"
    "userTitleLadderField" => "reaction_score"
    "usernameChangeRecentLimit" => "30"
    "usernameChangeRequireReason" => "0"
    "usernameChangeTimeLimit" => "30"
    "usernameLength" => array:2 [
      "min" => 3
      "max" => 20
    ]
    "usernameReuseTimeLimit" => "30"
    "usernameValidation" => array:2 [
      "disallowedNames" => """
        admin\n
        moderator\n
        bss\n
        siden\n
        whoopzee\n
        scriptop
        """
      "matchRegex" => ""
    ]
    "watchAlertActiveOnly" => array:2 [
      "enabled" => false
      "days" => false
    ]
    "webShare" => "0"
    "whatsAppShare" => "0"
    "xc_restrict_guest_views_enable_project" => "0"
    "xc_restrict_guest_views_enable_thread" => "1"
    "xc_restrict_guest_views_enable_xfmg" => "0"
    "xc_restrict_guest_views_enable_xfrm" => "0"
    "xc_restrict_guest_views_error_message" => "restrict_guest_views_error"
    "xc_restrict_guest_views_error_message_redirect" => "restrict_guest_views_error"
    "xc_restrict_guest_views_exclude_forums" => array:8 [
      0 => "9"
      1 => "160"
      2 => "85"
      3 => "137"
      4 => "150"
      5 => "151"
      6 => "147"
      7 => "149"
    ]
    "xc_restrict_guest_views_exclude_user_states" => array:7 [
      0 => "valid"
      1 => "email_confirm"
      2 => "email_confirm_edit"
      3 => "email_bounce"
      4 => "moderated"
      5 => "rejected"
      6 => "disabled"
    ]
    "xc_restrict_guest_views_hide_all_message" => "0"
    "xc_restrict_guest_views_project_max_views" => "10"
    "xc_restrict_guest_views_project_renew_x_hours" => "1"
    "xc_restrict_guest_views_project_see_error_on_page" => "0"
    "xc_restrict_guest_views_redirect_error_exception" => "1"
    "xc_restrict_guest_views_replace_message" => ""
    "xc_restrict_guest_views_thread_max_views" => "5"
    "xc_restrict_guest_views_thread_renew_x_hours" => "12"
    "xc_restrict_guest_views_xcpm_excluded_categories" => []
    "xc_restrict_guest_views_xfmg_exclude_user_states" => []
    "xc_restrict_guest_views_xfmg_excluded_categories" => []
    "xc_restrict_guest_views_xfmg_max_views" => "10"
    "xc_restrict_guest_views_xfmg_renew_x_hours" => "0"
    "xc_restrict_guest_views_xfrm_exclude_user_states" => []
    "xc_restrict_guest_views_xfrm_excluded_categories" => []
    "xc_restrict_guest_views_xfrm_max_views" => "10"
    "xc_restrict_guest_views_xfrm_renew_x_hours" => "1"
    "xc_restrict_guest_views_xfrm_see_error_on_page" => "0"
    "xc_restrict_guest_views_xpm_exclude_user_states" => []
    "xfa_wrt_read_all_date_time" => "10"
    "xfa_wrt_read_collapse_block" => "0"
    "xfa_wrt_read_display_mode" => "username"
    "xfa_wrt_read_display_position" => "below_pagenav"
    "xfa_wrt_read_enable" => "1"
    "xfa_wrt_read_enable_forum" => array:86 [
      0 => "160"
      1 => "85"
      2 => "9"
      3 => "26"
      4 => "25"
      5 => "145"
      6 => "143"
      7 => "82"
      8 => "38"
      9 => "105"
      10 => "77"
      11 => "136"
      12 => "158"
      13 => "107"
      14 => "115"
      15 => "104"
      16 => "31"
      17 => "109"
      18 => "42"
      19 => "22"
      20 => "35"
      21 => "91"
      22 => "33"
      23 => "41"
      24 => "112"
      25 => "16"
      26 => "130"
      27 => "73"
      28 => "87"
      29 => "57"
      30 => "133"
      31 => "125"
      32 => "64"
      33 => "97"
      34 => "94"
      35 => "95"
      36 => "96"
      37 => "71"
      38 => "98"
      39 => "66"
      40 => "65"
      41 => "99"
      42 => "67"
      43 => "69"
      44 => "70"
      45 => "134"
      46 => "86"
      47 => "45"
      48 => "132"
      49 => "78"
      50 => "79"
      51 => "81"
      52 => "80"
      53 => "135"
      54 => "119"
      55 => "13"
      56 => "37"
      57 => "129"
      58 => "75"
      59 => "44"
      60 => "110"
      61 => "10"
      62 => "118"
      63 => "117"
      64 => "47"
      65 => "157"
      66 => "46"
      67 => "103"
      68 => "106"
      69 => "154"
      70 => "155"
      71 => "156"
      72 => "102"
      73 => "76"
      74 => "84"
      75 => "50"
      76 => "51"
      77 => "52"
      78 => "53"
      79 => "100"
      80 => "101"
      81 => "137"
      82 => "150"
      83 => "151"
      84 => "147"
      85 => "149"
    ]
    "xfa_wrt_read_last_x" => "0"
    "xfa_wrt_read_mode" => "first_read"
    "xfa_wrt_read_order" => "read_date"
    "xfa_wrt_view_collapse_block" => "0"
    "xfa_wrt_view_display_mode" => "username"
    "xfa_wrt_view_display_position" => "below_qr"
    "xfa_wrt_view_enable" => "0"
    "xfa_wrt_view_enable_forums" => array:1 [
      0 => "0"
    ]
    "xfa_wrt_view_order" => "alphabetical"
    "xfa_wrt_watch_collapse_block" => "1"
    "xfa_wrt_watch_display_mode" => "avatar"
    "xfa_wrt_watch_display_position" => "below_pagenav"
    "xfa_wrt_watch_enable" => "0"
    "xfa_wrt_watch_enable_forums" => array:1 [
      0 => "0"
    ]
    "xfa_wrt_watch_notification_mode" => "both"
  ]
  flag::STD_PROP_LIST: false
  flag::ARRAY_AS_PROPS: true
  iteratorClass: "ArrayIterator"
}
if (typeof XF.PostEdit !== 'undefined') { XF.PostEdit = XF.extend(XF.PostEdit, { editComplete: function(a, b) { var c = this; XF.setupHtmlInsert(b.html, function(d, e, g) { g = b.threadChanges || {}; temp = e.title.split(' - '); temp.shift(); e.title = temp.join(' - '); g.title && ($("h1.p-title-value .thread-title-text").html(e.h1), $("title").html(e.title), XF.config.visitorCounts.title_count && b.visitor && (XF.pageTitleCache = e.title, XF.pageTitleCounterUpdate(b.visitor.total_unread))); }); } }); } } /* ---------- */ $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .thread-top-info .ai-container:not(.revert) .ai-summarize', function() { let element = $(this); let contentElement = $('html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .message .message-inner .message-cell--main .message-content .message-body .bbWrapper'); element.parent().parent().attr('disabled', '').addClass('loading'); if ($.summarized) { contentElement.html($.summarized); element.html('').parent().parent().removeAttr('disabled').removeClass('loading').addClass('revert'); return; } $.original = contentElement.html(); let content = contentElement.text().replaceAll(/(\r\n|\n|\r)/gm, '.'); content = content.replaceAll('...', '. '); content = content.replaceAll('..', '. '); XF.ajax('post', '/scriptop/ai-summarize', { content: content }, function(data) { contentElement.html(data.content); $.summarized = data.content; element.html('').parent().parent().removeAttr('disabled').removeClass('loading').addClass('revert'); }); }); $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .thread-top-info .ai-container.revert .ai-summarize', function() { let element = $(this); let contentElement = $('html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .message .message-inner .message-cell--main .message-content .message-body .bbWrapper'); contentElement.html($.original); element.html('').parent().parent().removeAttr('disabled').removeClass('revert'); }); $(document).on('click', 'html[data-app="public"][data-template="thread_view"] #ai-lang-apply', function() { Cookies.set('ai-lang', $('#ai-lang').val(), { expires: 365 }); }); /* ---------- */ function threadTitle() { return $('html[data-app="public"][data-template="thread_view"] .p-pageWrapper .p-body .p-body-inner .p-body-main .p-body-content .p-body-header .p-title .p-title-value .thread-title-text') .text() .replaceAll(/(\r\n|\n|\r)/gm, '.') .replaceAll('...', '. (pause) ') .replaceAll('..', '. (pause) ') .replace(/\s+/g, ' ') .trim(); } function threadContent() { return $('html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .message .message-inner .message-cell--main .message-content .message-body .bbWrapper') .text() .replaceAll(/(\r\n|\n|\r)/gm, '.') .replaceAll('...', '. (pause) ') .replaceAll('..', '. (pause) ') .replace(/\s+/g, ' ') .trim(); } function playAiAudio(src, element) { if ($.aiAudioPlayer) $.aiAudioPlayer.pause(); $.aiAudioPlayer = new Audio(src); element.html(''); $.aiAudioPlayer.onended = $.aiAudioPlayer.onerror = function() { element.html(''); $.aiAudioPlayer = null; }; $.aiAudioPlayer.play(); } $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .thread-top-info .ai-container .ai-audio', function() { let element = $(this); let container = element.closest('.ai-container'); if ($.aiAudioPlayer && !$.aiAudioPlayer.paused) { $.aiAudioPlayer.pause(); $.aiAudioPlayer = null; element.html(''); return; } if ($.aiAudio) { playAiAudio($.aiAudio, element); return; } container.attr('disabled', '').addClass('loading'); XF.ajax('post', '/scriptop/ai-audio', { content: (threadTitle() + '. (pause) ' + threadContent()) }, function(data) { container.removeAttr('disabled').removeClass('loading'); if (data.error || !(data.audio || data.content)) return; $.aiAudio = data.audio || data.content; playAiAudio($.aiAudio, element); }); }); function syncAiChat() { let textarea = $('#ai-chat-history'); if (!textarea.length) return; textarea.val($.aiChatHistory || 'AI: Спрашивайте меня любые вопросы по теме автора...\n\n'); textarea[0].scrollTop = textarea[0].scrollHeight; } function appendAiChat(line) { $.aiChatHistory = ($.aiChatHistory || 'AI: Спрашивайте меня любые вопросы по теме автора...\n\n') + line + '\n\n'; syncAiChat(); } function askAiChat(question, appendQuestion) { if (!question) return; let historyForRequest = $.aiChatHistory || 'AI: Спрашивайте меня любые вопросы по теме автора...\n\n'; $.aiChatLastQuestion = question; if (appendQuestion) appendAiChat('Вы: ' + question); $('#ai-chat-question, #ai-chat-submit, #ai-chat-extend').prop('disabled', true); $('#ai-chat-prepared').attr('disabled', ''); XF.ajax('post', '/scriptop/ai-chat', { content: $.aiThreadContent || threadContent(), question: question, history: historyForRequest, extended_context: $.aiChatExtended ? 1 : 0 }, function(data) { appendAiChat('AI: ' + (data.answer || '')); $('#ai-chat-question, #ai-chat-submit').prop('disabled', false); $('#ai-chat-prepared').removeAttr('disabled'); $('#ai-chat-extend') .prop('disabled', false) .toggle(!!data.needs_context && !$.aiChatExtended); $('#ai-chat-question').focus(); }); } $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .block--messages .lbContainer > .block-body .first-post-wrapper .thread-top-info .ai-container .ai-chat', function() { $.aiThreadContent = threadContent(); $.aiChatHistory = $.aiChatHistory || 'AI: Спрашивайте меня любые вопросы по теме автора...\n\n'; $.aiChatExtended = !!$.aiChatExtended; let trigger = $('').appendTo('body'); XF.activate(trigger); trigger.trigger('click'); let tries = 0; let timer = setInterval(function() { if ($('#ai-chat-history').length) { syncAiChat(); clearInterval(timer); trigger.remove(); } if (++tries > 40) { clearInterval(timer); trigger.remove(); } }, 100); }); $(document).on('submit', '#ai-chat-form', function(e) { e.preventDefault(); let question = String($('#ai-chat-question').val() || '').trim(); $('#ai-chat-question').val(''); askAiChat(question, true); }); $(document).on('click', '#ai-chat-extend', function(e) { e.preventDefault(); $.aiChatExtended = true; $(this).hide(); askAiChat($.aiChatLastQuestion || '', false); }); $(document).on('click', '#ai-chat-prepared [data-question]', function(e) { e.preventDefault(); let question = String($(this).data('question') || '').trim(); if (!question) return; askAiChat(question, true); }); /* ---------- */ $.translated = []; $.originalTranslated = []; $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .message .message-inner .message-cell--main .message-footer-wrapper .message-footer .message-actionBar .actionBar-set--internal .actionBar-action--translate:not(.revert), html[data-app="public"][data-template="member_view"] .p-body-memberPage .p-body-memberPage--main .tabPanes #profile-posts > .block > .block-container > .block-body > .message .message-cell--main .message-footer .actionBar .actionBar-set .actionBar-action.actionBar-action--translate:not(.revert)', function() { let element = $(this); let id = element.closest('.message, .comment').attr('data-content'); let contentElement = element.closest('.message, .comment').find('.message-body .bbWrapper, .comment-body .bbWrapper').first(); element.html('Ожидайте').attr('disabled', ''); if ($.translated[id]) { contentElement.html($.translated[id]); element.html('Оригинал').removeAttr('disabled').addClass('revert'); return; } $.originalTranslated[id] = contentElement.html(); let content = contentElement.text().replaceAll(/(\r\n|\n|\r)/gm, '.'); content = content.replaceAll('...', '. '); content = content.replaceAll('..', '. '); XF.ajax('post', '/scriptop/translate', { content: content }, function(data) { if (data.content.length > 1) { contentElement.html(data.content); $.translated[id] = data.content; } else { $.translated[id] = $.originalTranslated[id]; } element.html('Оригинал').removeAttr('disabled').addClass('revert'); }); }); $(document).on('click', 'html[data-app="public"][data-template="thread_view"] .p-body-pageContent .message .message-inner .message-cell--main .message-footer-wrapper .message-footer .message-actionBar .actionBar-set--internal .actionBar-action.actionBar-action--translate.revert, html[data-app="public"][data-template="member_view"] .p-body-memberPage .p-body-memberPage--main .tabPanes #profile-posts > .block > .block-container > .block-body > .message .message-cell--main .message-footer .actionBar .actionBar-set .actionBar-action.actionBar-action--translate.revert', function() { let element = $(this); let id = element.closest('.message, .comment').attr('data-content'); let contentElement = element.closest('.message, .comment').find('.message-body .bbWrapper, .comment-body .bbWrapper').first(); contentElement.html($.originalTranslated[id]); element.text('Перевести').removeAttr('disabled').removeClass('revert'); }); $.translatedChat = []; $.originalTranslatedChat = []; /* ---------- */ $('html[data-app="public"] .p-body-sidebar:is([data-logged-in="false"] *) [statistics] .count').each(function() { $(this).prop('counter', 0).animate({ counter: $(this).text() }, { duration: 1000 + (Number($(this).text() / 10)), easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); /* ---------- */ $('html[data-app="public"][data-template="account_upgrades"] .p-body-content .p-body-pageContent .block-container .block-body .upgrades .upgrade .upgrade-description').mousewheel(function(event, delta, deltaX, deltaY) { let step = 26; let wrapperHeight = $(this).innerHeight(); let contentHeight = $(this).find('> span').innerHeight(); let scrollHeight = contentHeight - wrapperHeight; if (wrapperHeight >= contentHeight) { event.preventDefault(); return; } let topCurrent = Math.ceil($(this).scrollTop()); let topComing = topCurrent + step; let topMax = roundMultiple(scrollHeight + (step - 1), step); if ((topComing >= topMax) && (deltaY == -1)) $(this).scrollTop(topMax); else $(this).scrollTop(topCurrent + (step * (-deltaY))); event.preventDefault(); }); $(document).on('change', 'html[data-app="public"][data-template="account_upgrades"] .p-body-content .p-body-pageContent .block-container .block-body .upgrades .upgrade row select[name="duration"]', function() { $(this).parents('.upgrade').find('.upgrade-price').text($(this).find(':selected').attr('data-price')); }); /* ---------- */ $(document).on('click', 'html[data-app="public"][data-template="account_bookmarks"] .remove-bookmark', function() { setTimeout(() => { $('.overlay[data-url*="/bookmark?delete"] .button[name="delete"]').trigger('click'); }, 500); }); $(document).on('click', 'html[data-app="public"][data-template="thread_view"] #watch-thread', function() { setTimeout(() => { $('.overlay[data-url*="/threads/"][data-url$="/watch"] form').trigger('submit'); }, 500); }); $(document).on('click', 'html[data-app="public"][data-template="member_view"] .actionBar-action[href*="/profile-posts/"][href*="/stick"]', function() { setTimeout(() => { $('.overlay[data-url*="/profile-posts/"][data-url*="/stick"] form').trigger('submit'); }, 500); }); $(document).on('click', 'html[data-app="public"][data-template="member_view"] .actionBar-action[href*="/profile-posts/"][href*="/unstick"]', function() { setTimeout(() => { $('.overlay[data-url*="/profile-posts/"][data-url*="/unstick"] form').trigger('submit'); }, 500); }); /* ---------- */ $(document).on('click', 'html[data-app="public"] [minimized]', function() { $(this).removeAttr('minimized'); }); $(document).on('click', 'html[data-app="public"] [data-widget-key="streak"] #streak-action span[streak-add]', function() { $.get('/scriptop/streak-add', function() { location.reload(); }); }); $(document).on('click', 'html[data-app="public"] [data-widget-key="streak"] #streak-action span[streak-details]', function() { location.href = '/threads/1134'; }); $(document).on('submit', 'html[data-app="public"] .register-section', function() { $('html[data-app="public"] .register-section .button[type="submit"] .button-text').text('Обработка...'); }); $(document).on('input', 'html[data-app="public"] textarea.input', function() { try { let start = this.selectionStart; let end = this.selectionEnd; $(this).val($(this).val().replace(/-{2,}/g, '—')); this.setSelectionRange(start, end); } finally {} }); $(document).on('input', 'html[data-app="public"] textarea[rows="1"][data-single-line]', function() { $(this).val($(this).val().replace(/(\r\n|\n|\r)/gm, ' ')); }); byScripTop Inc.