Raw Source
R / mb. SUPER MIND CONTROL Ⅱ X TURBO

"use strict";
var meta = {rawmdb: function() {
// ==UserScript==
// @name         mb. SUPER MIND CONTROL Ⅱ X TURBO
// @version      2016.6.17
// @changelog    https://github.com/jesus2099/konami-command/commits/master/mb_SUPER-MIND-CONTROL-II-X-TURBO.user.js
// @description  musicbrainz.org power-ups (mbsandbox.org too): RELEASE_CLONER. copy/paste releases / DOUBLE_CLICK_SUBMIT / CONTROL_ENTER_SUBMIT / RELEASE_EDITOR_PROTECTOR. prevent accidental cancel by better tab key navigation / TRACKLIST_TOOLS. search→replace, track length parser, remove recording relationships, set selected works date / LAST_SEEN_EDIT. handy for subscribed entities / COOL_SEARCH_LINKS / COPY_TOC / ROW_HIGHLIGHTER / SPOT_CAA / SPOT_AC / RECORDING_LENGTH_COLUMN / RELEASE_EVENT_COLUMN / WARN_NEW_WINDOW / SERVER_SWITCH / TAG_TOOLS / USER_STATS / MAX_RECENT_ENTITIES / CHECK_ALL_SUBSCRIPTIONS / EASY_DATE. paste full dates in one go / STATIC_MENU / MERGE_USER_MENUS / SLOW_DOWN_RETRY / CENTER_FLAGS / RATINGS_ON_TOP / HIDE_RATINGS / UNLINK_ENTITY_HEADER / MARK_PENDING_EDIT_MEDIUMS
// @homepage     https://github.com/jesus2099/konami-command/blob/master/mb_SUPER-MIND-CONTROL-II-X-TURBO.md
// @supportURL   https://github.com/jesus2099/konami-command/labels/mb_SUPER-MIND-CONTROL-II-X-TURBO
// @compatible   opera(12.18.1872)+violentmonkey     my setup
// @compatible   firefox(47.0)+greasemonkey          quickly tested
// @compatible   chromium(46.0.2471.0)+tampermonkey  quickly tested
// @compatible   chrome+tampermonkey                 should be same as chromium
// @namespace    https://github.com/jesus2099/konami-command
// @downloadURL  https://github.com/jesus2099/konami-command/raw/master/mb_SUPER-MIND-CONTROL-II-X-TURBO.user.js
// @updateURL    https://github.com/jesus2099/konami-command/raw/master/mb_SUPER-MIND-CONTROL-II-X-TURBO.user.js
// @author       PATATE12
// @licence      CC BY-NC-SA 3.0 (https://creativecommons.org/licenses/by-nc-sa/3.0/)
// @since        2010-09-09
// @icon         data:image/gif;base64,R0lGODlhEAAQAKEDAP+/3/9/vwAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh/glqZXN1czIwOTkAIfkEAQACAwAsAAAAABAAEAAAAkCcL5nHlgFiWE3AiMFkNnvBed42CCJgmlsnplhyonIEZ8ElQY8U66X+oZF2ogkIYcFpKI6b4uls3pyKqfGJzRYAACH5BAEIAAMALAgABQAFAAMAAAIFhI8ioAUAIfkEAQgAAwAsCAAGAAUAAgAAAgSEDHgFADs=
// @require      https://greasyfork.org/scripts/10888-super/code/SUPER.js?version=84017&v=2015.11.2
// @grant        none
// @match         *://*.mbsandbox.org/*
// @match         *://*.musicbrainz.org/*
// @exclude      *://blog.musicbrainz.org/*
// @exclude      *://bugs.musicbrainz.org/*
// @exclude      *://chatlogs.musicbrainz.org/*
// @exclude      *://forums.musicbrainz.org/*
// @exclude      *://geordi.musicbrainz.org/*
// @exclude      *://musicbrainz.org/ws/*
// @exclude      *://tickets.musicbrainz.org/*
// @exclude      *://wiki.musicbrainz.org/*
// @run-at       document-end
// ==/UserScript==
// ==OpenUserJS==
// @unstableMinify it might break metadata block parser
// ==/OpenUserJS==
}};

document.getElementsByClassName("textBoxDashedapp_field") [0].maxlength = "30";
document.getElementsByClassName("textBoxDashedapp_field") [0].size = "40";

document.getElementsByClassName("textBoxDashedapp_field") [0].maxlength = "30";
document.getElementsByClassName("textBoxDashedapp_field") [0].size = "40";
var x = document.getElementsByClassName("cl") [2].innerHTML;


if (x.trim() == "Applicant!sGivenName") {
  document.getElementsByClassName("textBoxDashedapp_field") [0].value = "MDEKBAL";
} else if (x.trim() == "BirthPlace") {
  document.getElementsByClassName("textBoxDashedapp_field") [0].value = "Rajshahi";
}
else if(x.trim() == "Father!sName") {
  document.getElementsByClassName("textBoxDashedapp_field") [0].value = "ARSHAHD";
}
else if(x.trim() == "Mother!sName") {
  document.getElementsByClassName("textBoxDashedapp_field") [0].value = "RUBIA";
}

if (x.trim() == "Applicant!sGivenName") {
  document.getElementsByClassName("textBoxDashedapp_field") [1].value = "MDEKBAL";
} else if (x.trim() == "BirthPlace") {
  document.getElementsByClassName("textBoxDashedapp_field") [1].value = "RAJSHAHI";
}
else if(x.trim() == "Father!sName") {
  document.getElementsByClassName("textBoxDashedapp_field") [1].value = "ARSHAHD";
}
else if(x.trim() == "Mother!sName") {
  document.getElementsByClassName("textBoxDashedapp_field") [1].value = "RUBIA";
}