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 / 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 / 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
})]);
/* 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 / 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");
})();
@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 / 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 / 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");