• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:11
CEST 11:11
KST 18:11
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Voting8[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
BSL Team A vs Koreans - Sat-Sun 16:00 CET1Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition32
StarCraft 2
General
Stellar Fest: StarCraft II returns to Canada herO Talks: Poor Performance at EWC and more... Revisiting the game after10 years and wow it's bad TL.net Map Contest #21: Voting Weekly Cups (Oct 6-12): Four star herO
Tourneys
$1,200 WardiTV October (Oct 21st-31st) WardiTV Mondays RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BSL Team A vs Koreans - Sat-Sun 16:00 CET BW General Discussion Question regarding recent ASL Bisu vs Larva game [Interview] Grrrr... 2024 Pros React To: BarrackS + FlaSh Coaching vs SnOw
Tourneys
[ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues [ASL20] Semifinal A
Strategy
BW - ajfirecracker Strategy & Training Current Meta Relatively freeroll strategies Siegecraft - a new perspective
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Series you have seen recently... Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1429 users

TL BW Userscript - Page 5

Forum Index > BW General
Post a Reply
Prev 1 2 3 4 5 6 7 8 9 Next All
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
Last Edited: 2011-08-25 01:36:23
August 25 2011 01:36 GMT
#81
On August 25 2011 07:23 jpak wrote:
Show nested quote +
On August 25 2011 02:27 WhuazGoodJaggah wrote:
I added a function to remove all streams except bw streams.
let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() {
var bwNodes = new Array();

// get all the bw streams
var featuredStreams = nextObject(document.getElementById("nav_streams"));
featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild;
for (var i=0; i < featuredStreams.childNodes.length; i++) {
var node = featuredStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

var moreStreams = document.getElementById("more_streams");
for (var i=0; i < moreStreams.childNodes.length; i++) {
var node = moreStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

// remove all the old featured streams
while (featuredStreams.hasChildNodes()) {
featuredStreams.removeChild(featuredStreams.firstChild);
}

// insert bw streams into the featured streams list
for (var i=0; i < bwNodes.length; i++) {
featuredStreams.appendChild(bwNodes[i]);
featuredStreams.appendChild(document.createElement("br"));
}
}


just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.

+ Show Spoiler [full script] +
// ==UserScript==
// @name TLBW
// @description Userscript to make teamliquid more useful for Brood War fans
// @version 2.4
// @include [url=http://teamliquid.net/*]http://teamliquid.net/*[/url]
// @include [url=http://www.teamliquid.net/*]http://www.teamliquid.net/*[/url]
// @exclude [url=http://teamliquid.net/sc2/*]http://teamliquid.net/sc2/*[/url]
// @exclude [url=http://teamliquid.net/store/*]http://teamliquid.net/store/*[/url]
// @exclude [url=http://teamliquid.net/tlfe/*]http://teamliquid.net/tlfe/*[/url]
// @exclude [url=http://teamliquid.net/tournaments/*]http://teamliquid.net/tournaments/*[/url]
// @exclude [url=http://teamliquid.net/vods/*]http://teamliquid.net/vods/*[/url]
// @exclude [url=http://www.teamliquid.net/sc2/*]http://www.teamliquid.net/sc2/*[/url]
// @exclude [url=http://www.teamliquid.net/store/*]http://www.teamliquid.net/store/*[/url]
// @exclude [url=http://www.teamliquid.net/tlfe/*]http://www.teamliquid.net/tlfe/*[/url]
// @exclude [url=http://www.teamliquid.net/tournaments/*]http://www.teamliquid.net/tournaments/*[/url]
// @exclude [url=http://www.teamliquid.net/vods/*]http://www.teamliquid.net/vods/*[/url]
// @run-at document-end
// ==/UserScript==

/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera.
* Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory.
*
* Changelog:
* 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD
* 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers
* 2.2: Swapped store and power rank links on the top bar
* Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads)
* 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page
* 2.0: Abstracted the section relocation stuff
*/

/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */

// Wrap the script in an anonymous function so Opera doesn't blow up
(function() {

function main() {
var news = new Section("nav_news_left_mid", 1, false);
var general = new Section("nav_general", 1, false);
var sc2 = new Section("nav_starcraft2", 1, false);
var bw = new Section("nav_broodwar", 1, false);
var games = new Section("nav_games", 1, false);
var blogs = new Section("nav_blogs", 1, false);
var replays = new Section("nav_replays", 1, false);

var calendar = new Section("nav_calendar", 2, true);
var streams = new Section("nav_streams", 1, true);
var tlpd = new Section("nav_tlpd", 1, true);
var liquipedia = new Section("nav_wiki", 1, true);
var tsl = new Section("nav_tslforum", 1, true);
var poll = new Section("nav_poll", 1, true);

/* Swap Power Rank and Store */
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") == "/powerrank/") {
links[i].href = "/store/";
links[i].innerHTML = "Store";
}
else if (links[i].getAttribute("href") == "/store/") {
links[i].href = "/powerrank/";
links[i].innerHTML = "Power Rank";
}
}

/* Remove SC2 Elo rank display */
var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search"));
var rank2 = nextObject(rank1);
rank1.parentNode.removeChild(rank1);
rank2.parentNode.removeChild(rank2);

/* Move the Brood War forums above the SC2 forums */
move_section(bw, sc2);

/* Move replays to above poll */
move_section(replays, poll);

/* Remove poll */
remove_section(poll);

/* Only BW streams are important to me */
let_bw_streams_rule_the_featured_list();

/* Move streams to above TSL */
move_section(streams, tsl);

/* Change default tlpd search to BW (Korea) */
document.forms.namedItem("frm_tlpd_search").elements.namedItem("type").children[3].selected = true;
document.getElementById("nav_tlpd").href = "/tlpd/korean";

/* Change liquipedia search to Brood War liquipedia */
for (var i = 0; i < document.forms.length; i++) {
var form = document.forms[i];
if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php")
form.action = "http://wiki.teamliquid.net/starcraft/index.php";
}

}

function Section(id, count, on_right) {
this.on_right = on_right;
this.elements = new Array();

var link = document.getElementById(id);
this.elements.push(link);
for (var x = 0; x < count; x++) {
this.elements.push(nextObject(link));
}
}

var remove_section = function(section) {
for (var x = 0; x < section.elements.length; x++) {
var node = section.elements[x];
node.parentNode.removeChild(node);
}
}

var prepend_section = function(section, location) {
var loc = location.elements[0];
for (var x = 0; x < section.elements.length; x++) {
var node = section.elements[x];
loc.parentNode.insertBefore(node, loc);
}
}

var move_section = function(from, to) {
remove_section(from);
prepend_section(from, to);
}

var let_bw_streams_rule_the_featured_list = function() {
var bwNodes = new Array();

// get all the bw streams
var featuredStreams = nextObject(document.getElementById("nav_streams"));
featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild;
for (var i=0; i < featuredStreams.childNodes.length; i++) {
var node = featuredStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

var moreStreams = document.getElementById("more_streams");
for (var i=0; i < moreStreams.childNodes.length; i++) {
var node = moreStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

// remove all the old featured streams
while (featuredStreams.hasChildNodes()) {
featuredStreams.removeChild(featuredStreams.firstChild);
}

// insert bw streams into the featured streams list
for (var i=0; i < bwNodes.length; i++) {
featuredStreams.appendChild(bwNodes[i];
featuredStreams.appendChild(document.createElement("br"));
}
}

/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */
var nextObject = function(el) {
var n = el;
do n = n.nextSibling;
while (n && n.nodeType != 1);
return n;
}

var previousObject = function(el) {
var p = el;
do p = p.previousSibling;
while (p && p.nodeType != 1);
return p;
}

if (window.opera) {
if (document.readyState==="loading") {
if (window.addEventListener)
window.addEventListener("DOMContentLoaded", main, false);
else if (window.attachEvent)
window.attachEvent("onload", main);
}
else if (document.readyState==="complete") {
main();
}
else {
if (window.addEventListener)
window.addEventListener("load", main, false);
else if (window.attachEvent)
window.attachEvent("onload", main);
}
}
else {
main();
}
})();


when I try the full script, it says an 800A03F4 error with "expected /" on line 94 char 49.

Love the efforts, everyone!!


I uploaded it to userscripts.org, http://userscripts.org/scripts/show/111240.
small dicks have great firepower
insanet
Profile Joined January 2010
Peru439 Posts
August 25 2011 01:44 GMT
#82
this is working great, thank you.
Cambium
Profile Blog Joined June 2004
United States16368 Posts
Last Edited: 2011-08-26 05:25:58
August 25 2011 01:55 GMT
#83
Filtered Calendar (code below)
[image loading]


http://userscripts.org/scripts/show/111242

notes:
- pretty messy, I just wanted it to work
- I removed the toggle button and show all events by default
- so far, only OSL, MSL, SPL and STX are shown, more can be added in isSCBW method by including additional tag
- there's nothing stopping you from adding your favourite SC2 tourneys such as "[GSL] "
- updated on 08/26/2011


// ==UserScript==
// @name calendar fix
// @namespace tl
// @include h__p://www.teamliquid.net/*
// ==/UserScript==
//
//

// show all and hide the toggle
var toggle = document.getElementById( "span_more_events" );
toggle.style.display = "block";
toggle = document.getElementById( "link_show_more_events" );
toggle.style.display = "none";

// 'less' events
var node;
var par;
var parentXPath;
var nodeXPath;
for( i = 1; i <= 5; i++ ) {
nodeXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/table/tbody/tr[" + i + "]/td[2]/a";
node = findXPathNode( nodeXPath );
if( !isSCBW( node ) ){
parentXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/table/tbody/tr[" + i + "]";
par = findXPathNode( parentXPath );
par.style.display = "none";
}
}
// 'more' events
for( i = 1; i <= 15; i++ ){
nodeXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/div[2]/table/tbody/tr[" + i + "]/td[2]/a";
node = findXPathNode( nodeXPath );
if( !isSCBW( node ) ){
parentXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table/tbody/tr/td/div[2]/div[2]/table/tbody/tr[" + i + "]";
par = findXPathNode( parentXPath );
par.style.display = "none";
}
}

function isSCBW( node )
{
var tags = new Array( "[OSL] ", "[MSL] ", "[SPL] ", "[STX] ", "[GC] " ); // GC = Gambit Cup
var str = node.innerHTML;
for (var i in tags) {
if (str.indexOf(tags[i]) != -1) {
return true;
}
}
return false;
}

function findXPathNode(xpath, start,doc)
{
var result = (doc == null ? document : doc).evaluate(xpath,(start == null ? document : start), null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE ,null);
return (result.snapshotLength > 0 ? result.snapshotItem(0) : null);
}
When you want something, all the universe conspires in helping you to achieve it.
WhuazGoodJaggah
Profile Blog Joined January 2009
Lesotho777 Posts
Last Edited: 2011-08-25 02:16:22
August 25 2011 02:10 GMT
#84
niceööö
A little suggestion for isSCBW, to make it easier to add and remove tags
function isSCBW( node )
{
var tags = new Array( "[OSL] ", "[MSL] ", "[SPL] ", "[STX] ", "[GC] " ); // GC = Gambit Cup
var str = node.innerHTML;
for (var i in tags) {
if (str.indexOf(tags[i]) != -1) {
return true;
}
}
return false;
}
small dicks have great firepower
soujiro_
Profile Joined June 2010
Uruguay5195 Posts
August 25 2011 02:14 GMT
#85
On August 25 2011 10:36 WhuazGoodJaggah wrote:
Show nested quote +
On August 25 2011 07:23 jpak wrote:
On August 25 2011 02:27 WhuazGoodJaggah wrote:
I added a function to remove all streams except bw streams.
let bw streams rule tl.net MUAHAHAHHAHAH
var let_bw_streams_rule_the_featured_list = function() {
var bwNodes = new Array();

// get all the bw streams
var featuredStreams = nextObject(document.getElementById("nav_streams"));
featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild;
for (var i=0; i < featuredStreams.childNodes.length; i++) {
var node = featuredStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

var moreStreams = document.getElementById("more_streams");
for (var i=0; i < moreStreams.childNodes.length; i++) {
var node = moreStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

// remove all the old featured streams
while (featuredStreams.hasChildNodes()) {
featuredStreams.removeChild(featuredStreams.firstChild);
}

// insert bw streams into the featured streams list
for (var i=0; i < bwNodes.length; i++) {
featuredStreams.appendChild(bwNodes[i]);
featuredStreams.appendChild(document.createElement("br"));
}
}


just insert the function somewhere between other functions (f.e. below move_section) and then call it where the other functions (like move_section) are called.

+ Show Spoiler [full script] +
// ==UserScript==
// @name TLBW
// @description Userscript to make teamliquid more useful for Brood War fans
// @version 2.4
// @include [url=http://teamliquid.net/*]http://teamliquid.net/*[/url]
// @include [url=http://www.teamliquid.net/*]http://www.teamliquid.net/*[/url]
// @exclude [url=http://teamliquid.net/sc2/*]http://teamliquid.net/sc2/*[/url]
// @exclude [url=http://teamliquid.net/store/*]http://teamliquid.net/store/*[/url]
// @exclude [url=http://teamliquid.net/tlfe/*]http://teamliquid.net/tlfe/*[/url]
// @exclude [url=http://teamliquid.net/tournaments/*]http://teamliquid.net/tournaments/*[/url]
// @exclude [url=http://teamliquid.net/vods/*]http://teamliquid.net/vods/*[/url]
// @exclude [url=http://www.teamliquid.net/sc2/*]http://www.teamliquid.net/sc2/*[/url]
// @exclude [url=http://www.teamliquid.net/store/*]http://www.teamliquid.net/store/*[/url]
// @exclude [url=http://www.teamliquid.net/tlfe/*]http://www.teamliquid.net/tlfe/*[/url]
// @exclude [url=http://www.teamliquid.net/tournaments/*]http://www.teamliquid.net/tournaments/*[/url]
// @exclude [url=http://www.teamliquid.net/vods/*]http://www.teamliquid.net/vods/*[/url]
// @run-at document-end
// ==/UserScript==

/* Notes: This should be fully compatible with Firefox (Greasemonkey)/Chrome/Opera.
* Opera users should replace the .user.js extension with just a .js before putting it into the userjs directory.
*
* Changelog:
* 2.4: Changed the link when clicking on the TLPD banner to go directly to the BW TLPD
* 2.3: Fixed the script run time to properly change everything before the page shows up on all 3 browsers
* 2.2: Swapped store and power rank links on the top bar
* Moved around the order in which the default changes take place so more visibly obvious changes occur first (before the page fully loads)
* 2.1: Added all of teamliquid and blacklisted specific pages to run the script on, instead of whitelisting every individual page
* 2.0: Abstracted the section relocation stuff
*/

/* Sections: news, general, sc2, bw, games, blogs, replays, calendar, streams, tlpd, liquipedia, tsl, poll */

// Wrap the script in an anonymous function so Opera doesn't blow up
(function() {

function main() {
var news = new Section("nav_news_left_mid", 1, false);
var general = new Section("nav_general", 1, false);
var sc2 = new Section("nav_starcraft2", 1, false);
var bw = new Section("nav_broodwar", 1, false);
var games = new Section("nav_games", 1, false);
var blogs = new Section("nav_blogs", 1, false);
var replays = new Section("nav_replays", 1, false);

var calendar = new Section("nav_calendar", 2, true);
var streams = new Section("nav_streams", 1, true);
var tlpd = new Section("nav_tlpd", 1, true);
var liquipedia = new Section("nav_wiki", 1, true);
var tsl = new Section("nav_tslforum", 1, true);
var poll = new Section("nav_poll", 1, true);

/* Swap Power Rank and Store */
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") == "/powerrank/") {
links[i].href = "/store/";
links[i].innerHTML = "Store";
}
else if (links[i].getAttribute("href") == "/store/") {
links[i].href = "/powerrank/";
links[i].innerHTML = "Power Rank";
}
}

/* Remove SC2 Elo rank display */
var rank1 = nextObject(document.forms.namedItem("frm_tlpd_search"));
var rank2 = nextObject(rank1);
rank1.parentNode.removeChild(rank1);
rank2.parentNode.removeChild(rank2);

/* Move the Brood War forums above the SC2 forums */
move_section(bw, sc2);

/* Move replays to above poll */
move_section(replays, poll);

/* Remove poll */
remove_section(poll);

/* Only BW streams are important to me */
let_bw_streams_rule_the_featured_list();

/* Move streams to above TSL */
move_section(streams, tsl);

/* Change default tlpd search to BW (Korea) */
document.forms.namedItem("frm_tlpd_search").elements.namedItem("type").children[3].selected = true;
document.getElementById("nav_tlpd").href = "/tlpd/korean";

/* Change liquipedia search to Brood War liquipedia */
for (var i = 0; i < document.forms.length; i++) {
var form = document.forms[i];
if (form.action == "http://wiki.teamliquid.net/starcraft2/index.php")
form.action = "http://wiki.teamliquid.net/starcraft/index.php";
}

}

function Section(id, count, on_right) {
this.on_right = on_right;
this.elements = new Array();

var link = document.getElementById(id);
this.elements.push(link);
for (var x = 0; x < count; x++) {
this.elements.push(nextObject(link));
}
}

var remove_section = function(section) {
for (var x = 0; x < section.elements.length; x++) {
var node = section.elements[x];
node.parentNode.removeChild(node);
}
}

var prepend_section = function(section, location) {
var loc = location.elements[0];
for (var x = 0; x < section.elements.length; x++) {
var node = section.elements[x];
loc.parentNode.insertBefore(node, loc);
}
}

var move_section = function(from, to) {
remove_section(from);
prepend_section(from, to);
}

var let_bw_streams_rule_the_featured_list = function() {
var bwNodes = new Array();

// get all the bw streams
var featuredStreams = nextObject(document.getElementById("nav_streams"));
featuredStreams = nextObject(featuredStreams.firstChild).firstChild.firstChild;
for (var i=0; i < featuredStreams.childNodes.length; i++) {
var node = featuredStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

var moreStreams = document.getElementById("more_streams");
for (var i=0; i < moreStreams.childNodes.length; i++) {
var node = moreStreams.childNodes[i];
if (node.nodeName == "A" && node.innerHTML.indexOf("[BW] ") != -1) {
bwNodes.push(node);
}
}

// remove all the old featured streams
while (featuredStreams.hasChildNodes()) {
featuredStreams.removeChild(featuredStreams.firstChild);
}

// insert bw streams into the featured streams list
for (var i=0; i < bwNodes.length; i++) {
featuredStreams.appendChild(bwNodes[i];
featuredStreams.appendChild(document.createElement("br"));
}
}

/* Adapted from [url=http://v3.thewatchmakerproject.com/journal/329/]http://v3.thewatchmakerproject.com/journal/329/[/url] */
var nextObject = function(el) {
var n = el;
do n = n.nextSibling;
while (n && n.nodeType != 1);
return n;
}

var previousObject = function(el) {
var p = el;
do p = p.previousSibling;
while (p && p.nodeType != 1);
return p;
}

if (window.opera) {
if (document.readyState==="loading") {
if (window.addEventListener)
window.addEventListener("DOMContentLoaded", main, false);
else if (window.attachEvent)
window.attachEvent("onload", main);
}
else if (document.readyState==="complete") {
main();
}
else {
if (window.addEventListener)
window.addEventListener("load", main, false);
else if (window.attachEvent)
window.attachEvent("onload", main);
}
}
else {
main();
}
})();


when I try the full script, it says an 800A03F4 error with "expected /" on line 94 char 49.

Love the efforts, everyone!!


I uploaded it to userscripts.org, http://userscripts.org/scripts/show/111240.


thanks for the upload, i was having issues trying to install it
ace hwaiting!!
Cambium
Profile Blog Joined June 2004
United States16368 Posts
August 25 2011 02:15 GMT
#86
On August 25 2011 11:10 WhuazGoodJaggah wrote:
niceööö
A little suggestion for isSCBW, to make it easier to add and remove tags
function isSCBW( node )
{
var tags = new Array( "[OSL] ", "[MSL] ", "[SPL] ", "[STX] ", "[GC] " ); // GC = Gambit Cup
var str = node.innerHTML;
for (var i in tags) {
if (str.indexOf(tags[i]) != -1) {
return true;
}
}
return false;
}

Yep, this is much easier, let me update it.
When you want something, all the universe conspires in helping you to achieve it.
sheaRZerg
Profile Blog Joined June 2009
United States613 Posts
August 25 2011 02:15 GMT
#87
This is awesome.

Thanks to everyone working on it.
"Dude, just don't listen to what I say; listen to what I mean." -Sean Plott
erin[go]bragh
Profile Joined December 2008
United States815 Posts
August 25 2011 02:44 GMT
#88
Amazing! Huge props to everyone working on it! Out of site, out of mind!

Getting rid of SC2 events on the calendar was the biggest thing for me. So hard to find BW event times in the sea of rubbish.

Now if only there were a way to remove posts like "OMG HOPE HE SWITCHES TO SC2 LAWL" in BW threads.
JulyZerg! by.hero, effOrt, KTY.
writer22816
Profile Blog Joined September 2008
United States5775 Posts
August 25 2011 03:04 GMT
#89
Changing the default TLPD search and cleansing the calendar? Wow this is absolutely amazing, can't wait to try this when I get home
8/4/12 never forget, never forgive.
therockmanxx
Profile Joined July 2010
Peru1174 Posts
August 25 2011 03:22 GMT
#90
can you jut make a script to remove sc2 forums ?? =D
Tekken ProGamer
Armathai
Profile Joined October 2007
1023 Posts
August 25 2011 03:44 GMT
#91
Amazing work b0lt! Chill said something about BW TL members needing to step up to help, and you've just done what R1CH doesn't have the time for and made our lives so much easier ^_^ <3 <3

@Cambium

I installed your script too (successfully) but it doesn't appear to be filtering out the SC2 events?
Thanks for the work anyway, hopefully I'll figure out what I'm doing wrong
Looking for ArcticCerebrate formerly from @USEast
4vvhiplash7
Profile Joined December 2010
South Africa392 Posts
August 25 2011 04:42 GMT
#92
On August 25 2011 11:44 erin[go]bragh wrote:
Amazing! Huge props to everyone working on it! Out of site, out of mind!

Getting rid of SC2 events on the calendar was the biggest thing for me. So hard to find BW event times in the sea of rubbish.

Now if only there were a way to remove posts like "OMG HOPE HE SWITCHES TO SC2 LAWL" in BW threads.


That would be amazing! LOL
AttackZerg
Profile Blog Joined January 2003
United States7454 Posts
August 25 2011 04:44 GMT
#93
Thank you guys!
CaucasianAsian
Profile Blog Joined September 2005
Korea (South)11584 Posts
August 25 2011 04:45 GMT
#94
Replays section doesn't show up when i use this extension.
Calendar@ Fish Server: `iOps]..Stark
Cambium
Profile Blog Joined June 2004
United States16368 Posts
August 25 2011 04:53 GMT
#95
On August 25 2011 12:44 Armathai wrote:
Amazing work b0lt! Chill said something about BW TL members needing to step up to help, and you've just done what R1CH doesn't have the time for and made our lives so much easier ^_^ <3 <3

@Cambium

I installed your script too (successfully) but it doesn't appear to be filtering out the SC2 events?
Thanks for the work anyway, hopefully I'll figure out what I'm doing wrong

That's strange, it seems to work for me.

Go to manage scripts --> calendar fix --[right click]-> edit

Do you see the source code in there?
When you want something, all the universe conspires in helping you to achieve it.
soujiro_
Profile Joined June 2010
Uruguay5195 Posts
August 25 2011 04:55 GMT
#96
On August 25 2011 13:45 CaucasianAsian wrote:
Replays section doesn't show up when i use this extension.



replays were moved to the right side, under tsl
ace hwaiting!!
CaucasianAsian
Profile Blog Joined September 2005
Korea (South)11584 Posts
August 25 2011 04:59 GMT
#97
oh ok thank you.
Calendar@ Fish Server: `iOps]..Stark
Sawamura
Profile Blog Joined August 2010
Malaysia7602 Posts
August 25 2011 05:16 GMT
#98
the calendar fix is awesome <3
BW/KT Forever R.I.P KT.Violet dearly missed ..
Cambium
Profile Blog Joined June 2004
United States16368 Posts
August 25 2011 05:22 GMT
#99
To OP:

Instead of looping through all forms, you can simply refer to liquipedia via its XPath:


var bwlpXPath = "/html/body/table/tbody/tr/td/table[2]/tbody/tr/td[3]/table[4]/tbody/tr/td/form";
node = findXPathNode( bwlpXPath );
node.action = "h__p://wiki.teamliquid.net/starcraft/index.php";
When you want something, all the universe conspires in helping you to achieve it.
HaruHaru
Profile Blog Joined November 2009
United States988 Posts
August 25 2011 06:15 GMT
#100
excellent post! this will help so much!
Long live BroodWar!
Prev 1 2 3 4 5 6 7 8 9 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 49m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 248
SortOf 139
StarCraft: Brood War
Rain 1552
GuemChi 608
Killer 563
actioN 432
sorry 100
firebathero 88
JulyZerg 78
ToSsGirL 67
Mini 59
soO 30
[ Show more ]
Sacsri 26
ajuk12(nOOB) 15
ivOry 8
Barracks 0
Dota 2
XcaliburYe1156
League of Legends
JimRising 723
Counter-Strike
Stewie2K298
oskar64
Heroes of the Storm
Khaldor180
Other Games
summit1g13367
B2W.Neo362
C9.Mang0280
KnowMe135
Mew2King129
singsing112
ViBE55
Trikslyr22
Organizations
Counter-Strike
PGL9144
Other Games
gamesdonequick1357
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH176
• LUISG 18
• Adnapsc2 12
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2098
• HappyZerGling125
Other Games
• WagamamaTV583
Upcoming Events
CranKy Ducklings
49m
BSL Team A[vengers]
4h 49m
Bonyth vs Paralyze
StRyKeR vs Ample
Safe House 2
7h 49m
Sparkling Tuna Cup
1d
Safe House 2
1d 7h
Monday Night Weeklies
2 days
Tenacious Turtle Tussle
4 days
The PondCast
5 days
Online Event
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.