Created
August 23, 2019 01:35
-
-
Save yurafuca/d24904990b02ded2133229241626c786 to your computer and use it in GitHub Desktop.
supergomibako
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 New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://supergomibako.com/tool/gloogel/tl | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| redraw(document.querySelectorAll('.tw')); | |
| // Select the node that will be observed for mutations | |
| const targetNode = document.querySelector('.mainarea'); | |
| // Options for the observer (which mutations to observe) | |
| const config = { attributes: true, childList: true, subtree: true }; | |
| // Callback function to execute when mutations are observed | |
| const callback = function(mutationsList, observer) { | |
| for(let mutation of mutationsList) { | |
| if (mutation.type === 'childList') { | |
| console.log('A child node has been added or removed.'); | |
| redraw(mutation.addedNodes); | |
| } | |
| else if (mutation.type === 'attributes') { | |
| console.log('The ' + mutation.attributeName + ' attribute was modified.'); | |
| } | |
| } | |
| }; | |
| // Create an observer instance linked to the callback function | |
| const observer = new MutationObserver(callback); | |
| // Start observing the target node for configured mutations | |
| observer.observe(targetNode, config); | |
| })(); | |
| function redraw(tweets) { | |
| const titles = [ | |
| 'Compilaion fails because proces cannot access dll (after VS2017 ...', | |
| 'vcmeta.dll not found after latest update - Visual Studio Developer ... ', | |
| 'Could not copy the file "obj\x64\Debug\Management.exe ...', | |
| 'Errors reported when none exist (Visual Basic projects ...', | |
| 'Visual Studio Build Tools - Error reading the version of vstest ...', | |
| 'Problems when starting VS 2017 Enterprise on Windows 10 - Visual ...', | |
| 'warning #31001 the dll for reading and writing pdb could not be ...' | |
| ]; | |
| const details = [ | |
| 'It reports "Unable to copy file xxx.dll to bin. the process cannot access the file xxx.dll because it is being used by another process. This error never happened before the v15.2 update. There is no other process accessing this folder, just Visual ...', | |
| 'Reading the previous answer again, it seems there are multiple versions of this dll, and the one in the GAC cache may be an older version (no idea where it comes from?). Doing a disk-wide search for the assembly revieled it ...', | |
| 'All of them are "not defined" errors. I can clean, rebuild, and run the solution without an issue, even though the errors are reported. ... This issue is read only, because it has been in Closed–Fixed state for over 90 days.', | |
| 'I can get the build to pass when having code coverage disabled, but it fails when having it enabled. .... 2019-03-27T12:20:44.7124857Z Test assemblies : **\Output\x64\VS141\Release\BBTest.dll .... It actually works for simple applications and Unit tests, it is just that this is not working (the Unit Tests are ...', | |
| 'I am new in Visual Studio, I tried to test a simple Fortran code but I cannot run it as it gives this error: warning #31001 the dll for reading and writing pdb could not be found on your path. How can I solve this? Thanks.', | |
| 'After clean installation, while starting VS 2017, I get multiple errors saying The package did not load correctly" This issue is read only, because it has been in Closed–Fixed state for over 90 days. .... for example: pushd C:\Program Files (x86)\Microsoft Visual Studio2017\Enterprise; gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio. ...' | |
| ]; | |
| for (const e of tweets) { | |
| e.querySelector('.dispid a').innerHTML = '<u>' + e.querySelector('.dispname a').textContent + '</u> ' + e.querySelector('.dispid a').textContent; | |
| e.querySelector('.dispname a').textContent = titles[getRandomInt(titles.length - 1)]; | |
| e.querySelector('.dispname').innerHTML = e.querySelector('.dispname').innerHTML.replace('【鍵】', ''); | |
| e.querySelector('.dispsub').innerHTML = e.querySelector('.dispdetail').innerHTML; | |
| e.querySelector('.dispdetail').textContent = details[getRandomInt(details.length - 1)]; | |
| } | |
| } | |
| function getRandomInt(max) { | |
| return Math.floor(Math.random() * Math.floor(max)); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment