jesus2099 / konami-command

power‐ups for various web sites
123 stars 26 forks source link

Duplicate Work - mb-SUPER-MIND-Control - Feature Request #409

Closed ldgbc closed 6 years ago

ldgbc commented 6 years ago

I have been adding "Work" https://musicbrainz.org/work/create Usually most the work is the same, ie. the Language and Type (90% of the time).

Can you add a way for me to (1) click on a template and it load those two option. or (2) duplicate work?

Thank you.

jesus2099 commented 6 years ago

https://musicbrainz.org/work/create?edit-work.type_id=17&edit-work.language_id=486 put this in your favourites / bookmarks after changing language code.

jesus2099 commented 6 years ago

Sorry this does not work any more. I will two you when i am on a computer.

ldgbc commented 6 years ago

Thanks. Looking forward to it. Hopefully it both, template and duplicate.

jesus2099 commented 6 years ago

I found back how to submit languages: Example with Japanese: edit-work.languages.0=198 Find your language code by reading source code of https://musicbrainz.org/work/create

Hope this helps. :)

ldgbc commented 6 years ago

@jesus2099 That is sad news to hear but at least it is a working alternative.

can you tell me how I can create another Menu link like you did with SUPER MIND CONTROL Ⅱ X TURBO (2018.6.4)

Also do you know if we can use the URL to change the Guess Change from "English, Sentence, French, etc"? Guess Case Options

Do you know if we can do similar thing to Release too?

and is it possible to add a Button/Link here too? clipboard01

I will add that multiple variation of this link as an alternative. Thank you.

https://musicbrainz.org/work/create?edit-work.name=&edit-work.languages.0=198&edit-work.attributes.0.type_id=3&edit-work.attributes.0.value=119-3566-9&edit-work.iswcs.0=T-101.776.753-0&edit-work.type_id=17&rels.0.target=%E7%9E%AC%E7%81%AB&rels.0.direction=backward&rels.0.type=3e48faba-ec01-47fd-8e89-30e81161661c&rels.1.target=%E7%9E%AC%E7%81%AB&rels.1.direction=backward&rels.1.type=d59d99ea-23d4-4a80-b066-edca32ee158f&rels.2.target=%E3%82%BB%E3%83%96%E3%83%B3%E3%82%B7%E3%83%BC%E3%82%BA%E3%83%9F%E3%83%A5%E3%83%BC%E3%82%B8%E3%83%83%E3%82%AF&rels.2.direction=backward&rels.2.type=05ee6f18-4517-342d-afdf-5897f64276e3&rels.3.target=%E9%9F%B3&rels.3.direction=backward&rels.3.type=05ee6f18-4517-342d-afdf-5897f64276e3&edit-work.edit_note=PLEASE+DO+NOT+ADD+THIS+WORK.+IT+ALREADY+EXISTS.+The+name+is+intentionally+left+blank.

ldgbc commented 6 years ago

For anyone that come across this, here it is:

