Skip to content

Instantly share code, notes, and snippets.

View ahmedazhar05's full-sized avatar
🟢
Active

Azhar Ahmed ahmedazhar05

🟢
Active
View GitHub Profile
@ahmedazhar05
ahmedazhar05 / scribd_reveal.js
Last active December 12, 2021 17:30
https://book.marklet.ml/scribd Bookmarklet: Reveal pages in Scribd documents
javascript: (function() {
const version = '1.2';
if (document.URL.startsWith("https://www.scribd.com/doc")) {
let btn = document.createElement("BUTTON"), nv = "";
btn.className = "wrapper__filled-button download_btn";
btn.innerHTML = "Reveal";
btn.style.cssText = 'position:fixed;width:117px;z-index:59;bottom:14vh;right:10vw';
btn.onclick = () => {
window.scrollTo(0, 0);
let o = document.createElement("DIV");
@ahmedazhar05
ahmedazhar05 / quora_unblocker.js
Last active September 23, 2021 15:49
Bookmarklet: Unblock Quora answers without having to log in
javascript: (function() {
var m = document.querySelector('.qu-zIndex--alert');
if (m) {
m.style.display = 'none';
m.nextElementSibling.style.overflow = 'auto';
m.nextElementSibling.style.filter = 'none';
} else {
var e = document.querySelector('#root .q-box.qu-overflow--hidden');
document.querySelector('.qu-zIndex--blocking_wall').style.display = e.style.filter = 'none';
e.style.overflow = 'auto';
@ahmedazhar05
ahmedazhar05 / decimalRoman.py
Last active September 23, 2021 15:50
Convert Decimal number to Roman and vice versa
def decToRoman(n):
dec = {
"1": "I",
"5": "V",
"10": "X",
"50": "L",
"100": "C",
"500": "D",
"1000": "M"
}
@ahmedazhar05
ahmedazhar05 / glassdoor_nologin.js
Last active September 23, 2021 15:49
Bookmarklet: Access Glassdoor content and reviews without having to log in
javascript: (function() {
if (/https:\/\/(www\.)?glassdoor\.co(\.in|m)/g.test(document.URL)) {
document.querySelector('#HardsellOverlay').remove();
document.body.style.overflow = 'auto';
document.body.onscroll = null;
[...document.querySelectorAll('.css-lyyc14')].forEach(e => e.style.maxHeight = 'unset');
} else alert("This Feature only works Glassdoor websites");
})();
/* This script was auto generated on previewing the "Pretty Print"-ed response body of `json_formatter.min.js` file using the Chrome DevTools's Network tab whereas `json_formatter.min.js` file itself was created manually */
window['pre'];
const version = "4.2.3";
const isExpanded = true;
window['recurse'] = (obj,keyname='',isLast=false)=>{
const expanded = isExpanded ? 'expanded' : ''
, c = isLast ? '' : ',';
let type = typeof obj
, dom = document.createDocumentFragment()
, inner = document.createDocumentFragment()
@ahmedazhar05
ahmedazhar05 / wapp_image_copy.js
Last active November 1, 2021 19:19
Copy modified image from whatsapp-web's pre-send image editing canvas
javascript: (function() {
let cvs = document.querySelectorAll('.konvajs-content > canvas');
let backup = cvs[0].toDataURL("image/png");
let img = document.createElement("IMG");
img.onload = () => {
cvs[0].getContext("2d").drawImage(img, 0, 0);
cvs[0].toBlob(blob => {
navigator.clipboard.write([new ClipboardItem({
"image/png": blob
})]);
@ahmedazhar05
ahmedazhar05 / GFG Unblocker.js
Created November 23, 2021 17:10
To unblock the signup modal in GeeksForGeeks website
javascript: (function() {
if (/^https?:\/\/(www\.)?geeksforgeeks\./g.test(document.URL)) {
document.querySelector(".login-modal-div").style.display = "none";
window.onscroll = null;
document.body.style.position = "initial";
} else alert("This feature only works in GeeksForGeeks site");
})();
@ahmedazhar05
ahmedazhar05 / web_whats_appify.js
Last active May 8, 2022 19:38
Bookmarklet: Converts Whatsapp Web interface into native app like
javascript:(function(){
document.querySelector('meta[name="viewport"]').content = 'width=device-width, initial-scale=1.0';
const st = document.body.lastChild.tagName === 'STYLE' ? document.body.lastChild : document.createElement('style');
document.body.append(st);
document.body.style.zoom = window.devicePixelRatio;
const frame = document.getElementsByClassName('_1XkO3')[0];
window.onpopstate = e => {
let btn = document.querySelector('button.bmJTq');
if(btn){
btn.click();
@ahmedazhar05
ahmedazhar05 / Dockerfile
Last active July 13, 2023 08:52
Docker image configuration for on-the-go TypeScript
FROM node:latest
ARG UID
ARG GID
RUN apt update -y \
&& apt upgrade -y
USER $UID:$GID
@ahmedazhar05
ahmedazhar05 / intensive1_day1.md
Last active November 19, 2023 15:55
Arabic notes for DREAM INTENSIVE program by Nouman Ali Khan