A set of advanced bookmarks for counting words, keyword density, duplicate text (Google) and links.
Selects all the text on the webpage using document.body.innerText and counts the number of words using the split() method. It then displays an alert message with the number of words on the page.
Prompts the user to enter a keyword and then checks the density of that keyword on the page by counting the number of times it appears and dividing it by the total number of words on the page. It then displays an alert message with the keyword density.
Gets the selected text on the page and opens a new browser tab with a Google search for that text.
Counts the number of links on the page that have the rel attribute set to "nofollow" and displays an alert message with the count.
Changes the background color of all links on the page with the rel attribute set to "nofollow" to yellow, it also change the padding and fontWeight
Checks all the links on the page that starts with "http" and checks if they are broken, if they are, it change the background color, color, padding and fontWeight of the link