Skip to content

Instantly share code, notes, and snippets.

@Amm1rr
Amm1rr / GSearchToggleEnFa.user.js
Last active April 22, 2023 03:30
An userscript that can switch google search result between Persian and English
// ==UserScript==
// @name GSeach Toggle Persian/English
// @name:fa سوییچ فارسی/انگلیسی گوگل
// @version 0.3
// @author Amir
// @description GToggle can change google search language result between
// English and Persian without any effect in RTL direction. (fork as tgxhx)
// @description:fa با این اسکریپت به راحتی می‌توان بین زبان انگلیسی و فارسی
// در جستجوی گوگل سوییچ کرد، البته بدون تغییر در چینش
// صفحه از چپ به راست.
@matej-g
matej-g / zsh_tmux_minimalist_themes_config.md
Last active August 5, 2023 14:25
My simple, clean and minimalist Oh My ZSH + tmux setup

Use JavaScript To View The Passwords

If you don’t want to make changes to a code each time you want to reveal a password, you can use JavaScript that’ll do the job for you in a single-click.

Although the JavaScript to reveal passwords can be run manually from the address bar, you may want to add it to the bookmarks bar so it’s then just a matter of a single-click to execute it.

  1. Click on the star icon next to the address bar in your browser to add a bookmark.
  2. Click on More on the following screen as you need to edit the bookmark before you save it.
  3. On the following screen, enter any name you want in the Name field. For the URL field, copy and paste the following JavaScript code:
@BelegCuthalion
BelegCuthalion / beyt.sh
Last active May 3, 2023 01:50
Farsi poetry to brighten up your day... of course not! Not over here. Try your luck with... French maybe.
#!/bin/bash
response=`curl -s "http://c.ganjoor.net/beyt-json.php"`
m1=`echo $response | jq -r ".m1"`
m2=`echo $response | jq -r ".m2"`
poet=`echo $response | jq -r ".poet"`
# fribidi still monkeys with the output tho
echo -e "$m1\n$m2\n$poet" | fribidi
@BrockA
BrockA / waitForKeyElements.js
Created May 7, 2012 04:21
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);