Skip to content

Instantly share code, notes, and snippets.

@Silverium
Last active August 29, 2015 14:23
Show Gist options
  • Save Silverium/c058ce671ee0fb6825fb to your computer and use it in GitHub Desktop.
Save Silverium/c058ce671ee0fb6825fb to your computer and use it in GitHub Desktop.
List in application to jobs is right now limited to 30 items. This greasemonkey patch gives you the possibility to extend it to 50 and 100.
// ==UserScript==
// @description Extend the list of job applications from 30 to 50 and 100.
// @include https://www.infojobs.net/candidate/applications/*
// @name Extend Infojobs' Applications List
// @name:es-MX Ampliar la lista de candidaturas de InfoJobs
// @downloadURL https://gist.github.com/Silverium/c058ce671ee0fb6825fb
// @updateURL https://gist.github.com/Silverium/c058ce671ee0fb6825fb
// @namespace github.com/Silverium
// @author Soldeplata Saketos Candela
// @version 1
// @releasedOn 24/06/2015
// @grant none
// ==/UserScript==
function extendList(){
var option50 = document.createElement("OPTION"); // Create an <option> element
option50.setAttribute("value", "50"); // set the value attribute
option50.innerHTML= "50"; //set inner text
var option100 = document.createElement("OPTION"); // Create an <option> element
option100.setAttribute("value", "100"); // set the value attribute
option100.innerHTML= "100"; //set inner text
var aux = document.forms["numFilas"]; //assign the grandparent node to a variable
var dropDownButton = aux.elements['filasPagina']; //selects the button from previous node
dropDownButton.appendChild(option50); //insert option 50 at the end
dropDownButton.appendChild(option100); //insert option 100 at the end
}
extendList(); //and run!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment