Jump to content

SuBw00FeR

Member
  • Posts

    107
  • Joined

  • Last visited

Awards

This user doesn't have any awards

1 Follower

About SuBw00FeR

  • Birthday Mar 29, 1989

Profile Information

  • Member title
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SuBw00FeR's Achievements

  1. Basically I want to hide the spoilers on the Dota 2 Liquipedia page namely just the brackets of the tournament, don't really care about group stages. I found a user who made a JS for Greasemonkey but it's 8 years old and doesn't work even after updating the URL's it's for. Would this require a complete rewrite or is there something simple to make it work? Script is here - https://github.com/lux01/liquipedia_spoilers Page I want to hide spoilers as an example - https://liquipedia.net/dota2/Riyadh_Masters/2023 Script below with the new url - // ==UserScript== // @name Liquipedia Spoiler Hider // @namespace www.lux01.co.uk // @description Hides tournament spoilers on the Liquipedia // @include https://liquipedia.net/* // @exclude https://liquipedia.net/hearthstone/* // @version 1.0.1a // @grant none // @copyright 2015, William Woodhead (www.lux01.co.uk) // @license MIT License // @homepageURL https://github.com/lux01/liquipedia_spoilers // ==/UserScript== var matchWonFile = 'GreenCheck.png'; function hide_spoilers() { // Disable the bold winner names $('.bracket-team-top, .bracket-team-middle, .bracket-team-bottom, .bracket-player-top, .bracket-player-bottom').parent().each(function() { $(this).css('font-weight','normal').off(); }); // Disable the mouse over highlight events $('.bracket-team-top, .bracket-team-middle, .bracket-team-bottom, .bracket-player-top, .bracket-player-bottom').off(); // Hide the match results in the popup $('.bracket-game-details .matches').hide(); // Not all the wikis use .matches so we have got to improvise $('.bracket-game-details').children('div:not(:first-child):not(:last-child)').hide(); // Hide spoiler team names, icons and scores on the playoff tables $('.bracket-team-top, .bracket-team-middle, .bracket-team-bottom').each(function() { $('.team-template-image', this).hide(); $('.team-template-text', this).hide(); $('.bracket-score', this).hide(); }); // SC2 doesn't use teams, it uses players $('.bracket-player-top, .bracket-team-middle, .bracket-player-bottom').each(function() { $(this).data('old-color', $(this).css('background-color')); $(this).css('background-color','rgb(242,232,184)'); $('span, img, .bracket-score', this).hide(); }); // Calculate how many "watch" icons are shown and generate dummy ones $('.bracket-game-details').each(function() { // Since we can't rely on there being the right number of vods not to spoil things // or the vod might not be split into game parts, we will just individually reveal vod // links on demand. // First we work out how many games there might be var lefties = $(this).find('.matches .left .check').filter(function(index) { return $('img', this).attr('src').endsWith(matchWonFile); }).length; var righties = $(this).find('.matches .right .check').filter(function(index) { return $('img', this).attr('src').endsWith(matchWonFile); }).length; var bestOf = 2 * Math.max(lefties, righties) - 1; var showNext = $(document.createElement('button')).text('Show next VOD').data('shown', 1); $(this).find('.icons .plainlinks:gt(0), .bracket-icons .plainlinks:gt(0)').hide(); $(this).find('.bracket-icons > :not(a, .plainlinks), .bracket-icons > a[href^="http://www.hltv.org/"], .bracket-icons > a[href^="https://www.hltv.org/""]').hide(); var showSpoilersButton = $(document.createElement('button')).text('Show spoilers'); showNext.click(function(evt) { var shown = $(evt.target).data('shown'); var parent = $(evt.target).closest('.bracket-game-details'); $('span.plainlinks:lt(' + ($(evt.target).data('shown') + 1) + ')', parent).show(); $(evt.target).data('shown', shown + 1); var numLinks = $('span.plainlinks', parent).length; if(shown + 1 > numLinks || (bestOf > 0 && shown + 1 == bestOf)) $(evt.target).remove(); }); showSpoilersButton.click(function(evt) { var bgds = $(evt.target).closest('.bracket-game-details'); $('.matches', bgds).show(); $('.plainlinks', bgds).show(); $('.icons .plainlinks:gt(0), .bracket-icons .plainlinks:gt(0)', bgds).show(); $('.bracket-icons > :not(.plainlinks)', bgds).show(); var game = $(evt.target).parent().parent().parent(); $('.team-template-image, .team-template-text, .bracket-score', game).show(); $('.bracket-player-top, .bracket-player-bottom', game).show() $('img, span, .bracket-score', game).show(); $('.bracket-player-top, .bracket-player-bottom', game).each(function () { $(this).css('background-color', $(this).data('old-color')); }); $('.bracket-game-details', game).children('div').show(); $(showNext).remove(); $(showSpoilersButton).remove(); }); var showSpoilersDiv = $(document.createElement('div')); showSpoilersDiv.append(showNext); showSpoilersDiv.append(showSpoilersButton); showSpoilersDiv.insertAfter($('div:last', this)); }); // Remove the click behaviour from the info button and make the entire // panel do its job instead $('.bracket-game .icon').off(); $('.bracket-game').each(function() { var parent = this; $(this).click(function (evt) { // Hide all the rest $('.bracket-game-details').hide(); // Find ours var ourDetails = $('.bracket-game-details', parent); if(ourDetails.data('visible')) { ourDetails.hide(); ourDetails.data('visible', false); } else { ourDetails.show(); ourDetails.data('visible', true); } }); }); // Tournament info box spoilers $('.infobox-center span[title="First Place"]').parent().hide(); $('.infobox-center span[title="Second Place"]').parent().hide(); $('.infobox-center span[title="Third Place"]').parent().hide(); $('.infobox-center span[title="Fourth Place"]').parent().hide(); $('.infobox-center span[title="Semifinalist(s)"]').parent().hide(); // Create the show spoilers button for the infobox var showSpoilersInfoBoxContainer = $(document.createElement('div')).css('text-align', 'center'); var showSpoilersInfoBoxDiv = $(document.createElement('div')).attr('class', 'infobox-center'); var showSpoilersInfoBoxButton = $(document.createElement('button')).text('Show spoilers'); showSpoilersInfoBoxButton.click(function () { $('.infobox-center span[title="First Place"]').parent().show(); $('.infobox-center span[title="Second Place"]').parent().show(); $('.infobox-center span[title="Third Place"]').parent().show(); $('.infobox-center span[title="Fourth Place"]').parent().show(); $('.infobox-center span[title="Semifinalist(s)"]').parent().show(); showSpoilersInfoBoxContainer.remove(); }); showSpoilersInfoBoxDiv.append(showSpoilersInfoBoxButton); showSpoilersInfoBoxContainer.append(showSpoilersInfoBoxDiv); $('.infobox-center span[title="First Place"]').parent().parent().append(showSpoilersInfoBoxContainer); // Hide the prizepool table $('table.prizepooltable').hide(); var showSpoilersPrizePool = $(document.createElement('button')).text('Show prize pool'); showSpoilersPrizePool.click(function() { $('table.prizepooltable').show(); showSpoilersPrizePool.remove(); }); showSpoilersPrizePool.insertAfter($('table.prizepooltable')); } window.addEventListener('load', function() { console.log("Liquipedia spoiler hider: loading..."); hide_spoilers(); console.log("Liquipedia spoiler hider: loaded!"); }, false);
  2. yeah I'll probably just leave it alone, thanks guys
  3. bios and drivers all up to date it's not too frequent so it doesn't bother me that much, just tthought id mention it
  4. Had this combo for a while now, don't really have any issues (although I get random stutters every now and then, not sure if this is because of it) just wondering if it's worth upgrading the motherboard to an x570/s. I use 2 m.2's and a sata SSD currently, but will eventually use all 3 m.2 slots instead as I understand this would be the main reason to upgrade since the m.2's would use the chipset instead correct? PC Is used for gaming and heavy multi tasking. 5950x b550 aorus master RTX 3080 32gb RAM
  5. Yes they work at the back, but they don't work when the GPU is connected to the back.
  6. Back after another look around in the BIOS, still nothing... but the usb header issue isn't a problem actually because I've tried connecting a normal USB C to USB A cable from the GPU to the back of my motherboard with a cable and a port that I know works for other stuff. So I guess it is an issue with the card/software anyways.
  7. So swapping it to the other header, front panel still doesn't work. Does the BIOS have a search feature? I didn't think it did. I'll have another look I guess.
  8. Ok so some good and bad news. Bad news = Front USB DOESN'T Work, I never realised as I don't use them, always just assumed they did. Looked around in BIOS and everything USB was enabled and looked ok so I'm not sure what setting to change to enable them. Good news = This could be a relatively easy fix, just need to enable the headers somehow, and shouldn't be an actual issue with my GPU.
  9. I do, and its plugged in i never use it though, is it possible theres a bios setting disabling the headers? Its an asus z370-e strix
  10. I believe its just using the connector, i dont think its an actual usb c port. Either way, all reference material says to plug into a usb 2.0 header, usb c header isnt a thing afaik. Just usb 2.0 and usb 3.1/2
  11. The usb c plug is on the gpu, its plugging into a usb 2.0 header on the motherboard
  12. Alright let it run a couple times to update everything properly rebooted a couple times andddddd nothing https://i.imgur.com/ykxfrXG.png
  13. https://www.asus.com/us/Motherboards/ROG-STRIX-Z370-E-GAMING/HelpDesk_Download/ Which one would be for the USB/C drivers? I've installed the chipset stuff, I'll try driver easy see if that works, and here's a link to the image https://i.imgur.com/0ADP7CD.png
  14. Ive tried this but windows cant find a driver for the usb device and igame dont provide it, they also ignored my request for it in emails so i have no idea if it even exists
×