Images and Links

Easily comment with images and links

19.08.2016 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

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

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

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

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

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Images and Links
// @version      0.3.4
// @description  Easily comment with images and links
// @author       otro_user_gil
// @include      http://www.steamgifts.com/*
// @include      https://steamgifts.com/*
// @include      http://*.steamgifts.com/*
// @include      https://*.steamgifts.com/*
// @grant        none
// @namespace https://greasyfork.org/users/15121
// ==/UserScript==

$(".align-button-container").append("<script type='text/javascript'> function imagenup(){var img = prompt('Insert the link of your image here', ''); var link = '![Cat](' + img + ')'; if(img == null || img == ''){return img;}else{ var textarea = document.getElementsByName('description'); for(var i=0; i< textarea.length; i++){ textarea[i].value = textarea[i].value + link;} } } function url(){var link=prompt('Insert the URL link here','');if(link==null||link==''){return link;} else{var texto=prompt('Custom Text',''); if(texto==null||texto==''){texto=link;var enlace='['+texto+']('+link+')';var textarea=document.getElementsByName('description');for(var i=0;i<textarea.length;i++){textarea[i].value=textarea[i].value+enlace;}} else{var enlace='['+texto+']('+link+')';var textarea=document.getElementsByName('description');for(var i=0;i<textarea.length;i++){textarea[i].value=textarea[i].value+enlace;}}}} </script> <div style='position: relative; width: 65px; float: right; margin-left: 15px;'> <input type='button' onclick='imagenup()' value='Image' style='position: absolute; cursor:pointer; margin-top: -14px;'/> <input type='button' onclick='url()' value='Url' style='margin-top: -14px; position: absolute; cursor:pointer; margin-left: 80px;'/>  </div>")