From 6d3122c99145fa3f5d4e550a4e4d2a8d9944e2b8 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 17 Jul 2023 08:11:30 +0200 Subject: [PATCH] Tweak bookmarklet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s strictly better to always explicitly use https:// (instead of protocol-relative URLs) for resources that are available over that protocol. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d3aeb06..3a39a8f0 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Browse it on your phone: [https://eruda.liriliri.io/](https://eruda.liriliri.io/ In order to try it for different sites, execute the script below on browser address bar. ```javascript -javascript:(function () { var script = document.createElement('script'); script.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function () { eruda.init() } })(); +javascript:(function () { var script = document.createElement('script'); script.src="https://cdn.jsdelivr.net/npm/eruda"; document.body.append(script); script.onload = function () { eruda.init(); } })(); ``` ## Features @@ -138,4 +138,4 @@ If you want to create a plugin yourself, follow the guides [here](./doc/PLUGIN.m ## Contribution -Read [Contributing Guide](.github/CONTRIBUTING.md) for development setup instructions. \ No newline at end of file +Read [Contributing Guide](.github/CONTRIBUTING.md) for development setup instructions.