Copy no encode url

Copy no encode url to clipboard

اعتبارا من 31-03-2023. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Copy no encode url
// @name:ja エンコードなしの URL をコピー
// @name:zh-TW 複製無編碼網址
// @name:zh-CN 复制无编码网址
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Copy no encode url to clipboard
// @description:ja  エンコードなしの URL をクリップボードにコピー
// @description:zh-CN  将无编码网址复制到剪贴板
// @description:zh-TW  將無編碼網址複製到剪貼板
// @author       貓咪不作戰
// @match *://*/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
     window.addEventListener('mousedown', function () {
         var target = event.target || event.srcElement;
         if(event.button==1 && event.ctrlKey){
             var url= decodeURIComponent(window.location.href)
             console.log(url);
             navigator.clipboard.writeText(url)
             speak("Copy link")
         }
     })
    function speak(msgText) {
            var msg = new SpeechSynthesisUtterance(msgText);
            window.speechSynthesis.cancel();
            window.speechSynthesis.speak(msg);
        }
    // Your code here...
})();