Pastebin selector language

With this script you can select language via hash

Stan na 04-10-2018. Zobacz najnowsza wersja.

// ==UserScript==
// @name         Pastebin selector language
// @version      1.0
// @description  With this script you can select language via hash
// @author       maxeo90
// @grant        none
// @namespace https://greasyforks.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;
    }
  })
}) ();
长期地址
遇到问题?请前往 GitHub 提 Issues。