Created
June 7, 2024 00:09
-
-
Save chris-castillo-dev/81c60035ad87d50eb806c42cd8f5aeb6 to your computer and use it in GitHub Desktop.
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
javascript:!function(){for(var e=document.querySelectorAll("#services-section .category-services-container"),t=[],r=0;r<e.length;r++){var a=e[r],o=[],n=[],l=a.querySelector(":first-child span");if(l){var c=l.textContent;o.push(c.substring(0,c.length-1))}var i=a.querySelector(".view-button");i&&i.click();for(var v=a.querySelectorAll(".btn-related-category"),s=0;s<v.length;s++){var h=v[s];n.push(h.textContent)}for(var u=0;u<n.length;u++)t.push([o[0],n[u]])}for(var d="Container Label,Category\n",y=0;y<t.length;y++){var g=t[y];d+=g[0]+","+g[1]+"\n"}var p=document.createElement("textarea");p.value=d,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p),alert("Data copied to clipboard")}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment