kogama remove paste protection!!!

Fix the paste restriction bug in Kogama without checking link type

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         kogama remove paste protection!!!
// @namespace    http://tampermonkey.net/
// @version      3000
// @description  Fix the paste restriction bug in Kogama without checking link type
// @author       XPander
// @match        *www.kogama.com/*
// @match        *www.friends.kogama.com/*
// @match        *www.kogama.com.br/*
// @grant        none
// @license      none
// ==/UserScript==

(function() {
    'use strict';

    // Function to handle pasting
    function allowPaste(event) {
        const clipboardData = event.clipboardData || window.clipboardData;
        const pastedText = clipboardData.getData('Text');

        // Prevent the default pasting behavior and manually insert the text
        event.preventDefault();
        document.activeElement.value += pastedText;
    }

    // Add event listener for paste event
    document.addEventListener('paste', allowPaste, false);

    console.log('Kogama Paste Fix Active (No Link Check)');
})();

// thank you for using my userscript!

                         // -xpander (prvisrpanj2025tegodine)!