This file contains 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(){function e(e){return[{tag:"span",textContent:"People also ask"}].some(t=>{let{tag:r,textContent:o}=t,l=e.querySelector(`${r}:not([hidden])`);return l&&l.textContent.trim()===o})}let t=document.getElementById("rso"),r=document.querySelectorAll("em"),o={};r.forEach(t=>{let r=t.closest("#rso > div");if(r&&e(r))return;let l=t.textContent.trim().toLowerCase();if(l){let n=l.split(",").map(e=>e.trim());n.forEach(e=>{e&&(o[e]=(o[e]||0)+1)})}});let l=[["Bolded Terms","Count"]];for(let[n,i]of Object.entries(o))l.push([n,i]);let a=[["URL","Position","Title","Description","Terms","Count"]];if(t){let s=Array.from(t.children),c=0;s.forEach(t=>{var r;if(e(t)||!(r=t).querySelector("a[href]")&&!r.querySelector("h3"))return;c++;let o=t.querySelector("a[href]");if(!o)return;let l=o.href,n=t.querySelector("h3")?.textContent.trim()||"",i=t.querySelector(".kb0PBd > .VwiC3b > span:not(.LEwnzc)")?.textContent.trim()||"",s=t.querySelectorAll("em"),u={};s.forEach(e=>{let t=e.textContent.trim().toLowerCase();if(t |
This file contains 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
<?php | |
/** | |
* Removes WooCommerce scripts and styles from non-WooCommerce pages, | |
* excluding specific pages by post ID. | |
*/ | |
add_action('wp_print_scripts', 'my_remove_woo_assets', 999); | |
add_action('wp_enqueue_scripts', 'my_remove_woo_assets', 999); |
This file contains 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
We are doing anchor text analysis for an SEO campaign. I will provide you with a company name, their website, and their anchor text profile, as well as an ideal anchor text distribution table. The ideal anchor text distribution table will contain different types of anchor text classifications, a definition of each, and examples for each. Please analyze the client's anchor text profile and catalogue their anchor text into a table with the columns "Anchor Text Type", and "Percentage". Use the anchor text categories in the ideal anchor text distribution table I provide you with. | |
*Client Information* | |
Name: {COMPANY_NAME} | |
Website: {WEBSITE_URL} | |
*Ideal Anchor Text Distribution* | |
Anchor Text Type,Percentage (%),Definition,Examples | |
Branded,50,Uses the brand name or a variation of it. Helps build brand recognition and is generally seen as a natural and safe way to link.,"Nike, Nike Store, Nike Official" | |
Naked Link,20,The URL of the webpage is used as the anchor text. It appears natural and direct, providing a straigh |
This file contains 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")}(); |
This file contains 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 e(){let t=document.querySelector("main ol");if(t)!function e(t){let o=Array.from(t.querySelectorAll("li")).map(e=>{let t=e.querySelector("span:nth-child(2)").textContent.trim(),o=e.querySelector("span:nth-child(3)").textContent.trim();return{Keyword:t,"Search Volume":o}}),r=o.map(e=>Object.values(e).join(";")).join("\n");navigator.clipboard.writeText("Keyword;Search Volume\n"+r).then(()=>{alert("Keyword and Search Volume data copied to clipboard with headers")}).catch(e=>{alert("Failed to copy data to clipboard:\n"+e)})}(t);else{let o=document.querySelector('iframe[src*="/local/business/"]');if(o){let r=o.getAttribute("src");window.open(r,"_blank")}else alert("Ordered list not found inside main tag and no matching iframe found.")}}(); |
This file contains 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(){ | |
const folderID = "GOOGLE_DRIVE_FOLDER_ID"; | |
var userInput = prompt("What would you like to search for?"); | |
if(userInput){ | |
userInput = encodeURIComponent(userInput); | |
var url = "https://drive.google.com/drive/u/0/search?q=" + userInput + "%20in:" + folderID; | |
window.location.href = url; | |
} | |
})(); |
This file contains 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
const isElementOrParentMatched = (element, selectors) => { | |
let currentElement = element; | |
while(currentElement) { | |
for (let selector of selectors) { | |
if ($(currentElement).is(selector)) { | |
return true; | |
} | |
} | |
currentElement = currentElement.parentElement; | |
} |
This file contains 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
const isElementOrParentMatched = (element, selectors) => { | |
let currentElement = element; | |
while(currentElement) { | |
for (let selector of selectors) { | |
if ($(currentElement).is(selector)) { | |
return true; | |
} | |
} | |
currentElement = currentElement.parentElement; | |
} |
This file contains 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
// Get the <body> element | |
const bodyElement = document.querySelector('body'); | |
// Extract all classes on the <body> element | |
const bodyClasses = Array.from(bodyElement.classList); | |
// Join the classes into a comma separated string | |
const bodyClassesString = bodyClasses.join(','); | |
return bodyClassesString; |
This file contains 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
## Exclude Element with ID (replace div with any tag) | |
and not(ancestor::div[@id='MyID']) | |
## Exclude Element with Class | |
and not(ancestor::body[contains(@class, 'My-Class')]) | |
## Exclude Element with Attribute (replace div or attribute/value as needed) | |
and not(ancestor::div[@data-elementor-type='header']) | |
and not(ancestor::div[@data-id='981cb']) |
NewerOlder