Created
July 24, 2013 23:15
-
-
Save Mezzle/7686e81b87b15b781e92 to your computer and use it in GitHub Desktop.
Useful Tampermonkey / Greasmonkey scripts for ESL
This file contains hidden or 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 Auto-Accept New GA Changes | |
// @namespace http://esl.eu/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.esl.eu/*/admin_ga_changes/view/* | |
// @copyright 2013+, Martin Meredith | |
// ==/UserScript== | |
if (jQuery(jQuery(jQuery('#main_content table')[1]).find('tr')[3]).find('td')[1].innerHTML == '<em>none</em>') { | |
jQuery(jQuery(jQuery('#main_content table')[0]).find('div div')[3]).find('a')[0].click() | |
} |
This file contains hidden or 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 Remove Date Specific Cups | |
// @namespace http://esl.eu/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://www.esl.eu/*/admin_leaguejoins/* | |
// @copyright 2013+, Martin Meredith | |
// ==/UserScript== | |
var links = jQuery(jQuery('.TextS')[0]).find('a'); | |
var months=['01','02','03','04', '05','06','07','08','09','10','11','12']; | |
var d = new Date(); | |
var today = d.getDate() + '.' + months[d.getMonth()]; | |
for (var i=0; i<links.length; i++) { | |
mtch = jQuery(links[i]).text().match('.+\\((\\d\\d\\.\\d\\d)\\)\\s+\\(\\d+\\)') | |
// If Date specific | |
if (mtch != null) { | |
if (mtch[1] != today) { | |
jQuery(links[i]).css({ "color": "#ddd"}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment