Concatenate array
[1,4,67,34,677].reduce((accumulator, current) => accumulator + current, []);
"146734677"
removeAllImgsFilter = function(node){ | |
if (node.tagName=="IMG") //filter out all IMG elements | |
return NodeFilter.FILTER_ACCEPT; | |
else | |
return NodeFilter.FILTER_SKIP; | |
} | |
var walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, removeAllImgsFilter, false); | |
while (walker.nextNode()) |
Simply go in your (Chrome) browser to the Likes-page, e.g. https://twitter.com/{your user handle}/likes
and open the DevTools console (CMD OPT i on a Mac). Paste the following code into the console:
document.querySelectorAll("[data-testid='unlike']").forEach( el => el.click() );
This will click all heart icons on that page, in effect unliking all visible Likes. Scroll down and repeat as many times as needed.
It was tricky to set up an outdated Java version. So here are updated instructions to pass the checkpoints (this is well within the Coursera student honor code as it is just an update of the official instructions).
<h1>Week of the year: <span id="weekNumber"> <button onClick="setNum()">click to show</button> </span></h1> | |
<div class="container"> | |
<div id="logo"> | |
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 294.78 105.6" copyright="Oliver Schafeld, info@schafeld.com"> | |
<defs> | |
<style> | |
.cls-12{letter-spacing:0} | |
</style> | |
<linearGradient id="Unbenannter_Verlauf_8" data-name="Unbenannter Verlauf 8" x1="-1.63" y1="83.58" x2="35.13" y2="70.2" gradientUnits="userSpaceOnUse"> | |
<stop offset=".16" stop-color="#b4e1fa"/> | |
<stop offset=".59" stop-color="#4ac0e5"/> |
<div class="demo"> | |
<p> | |
<label for="amount">Volume:</label> | |
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /> | |
</p> | |
<div id="slider-horizontal"></div> | |
</div> |
<svg xmlns="http://www.w3.org/2000/svg" | |
width="236" | |
height="244" | |
viewBox="0 0 236 244" | |
class="gauge first rotate-five-percent"> | |
<g fill="none" fill-rule="evenodd"> | |
<g fill-rule="nonzero"> | |
<path fill="#FFF" d="M183.7 98.67c-.02-.11-.055-.217-.1-.32-.024-.048-.05-.095-.08-.14-3.18-7.603-7.767-14.538-13.52-20.44-.05-.13-.15-.235-.28-.29-12.24-12.43-28.956-19.427-46.4-19.42h-.64c-8.573.073-17.046 1.844-24.93 5.21l-.2.06c-.088.04-.17.085-.25.14-7.613 3.333-14.523 8.084-20.36 14-.134.056-.238.165-.29.3-5.66 5.782-10.2 12.563-13.39 20l-.05.09c-.05.102-.086.21-.11.32-3.322 7.968-5.022 16.518-5 25.15-.078 17.31 6.766 33.933 19.01 46.17.29.273.672.43 1.07.44.4-.003.78-.165 1.06-.45l9-9.15c.397-.378.556-.942.415-1.472-.14-.53-.56-.94-1.09-1.07-.533-.132-1.095.038-1.465.442l-7.88 8c-4.874-5.102-8.844-10.996-11.74-17.43l10.1-4.81c.748-.356 1.066-1.252.71-2-.356-.748-1.252-1.066-2-.71l-10 4.8c-2.668-6.787-4.12-13.99-4.29-21.28l11.31-.25c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5l-11.31.25c |