[{"value":284,"label":"[Multiple languages]"},{"label":"[No lyrics]","value":486},{"value":18,"label":"Arabic"},{"label":"Chinese","value":76},{"value":100,"label":"Danish"},{"value":113,"label":"Dutch"},{"label":"English","value":120},{"label":"Finnish","value":131},{"label":"French","value":134},{"value":145,"label":"German"},{"label":"Greek","value":159},{"label":"Italian","value":195},{"value":198,"label":"Japanese"},{"label":"Korean","value":224},{"label":"Norwegian","value":309},{"label":"Polish","value":338},{"value":340,"label":"Portuguese"},{"label":"Russian","value":353},{"label":"Spanish","value":393},{"label":"Swedish","value":403},{"value":433,"label":"Turkish"}],"optgroup":"Frequently used"},{"optgroup":"Other","options":[{"value":24,"label":"[Artificial (Other)]"},{"label":"Abkhazian","value":2},{"value":3,"label":"Achinese"},{"label":"Acoli","value":4},{"value":5,"label":"Adangme"},{"label":"Adyghe","value":6},{"label":"Afar","value":1},{"value":8,"label":"Afrihili"},{"label":"Afrikaans","value":9},{"label":"Ainu","value":473},{"value":10,"label":"Akan"},{"label":"Akkadian","value":11},{"value":12,"label":"Albanian"},{"value":13,"label":"Aleut"},{"label":"Amharic","value":15},{"label":"Angika","value":475},{"label":"Aragonese","value":20},{"label":"Arapaho","value":23},{"label":"Arawak","value":25},{"value":21,"label":"Armenian"},{"value":479,"label":"Aromanian"},{"label":"Assamese","value":26},{"value":27,"label":"Asturian"},{"value":30,"label":"Avaric"},{"label":"Avestan","value":31},{"value":32,"label":"Awadhi"},{"value":33,"label":"Aymara"},{"value":34,"label":"Azerbaijani"},{"value":40,"label":"Balinese"},{"label":"Baluchi","value":38},{"value":39,"label":"Bambara"},{"label":"Basa","value":42},{"label":"Bashkir","value":37},{"label":"Basque","value":41},{"label":"Beja","value":44},{"value":45,"label":"Belarusian"},{"label":"Bemba","value":46},{"value":47,"label":"Bengali"},{"label":"Bhojpuri","value":49},{"value":51,"label":"Bikol"},{"value":52,"label":"Bini"},{"label":"Bislama","value":53},{"value":64,"label":"Blin"},{"label":"Bodo (India)","value":1394},{"label":"Bosnian","value":56},{"label":"Braj","value":57},{"label":"Breton","value":58},{"label":"Buginese","value":61},{"value":62,"label":"Bulgarian"},{"label":"Buriat","value":60},{"label":"Burmese","value":63},{"value":65,"label":"Caddo"},{"label":"Cajun French","value":2311},{"label":"Catalan","value":68},{"value":70,"label":"Cebuano"},{"label":"Celtiberian","value":7217},{"label":"Central Okinawan","value":5809},{"value":75,"label":"Chagatai"},{"label":"Chamorro","value":72},{"label":"Chechen","value":74},{"label":"Cherokee","value":82},{"value":85,"label":"Cheyenne"},{"value":73,"label":"Chibcha"},{"value":313,"label":"Chichewa"},{"value":79,"label":"Chinook jargon"},{"value":81,"label":"Chipewyan"},{"label":"Choctaw","value":80},{"label":"Church Slavic","value":83},{"value":77,"label":"Chuukese"},{"label":"Chuvash","value":84},{"label":"Coptic","value":87},{"label":"Cornish","value":88},{"label":"Corsican","value":89},{"value":93,"label":"Cree"},{"value":286,"label":"Creek"},{"value":94,"label":"Crimean Tatar"},{"value":366,"label":"Croatian"},{"value":7303,"label":"Cuneiform Luwian"},{"value":98,"label":"Czech"},{"value":99,"label":"Dakota"},{"value":101,"label":"Dargwa"},{"value":103,"label":"Delaware"},{"value":106,"label":"Dinka"},{"label":"Divehi","value":107},{"label":"Dogri","value":108},{"value":105,"label":"Dogrib"},{"label":"Duala","value":111},{"label":"Dutch, Middle (ca.1050-1350)","value":112},{"label":"Dyula","value":114},{"value":115,"label":"Dzongkha"},{"value":584,"label":"Eastern Arrernte"},{"label":"Efik","value":116},{"label":"Egyptian (Ancient)","value":117},{"label":"Ekajuk","value":118},{"label":"Elamite","value":119},{"label":"English, Middle (1100-1500)","value":121},{"value":16,"label":"English, Old (ca.450-1100)"},{"label":"Erzya","value":290},{"label":"Esperanto","value":122},{"value":123,"label":"Estonian"},{"label":"Ewe","value":124},{"value":125,"label":"Ewondo"},{"label":"Fang","value":126},{"label":"Fanti","value":128},{"value":127,"label":"Faroese"},{"value":129,"label":"Fijian"},{"label":"Filipino","value":130},{"label":"Fon","value":133},{"label":"French, Old (842-ca.1400)","value":136},{"label":"Frisian, Eastern","value":485},{"value":484,"label":"Frisian, Northern"},{"value":137,"label":"Frisian, Western"},{"value":139,"label":"Friulian"},{"value":138,"label":"Fulah"},{"value":140,"label":"Ga"},{"label":"Galibi Carib","value":67},{"value":150,"label":"Galician"},{"label":"Ganda","value":249},{"label":"Garifuna","value":1591},{"label":"Gayo","value":141},{"label":"Gbaya","value":142},{"value":146,"label":"Geez"},{"value":144,"label":"Georgian"},{"label":"German, Low","value":299},{"value":152,"label":"German, Middle High (ca.1050-1500)"},{"label":"German, Swiss","value":476},{"label":"Gilbertese","value":147},{"label":"Gondi","value":154},{"label":"Gorontalo","value":155},{"label":"Gothic","value":156},{"value":157,"label":"Grebo"},{"value":158,"label":"Greek, Ancient"},{"value":204,"label":"Greenlandic"},{"label":"Gronings","value":2534},{"value":160,"label":"Guarani"},{"label":"Gujarati","value":161},{"value":2511,"label":"Gumatj"},{"label":"Gupapuyngu","value":2581},{"value":162,"label":"Gwich'in"},{"label":"Haida","value":163},{"label":"Haitian Creole","value":164},{"value":165,"label":"Hausa"},{"label":"Hawaiian","value":166},{"value":167,"label":"Hebrew"},{"value":168,"label":"Herero"},{"label":"Hiligaynon","value":169},{"label":"Hindi","value":171},{"value":174,"label":"Hiri Motu"},{"value":173,"label":"Hmong"},{"value":176,"label":"Hungarian"},{"label":"Hupa","value":177},{"value":178,"label":"Iban"},{"value":180,"label":"Icelandic"},{"label":"Ido","value":181},{"label":"Igbo","value":179},{"label":"Iloko","value":186},{"value":189,"label":"Indonesian"},{"value":2967,"label":"Ingrian"},{"value":191,"label":"Ingush"},{"value":187,"label":"Interlingua"},{"value":185,"label":"Interlingue"},{"value":184,"label":"Inuktitut"},{"value":192,"label":"Inupiaq"},{"label":"Irish","value":149},{"value":2980,"label":"Jamaican Creole English"},{"label":"Javanese","value":196},{"label":"Jewish Babylonian Aramaic (ca. 200-1200 CE)","value":6526},{"value":200,"label":"Judeo-Arabic"},{"value":199,"label":"Judeo-Persian"},{"value":212,"label":"Kabardian"},{"label":"Kabuverdianu","value":3185},{"label":"Kabyle","value":202},{"value":203,"label":"Kachin"},{"value":459,"label":"Kalmyk"},{"value":205,"label":"Kamba"},{"value":206,"label":"Kannada"},{"value":209,"label":"Kanuri"},{"value":201,"label":"Kara-Kalpak"},{"label":"Karachay-Balkar","value":227},{"value":477,"label":"Karelian"},{"value":208,"label":"Kashmiri"},{"value":96,"label":"Kashubian"},{"label":"Kazakh","value":211},{"value":3137,"label":"Khanty"},{"label":"Khasi","value":213},{"label":"Khmer, Central","value":215},{"value":217,"label":"Kikuyu"},{"value":220,"label":"Kimbundu"},{"value":218,"label":"Kinyarwanda"},{"label":"Kirghiz","value":219},{"label":"Klingon","value":421},{"label":"Kölsch","value":3529},{"value":222,"label":"Komi"},{"value":223,"label":"Kongo"},{"value":221,"label":"Konkani"},{"label":"Kosraean","value":225},{"label":"Kpelle","value":226},{"value":230,"label":"Kuanyama"},{"label":"Kumyk","value":231},{"label":"Kurdish","value":232},{"value":229,"label":"Kurukh"},{"label":"Kutenai","value":233},{"label":"Ladin","value":3885},{"label":"Ladino","value":234},{"label":"Lahnda","value":235},{"value":3880,"label":"Lakota"},{"label":"Lamba","value":236},{"label":"Lao","value":237},{"value":238,"label":"Latin"},{"value":239,"label":"Latvian"},{"value":4039,"label":"Laz"},{"label":"Lezghian","value":240},{"label":"Limburgish","value":241},{"value":242,"label":"Lingala"},{"value":243,"label":"Lithuanian"},{"label":"Liv","value":3858},{"label":"Lojban","value":197},{"label":"Lozi","value":245},{"label":"Luba-Katanga","value":248},{"label":"Luba-Lulua","value":247},{"value":250,"label":"Luiseno"},{"value":251,"label":"Lunda"},{"value":252,"label":"Luo"},{"value":253,"label":"Lushai"},{"value":246,"label":"Luxembourgish"},{"value":4018,"label":"Luyia"},{"value":254,"label":"Macedonian"},{"label":"Madurese","value":255},{"label":"Magahi","value":256},{"label":"Maithili","value":258},{"value":259,"label":"Makasar"},{"value":275,"label":"Malagasy"},{"label":"Malay","value":266},{"value":260,"label":"Malayalam"},{"value":276,"label":"Maltese"},{"label":"Manchu","value":277},{"value":268,"label":"Mandar"},{"label":"Mandarin Chinese","value":1739},{"label":"Mandingo","value":261},{"label":"Manipuri","value":278},{"value":4358,"label":"Mansi"},{"value":151,"label":"Manx"},{"label":"Maori","value":262},{"label":"Mapudungun","value":22},{"label":"Marathi","value":264},{"value":78,"label":"Mari"},{"value":257,"label":"Marshallese"},{"label":"Marwari","value":288},{"label":"Masai","value":265},{"value":269,"label":"Mende"},{"label":"Mi'kmaq","value":271},{"value":4663,"label":"Min Nan Chinese"},{"value":272,"label":"Minangkabau"},{"label":"Mirandese","value":287},{"value":280,"label":"Mohawk"},{"value":267,"label":"Moksha"},{"label":"Mongo","value":244},{"label":"Mongolian","value":282},{"label":"Montagnais","value":4369},{"label":"Mossi","value":283},{"value":478,"label":"N'Ko"},{"value":294,"label":"Nauru"},{"label":"Navajo","value":295},{"label":"Ndebele, North","value":297},{"label":"Ndebele, South","value":296},{"label":"Ndonga","value":298},{"value":293,"label":"Neapolitan"},{"label":"Nepal Bhasa","value":301},{"label":"Nepali","value":300},{"label":"Nhengatu","value":7618},{"value":302,"label":"Nias"},{"label":"Niuean","value":304},{"value":307,"label":"Nogai"},{"value":4991,"label":"Norn"},{"value":308,"label":"Norse, Old"},{"label":"Norwegian Bokmål","value":306},{"label":"Norwegian Nynorsk","value":305},{"label":"Nyamwezi","value":314},{"label":"Nyankole","value":315},{"value":316,"label":"Nyoro"},{"value":317,"label":"Nzima"},{"value":318,"label":"Occitan"},{"value":319,"label":"Ojibwa"},{"label":"Oriya","value":320},{"value":321,"label":"Oromo"},{"value":322,"label":"Osage"},{"label":"Ossetian","value":323},{"label":"Palauan","value":332},{"value":337,"label":"Pali"},{"label":"Pampanga","value":329},{"label":"Pangasinan","value":327},{"value":330,"label":"Panjabi"},{"label":"Papiamento","value":331},{"value":334,"label":"Persian"},{"value":5402,"label":"Pitjantjatjara"},{"label":"Pohnpeian","value":339},{"label":"Pushto","value":343},{"value":5603,"label":"Puyuma"},{"label":"Quechua","value":344},{"value":5662,"label":"Quenya"},{"label":"Rajasthani","value":345},{"value":346,"label":"Rapanui"},{"label":"Rarotongan","value":347},{"label":"Réunion Creole French","value":5690},{"value":351,"label":"Romanian"},{"value":349,"label":"Romansh"},{"value":350,"label":"Romany"},{"label":"Rundi","value":352},{"value":359,"label":"Samaritan Aramaic"},{"label":"Sami, Inari","value":383},{"label":"Sami, Lule","value":382},{"value":380,"label":"Sami, Northern"},{"value":385,"label":"Sami, Skolt"},{"label":"Sami, Southern","value":379},{"value":384,"label":"Samoan"},{"value":354,"label":"Sandawe"},{"value":355,"label":"Sango"},{"value":360,"label":"Sanskrit"},{"label":"Santali","value":362},{"value":394,"label":"Sardinian"},{"value":361,"label":"Sasak"},{"value":365,"label":"Scots"},{"label":"Scottish Gaelic","value":148},{"value":367,"label":"Selkup"},{"value":363,"label":"Serbian"},{"value":395,"label":"Serer"},{"value":371,"label":"Shan"},{"value":386,"label":"Shona"},{"label":"Sichuan Yi","value":182},{"value":364,"label":"Sicilian"},{"value":372,"label":"Sidamo"},{"value":54,"label":"Siksika"},{"label":"Sindarin","value":5989},{"label":"Sindhi","value":387},{"label":"Sinhala","value":373},{"label":"Slave (Athapascan)","value":104},{"value":377,"label":"Slovak"},{"label":"Slovenian","value":378},{"label":"Somali","value":390},{"label":"Soninke","value":388},{"label":"Sorbian, Lower","value":110},{"label":"Sorbian, Upper","value":175},{"label":"Sotho, Northern","value":310},{"label":"Sotho, Southern","value":392},{"label":"Southern Altai","value":474},{"value":3309,"label":"Southern Kiwai"},{"value":480,"label":"Sranan Tongo"},{"value":398,"label":"Sukuma"},{"value":399,"label":"Sundanese"},{"value":400,"label":"Susu"},{"label":"Swahili","value":402},{"value":397,"label":"Swati"},{"label":"Syriac","value":404},{"value":414,"label":"Tagalog"},{"value":405,"label":"Tahitian"},{"value":413,"label":"Tajik"},{"value":423,"label":"Tamashek"},{"value":407,"label":"Tamil"},{"label":"Tatar","value":408},{"label":"Telugu","value":409},{"label":"Tereno","value":411},{"value":412,"label":"Tetum"},{"value":415,"label":"Thai"},{"label":"Tibetan","value":416},{"label":"Tigre","value":417},{"value":418,"label":"Tigrinya"},{"label":"Timne","value":410},{"label":"Tiv","value":419},{"value":422,"label":"Tlingit"},{"value":426,"label":"Tok Pisin"},{"label":"Tokelau","value":420},{"value":424,"label":"Tonga (Nyasa)"},{"label":"Tonga (Tonga Islands)","value":425},{"label":"Tsimshian","value":427},{"value":429,"label":"Tsonga"},{"value":428,"label":"Tswana"},{"label":"Tumbuka","value":431},{"value":324,"label":"Turkish, Ottoman"},{"value":430,"label":"Turkmen"},{"value":435,"label":"Tuvalu"},{"value":437,"label":"Tuvinian"},{"value":436,"label":"Twi"},{"value":438,"label":"Udmurt"},{"label":"Uighur","value":440},{"value":441,"label":"Ukrainian"},{"value":442,"label":"Umbundu"},{"value":444,"label":"Urdu"},{"value":445,"label":"Uzbek"},{"value":446,"label":"Vai"},{"value":447,"label":"Venda"},{"value":6913,"label":"Veps"},{"value":448,"label":"Vietnamese"},{"label":"Volapük","value":449},{"value":6966,"label":"Võro"},{"label":"Votic","value":450},{"value":457,"label":"Walloon"},{"label":"Waray","value":453},{"value":7009,"label":"Warlpiri"},{"label":"Washo","value":454},{"label":"Welsh","value":455},{"label":"Western Arrarnta","value":820},{"value":452,"label":"Wolaitta"},{"label":"Wolof","value":458},{"value":7181,"label":"Wyandot"},{"value":460,"label":"Xhosa"},{"value":5808,"label":"Yaeyama"},{"value":356,"label":"Yakut"},{"label":"Yao","value":461},{"value":462,"label":"Yapese"},{"value":463,"label":"Yiddish"},{"value":464,"label":"Yoruba"},{"value":7636,"label":"Yucateco"},{"value":7640,"label":"Yue Chinese"},{"value":466,"label":"Zapotec"},{"value":2009,"label":"Zarma"},{"value":483,"label":"Zaza"},{"label":"Zenaga","value":467},{"value":468,"label":"Zhuang"},{"value":470,"label":"Zulu"},{"label":"Zuni","value":471}]}]}">

