Skip to content

Instantly share code, notes, and snippets.

View bKNN's full-sized avatar
:atom:
<3

Pierrick bKNN

:atom:
<3
View GitHub Profile
@bKNN
bKNN / seo_multilang.xml
Created November 12, 2018 10:56
SEO - SEO multilang in XML Sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://example.com/</loc>
<xhtml:link
rel="alternate"
hreflang="en-CA"
href="https://example.com/en-ca/"
/>
@bKNN
bKNN / seo_multilang_http_header
Created November 12, 2018 10:55
SEO - SEO multilang in HTTP header
HTTP/1.1 200 OK
Content-Type: application/pdf
Link: <https://example.com/interesting-whitepaper.pdf>; rel="alternate";hreflang="x-default",
<https://example.com/interesting-whitepaper.pdf>; rel="alternate";hreflang="en",
<https://example.com/interesting-whitepaper-spanish.pdf>; rel="alternate";hreflang="es"
@bKNN
bKNN / seo_multilang.html
Created November 12, 2018 10:54
SEO - SEO multilang in HTML
<link rel="canonical" href="https://www.example.com/es/" />
<link rel="alternate" hreflang="es" href="https://www.example.com/es/" />
<link rel="alternate" hreflang="en-gb" href="https://www.example.com/uk/" />
<link rel="alternate" hreflang="fr" href="https://www.example.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/es/" />
@bKNN
bKNN / fast-tinder-like.js
Last active November 12, 2018 11:18
GROWTHHCKNG - Automation for https://tinder.com/app/matches
// Copy paste this script on your console
var disabled = false;
var r = confirm('Start the Autolike on this page?');
var min_time_to_decide = 300;
var max_additional_time_to_decide = 1000;
var time_to_decide = function() {
additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
return min_time_to_decide + additional_time_to_decide;
@bKNN
bKNN / serps-extractor.js
Created November 12, 2018 10:44
BOOKMARKLET - SERPs Extractor
javascript:(function()%7Bfunction getParameterByName(e%2Ct)%7Be%3De.replace(%2F%5B%5C%5B%5D%2F%2C"%5C%5C%5B").replace(%2F%5B%5C%5D%5D%2F%2C"%5C%5C%5D")%3Bvar n%3Dnew RegExp("%5B%5C%5C%3F%26%5D"%2Be%2B"%3D(%5B%5E%26%23%5D*)")%2Cr%3Dn.exec(t%3D%3Dtrue%3Flocation.hash.replace("%23"%2C"%3F")%3Alocation.search)%3Bif(r%3D%3Dnull%26%26t%3D%3Dfalse)%7Breturn getParameterByName(e%2Ctrue)%7Delse%7Breturn r%3D%3Dnull%3F""%3AdecodeURIComponent(r%5B1%5D.replace(%2F%5C%2B%2Fg%2C" "))%7D%7Dstr%3D"<style type%3D%27text%2Fcss%27>body%7Bcolor%3A%23000%3Bbackground-color%3A%23fff%3Bmargin%3A0%3Bpadding%3A0%3Bfont-family%3Aarial%2Chelvetica%2Csans-serif%3Bfont-size%3A82%25%7D*%7Bfont-weight%3A400%3Bcolor%3A%23000%7Dh3%2Ch4%2Ch5%2Ch6%7Bmargin%3A0 0 15px%3Bpadding%3A0%7D%23rt%7Bfont-size%3A12px%3Bwidth%3A500px%7Dtable%2Ctd%2Cth%2Ctr%7Bfont-size%3A1em%3Boverflow%3Ahidden%3Btext-overflow%3Aellipsis%3Bword-wrap%3Abreak-word%7Dtextarea%7Bwidth%3A100%25%7Dth%7Bbackground-color%3A%23eee%3Bcolor%3A%23000%3Bfont-weight%3A700%7Dtd a%7Bwidt
@bKNN
bKNN / google-mobile-friendly-test.js
Created November 12, 2018 10:43
BOOKMARKLET - Google Mobile Friendly Test
javascript:(function(w){var Y=w.open("https://search.google.com/test/mobile-friendly?url="+document.location.href);Y.focus()})(window);
@bKNN
bKNN / google-trends-domain-name-check.js
Created November 12, 2018 10:43
BOOKMARKLET - Google Trends Domain Name Check
@bKNN
bKNN / google-transparency-report.js
Created November 12, 2018 10:42
BOOKMARKLET - Google Transparency Report
javascript:(function(w){var Y=w.open("https://transparencyreport.google.com/safe-browsing/search?url="+location.hostname.replace('www.',''));Y.focus()})(window);
@bKNN
bKNN / google-web-light-check.js
Created November 12, 2018 10:42
BOOKMARKLET - Google Web Light Check
javascript:(function(w){var Y=w.open("https://googleweblight.com/i?u="+document.location.href);Y.focus()})(window);
@bKNN
bKNN / dns-check-.js
Created November 12, 2018 10:42
BOOKMARKLET - DNS Check
javascript:(function(){ window.open('http://www.solvedns.com/dnsspeedtest/'+location.hostname)})();