FabioRosado
a month ago

Open links in new tab safely

Everyone knows that if you use target="_blank" on a link tag that link will be open in a new tab. But using just this is a security risk and could allow bad people to take control of your page by abusing the window.opener event - read more about it here

So if you need a link to open on a new tab, make sure you add rel="noopener noreferrer" to the tag as well.

So instead of using:

<a href="http://example.com" target="_blank">Link</a>

You should use: <a href="http://example.com" target="_blank" rel="noopener noreferrer">Link</a>

gjain574
a month ago

Tired of getting your email spammed ?

Want to subscribe to something temporarily or want to download something by giving your email ?

Save your email id from getting spammed by using https://getnada.com/ as a 'temporary' email.

AnTheMaker
a month ago

How to reload a page using JavaScript

You can simply use location = location; or location.reload(); in your JavaScript to reload the page current page.

533 more ways how you can do it: http://www.phpied.com/files/location-location/location-location.html

KevinNTH
a month ago

macOS: Toggle on Character Viewer to insert Emoji to anywhere!

Press ctrl + cmd + space and display Character Viewer. Go to the Emoji section and display emojis. Double click on the Emoji of your choice to insert it in your text edit area.

image

owenconti
a month ago

5 keyboard shortcuts to navigate your code faster

Here are 5 quick keyboard shortcuts I recommend you setup to help you navigate your code faster!

  • Delete line(s): CMD + D
  • Move line(s): OPTION + UP or DOWN ARROW
  • Go to line: CMD + L
  • Go back/forward: CMD + [ or ]
  • Start/end of word: OPTION + LEFT or RIGHT ARROW

Bonus:

  • Highlight characters with start/end of word: SHIFT + OPTION + LEFT or RIGHT ARROW

Full article available here: https://owenconti.com/tips/5-keyboard-shortcuts-to-navigate-your-code-faster/

IamTregsthedev
a month ago

Use Linux on ChromeOS

Linux can be installed On Chrome OS without removing Chrome OS!

Chrome OS has tons of dis-advantages, The apps, Extestions and How things run.
Fix this by Installing Linux on Chrome OS


STEPS

  1. Go to your settings on Chrome OS
  2. Click the search bar in the settings. and search for Linux
  3. Press Install and Keep the Chromebook on that, and Still

Affter all it's installed, It take you to a Terminal, You can install apps such as Firefox, and others

EXAMPLES

This link will help
fayazara
a month ago

getUrlParameters in Javascript

Simply use this line to get query parameters from url in Javascript

let urlParams = new URLSearchParams(window.location.search.substring(1)); let value = urlParams.get("query");

IamTregsthedev
a month ago

Use The same Email to Make differnt acc`s On one Website!

I found out this trick by Sergio Mattei, The Creator of Makerlog :)

It`s very annyoing when I have to use a differnt email everytime I use a website!

Stop This with using +

Example (Before +) aravnarula@dom.co

But Using + (example) aravnarula+test@dom.co

Adding the + creates a alt Inbox in your email, Letting you use the same email for products/apps such as Makerlog, Product Hunt and Other Websites!

cooperkernan
a month ago

RunCat

Shows how much CPU your Mac OSx is using in the header bar!

https://itunes.apple.com/us/app/runcat/id1429033973?mt=12

josephmaxim
a month ago

Eject water from your phone's speakers after getting it wet

🌎 FixMySpeakers.com

solution

🛠 How it works

It works just like the ⌚️ Apple watch's built-in water ejection feature. It plays a specific tone that generates sound waves which causes the water to be ejected.