Images and Links

Easily comment with images and links

2015-09-09 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Images and Links
// @version      0.2.1
// @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'); textarea[0].value = textarea[0].value + link; } } function url(){var link = prompt('Insert the URL link here', ''); var enlace = '[custom text]('+ link +')'; if(link == null || link == ''){return link;} else{ var textarea = document.getElementsByName('description'); textarea[0].value = textarea[0].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>")