ldgbc commented 6 years ago

I found this to create a button: https://stackoverflow.com/questions/6480082/add-a-javascript-button-using-greasemonkey-or-tampermonkey#6480881

Next step how to make multiple button and add a Hyperlink to it.

ldgbc commented 6 years ago

Here it is, the first Template: English Work song. I can't seem to move the Button around though but at least it a work in Progress:

// ==UserScript==
// @name MusicBrainz Template Work
// @namespace Violentmonkey Scripts
// @match *://*.musicbrainz.org/*
// @grant none
// ==/UserScript==

/*--- Create a button in a container div.  It will be styled and
    positioned with CSS.
*/
var zNode       = document.createElement ('div');
zNode.innerHTML = '<button id="myButton" type="button">'
                + 'ENGLISH SONG</button>'
                ;
zNode.setAttribute ('id', 'myContainer');
document.body.appendChild (zNode);

//--- Activate the newly added button.
document.getElementById ("myButton").addEventListener (
    "click", ButtonClickAction, false
);

function ButtonClickAction (zEvent) {
  location.href = "https://musicbrainz.org/work/create?edit-work.name=&edit-work.languages.0=120&edit-work.type_id=17";
    /*--- For our dummy action, we'll just add a line of text to the top
        of the screen.

    var zNode       = document.createElement ('p');
    zNode.innerHTML = 'The button was clicked.';
    document.getElementById ("myContainer").appendChild (zNode); */
}

//--- Style our newly added elements using CSS.
GM_addStyle ( multilineStr ( function () {/*!
    #myContainer {
        position:               absolute;
        top:                    -100;
        left:                   0;
        font-size:              20px;
        background:             orange;
        border:                 3px outset black;
        margin:                 5px;
        opacity:                0.9;
        z-index:                1100;
        padding:                5px 20px;
    }
    #myButton {
        cursor:                 pointer;
    }
    #myContainer p {
        color:                  red;
        background:             white;
    }
*/} ) );

function multilineStr (dummyFunc) {
    var str = dummyFunc.toString ();
    str     = str.replace (/^[^\/]+\/\*!?/, '') // Strip function () { /*!
            .replace (/\s*\*\/\s*\}\s*$/, '')   // Strip */ }
            .replace (/\/\/.+$/gm, '') // Double-slash comments wreck CSS. Strip them.
            ;
    return str;
}