Last active
April 29, 2016 12:51
-
-
Save Madh93/be278b4df4b75d43b1aaef54f9290c68 to your computer and use it in GitHub Desktop.
dpCat Utils: https://github.com/Madh93/dpCat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dpCat - Crear | |
// @namespace dpcat | |
// @description Crear nueva produccion | |
// @include http://127.0.0.1:8000/postproduccion/crear/ | |
// @require https://code.jquery.com/jquery-2.2.3.min.js | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$(function() { | |
$('#id_autor').val("usuario"); | |
$('#id_email').val("[email protected]"); | |
$('#id_observacion').val("Ninguna observacion a la vista"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dpCat - Rellenar metadata | |
// @namespace dpcat | |
// @description dpCat - Rellenar metadata de usuario | |
// @include http://127.0.0.1:8000/postproduccion/definir_metadatos/* | |
// @require https://code.jquery.com/jquery-2.2.3.min.js | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$(function() { | |
//alert("Hello world!"); | |
dummy = "dummy text" | |
$('#accept_terms').prop('checked', true); | |
$('#id_title').val(dummy); | |
$('#id_creator').val(dummy); | |
$('#id_keyword').val(dummy); | |
$('#id_description').val(dummy); | |
$('#id_contributor').val(dummy); | |
$('#id_typical_age_range').val(dummy); | |
$('#id_source').val(dummy); | |
$('#id_language').val(dummy); | |
$('#id_ispartof').val(dummy); | |
$('#id_location').val(dummy); | |
$('#id_venue').val(dummy); | |
$('#id_rightsholder').val(dummy); | |
$('#id_typical_learning_time').val(dummy); | |
$('#id_temporal').val(dummy); | |
$('#id_temporal').val(dummy); | |
$('#id_temporal').val(dummy); | |
$('#id_temporal').val(dummy); | |
$('#id_temporal').val(dummy); | |
$('#id_knowledge_areas option:eq(3)').attr('selected', 'selected'); | |
$('#id_license option:eq(3)').attr('selected', 'selected'); | |
$('#id_guideline option:eq(3)').attr('selected', 'selected'); | |
$('#id_audience option:eq(3)').attr('selected', 'selected'); | |
$('#id_type option:eq(3)').attr('selected', 'selected'); | |
$('#id_interactivity_type option:eq(3)').attr('selected', 'selected'); | |
$('#id_interactivity_level option:eq(3)').attr('selected', 'selected'); | |
$('#id_learning_resource_type option:eq(3)').attr('selected', 'selected'); | |
$('#id_semantic_density option:eq(3)').attr('selected', 'selected'); | |
$('#id_context option:eq(3)').attr('selected', 'selected'); | |
$('#id_dificulty option:eq(3)').attr('selected', 'selected'); | |
$('#id_educational_language option:eq(3)').attr('selected', 'selected'); | |
$('#id_purpose option:eq(3)').attr('selected', 'selected'); | |
$('#id_unesco option:eq(3)').attr('selected', 'selected'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment