Pastebin selector language

With this script you can select language via hash

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

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 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         Pastebin selector language
// @version      1.1
// @description  With this script you can select language via hash
// @author Maxeo | maxeo.net
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @include     https://pastebin.com/*
// @icon        https://www.maxeo.net/imgs/icon/android-chrome-192x192.png
// @grant        none
// @namespace https://greasyfork.org/users/88678
// ==/UserScript==
(function () {
  'use strict';
  var not_find = 1
  $('select[name=paste_format] option').each(function () {
    if (not_find && ($(this).html() + ' ').toUpperCase().indexOf(document.location.hash.substr(1).toUpperCase()) + 1) {
      $('select[name=paste_format]').val($(this).val()).change()
      not_find = 0;
    }
  })
}) ();