Skip to content

Instantly share code, notes, and snippets.

@valentinomairura
valentinomairura / elementtimingallthetimings.js
Created November 22, 2024 00:08 — forked from mmocny/elementtiming_all_the_things.js
Add elementtiming attribute to all elements as page loads or otherwise. Useful polyfill.
<!-- Add to <head> or as first script in body before any content -->
<script type='text/javascript'>
const observedElements = new WeakSet(); // Keep track of processed elements
new MutationObserver((mutationsList, observer) => {
for (let mutation of mutationsList) {
for (let node of mutation.addedNodes) {
if (node.nodeType === Node.ELEMENT_NODE && !observedElements.has(node)) {
node.setAttribute('elementtiming', 'test');
observedElements.add(node); // Mark the element as processed
@valentinomairura
valentinomairura / google-dorks
Created November 22, 2024 00:07 — forked from mehdichaouch/google-dorks
Listing of a number of useful Google dorks.
Explanations:
cache: If you include other words in the query, Google will highlight those words within
the cached document. For instance, [cache:www.google.com web] will show the cached
content with the word “web” highlighted. This functionality is also accessible by
clicking on the “Cached” link on Google’s main results page. The query [cache:] will
show the version of the web page that Google has in its cache. For instance,
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there
can be no space between the “cache:” and the web page url.
------------------------------------------------------------------------------------------