Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove recorded game topics from New Posts
// ==UserScript==
// @name AoCZone Cleaner Strict (+ Scheduling)
// @include /^https?://(www\.)?aoczone.net/search\.php\?(&sr=topics&)?search_id\=newposts.*$/
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @author SethGecko
// @description Removes all recorded games + scheduling topics from New Posts
// @version 1.0
// ==/UserScript==
/*
- the @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
- based on: https://stackoverflow.com/a/28494894/6061882
*/
waitForKeyElements(
"a[href='./viewforum.php?f=13']," + // Daily games
"a[href='./viewforum.php?f=97']," + // Daily games (RM Games 1800+)
"a[href='./viewforum.php?f=23']," + // Daily games (RM Games -1800)
"a[href='./viewforum.php?f=756']," + // 2k4+ games
"a[href='./viewforum.php?f=91']," + // Expert games
"a[href='./viewforum.php?f=48']," + // Custom Scenario
"a[href='./viewforum.php?f=634']," + // Daily games AoE2HD
"a[href='./viewforum.php?f=691']," + // Expert games AoE2HD
"a[class!='menu']:contains('Recorded Games'), " +
"a[class!='menu']:contains('Scheduling')",
hideNode,
true
);
function hideNode(jNode) {
jNode.parent().parent().hide();
}
// ==UserScript==
// @name AoCZone Cleaner Strict
// @include /^https?://(www\.)?aoczone.net/search\.php\?(&sr=topics&)?search_id\=newposts.*$/
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @author SethGecko
// @description Removes all recorded games topics from New Posts
// @version 1.0
// ==/UserScript==
/*
- the @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
- based on: https://stackoverflow.com/a/28494894/6061882
*/
waitForKeyElements(
"a[href='./viewforum.php?f=13']," + // Daily games
"a[href='./viewforum.php?f=97']," + // Daily games (RM Games 1800+)
"a[href='./viewforum.php?f=23']," + // Daily games (RM Games -1800)
"a[href='./viewforum.php?f=756']," + // 2k4+ games
"a[href='./viewforum.php?f=91']," + // Expert games
"a[href='./viewforum.php?f=48']," + // Custom Scenario
"a[href='./viewforum.php?f=634']," + // Daily games AoE2HD
"a[href='./viewforum.php?f=691']," + // Expert games AoE2HD
"a[class!='menu']:contains('Recorded Games')",
hideNode,
true
);
function hideNode(jNode) {
jNode.parent().parent().hide();
}
// ==UserScript==
// @name AoCZone Cleaner
// @include /^https?://(www\.)?aoczone.net/search\.php\?(&sr=topics&)?search_id\=newposts.*$/
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// @author SethGecko
// @description Removes most of the recorded games from New Posts
// @version 1.0
// ==/UserScript==
/*
- the @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
- based on: https://stackoverflow.com/a/28494894/6061882
*/
waitForKeyElements(
"a[href='./viewforum.php?f=13']," + // Daily games
"a[href='./viewforum.php?f=97']," + // Daily games (RM Games 1800+)
"a[href='./viewforum.php?f=23']," + // Daily games (RM Games -1800)
"a[href='./viewforum.php?f=756']," + // 2k4+ games
"a[href='./viewforum.php?f=91']," + // Expert games
"a[href='./viewforum.php?f=48']," + // Custom Scenario
"a[href='./viewforum.php?f=634']," + // Daily games AoE2HD
"a[href='./viewforum.php?f=691']", // Expert games AoE2HD
hideNode,
true
);
function hideNode(jNode) {
jNode.parent().parent().hide();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.