Skip to content

Instantly share code, notes, and snippets.

View zumoshi's full-sized avatar

Borhan Hafez zumoshi

View GitHub Profile
@zumoshi
zumoshi / cleaner.user.js
Last active June 4, 2026 14:42 — forked from gapadana/cleaner.user.js
URL cleaner for some random Iranian sites
// ==UserScript==
// @name New script divar.ir
// @namespace Violentmonkey Scripts
// @match https://divar.ir/*
// @match https://digikala.com/product/*
// @match https://*.digikala.com/product/*
// @match https://torob.com/p/*
// @version 1.1.0
// @author -
// @description 10/11/2025, 9:40:40 PM
/**
* Algoritm from : https://gist.github.com/reza-farhadian/9807316
* Georgian To Jalali Programming Algorithm
* By Reza Farhadian <irezafarhadian@gmail.com>
*/
function g2j(timestamp){
// G = ~~(Georgian)
// J = ~~(Jalali)
var G_Y = ~~(new Date(timestamp*1000).getFullYear())