Last active
January 2, 2020 11:29
-
-
Save unicornist/e28cd95a2ff11da8ba51f8f7ada9753a to your computer and use it in GitHub Desktop.
Collection of: UserScripts (GreeseMonkey / TamperMonkey)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Coda Persian Fixes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://coda.io/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
GM_addStyle('body{font-family: IRANSans, IRANSansWeb, Tahoma;}'); | |
GM_addStyle('[class*=cell_view--root--][class*=cell_view--wrap--]{word-wrap: initial;}'); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BTC Notifier @ FarhadExchange | |
// @namespace btc_notif | |
// @version 0.1 | |
// @description Notifies you when BTC is available @ farhadexchange.net | |
// @author Unicornist | |
// @match https://farhadexchange.net/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var ballances = document.querySelectorAll(".money_1"); | |
var lastText = ballances[ballances.length-1].innerText; | |
if (lastText.indexOf("BTC")==-1 || parseFloat(lastText.replace("BTC ",""))<=0) | |
setTimeout(function(){ | |
location.reload(); | |
}, 10000); | |
else { | |
(new Notification('BTC Available @ FarhadExchange !!!')); | |
(new Audio('https://notificationsounds.com/soundfiles/2421fcb1263b9530df88f7f002e78ea5/file-39_martian-gun.mp3')).play(); | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GSMArena Card Extender | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds more info to the mobile card | |
// @author Babak Khorrami | |
// @match https://www.gsmarena.com/* | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none | |
// ==/UserScript== | |
var irt_rate = 14000; | |
(function() { | |
'use strict'; | |
var eur = parseInt($("[data-spec=price]").text().replace(/about\s*/i,'')); | |
var irt = (eur*irt_rate).toLocaleString(); | |
var display = $("[data-spec=displaytype]").text().replace(/super\s?/i,'S').replace(/optic\s?/i,'O').split(' ')[0]; | |
var gpu = $("[data-spec=gpu]").text().match(/\w+( \w+)?/)[0]; | |
var res = $("[data-spec=displayresolution]").text(); | |
var ratio_ppi = (res.indexOf(':')>-1 ? res.split(',')[1] : res.split(' ')[1]).replace(/\s*density\s*/,'').trim(); | |
$(".specs-spotlight-features .help-fans") | |
.removeClass("light pattern help help-fans") | |
.addClass("help accented") | |
.html('<i class="head-icon icon-cart"></i><strong class="accent">'+eur+' EUR</strong><div>'+irt+' IRT</div>') | |
$(".specs-spotlight-features .help-popularity") | |
.removeClass("light pattern help help-popularity") | |
.addClass("help accented") | |
.html('<i class="head-icon icon-touch-0"></i><strong class="accent">'+display+'</strong><div>'+ratio_ppi+'</div><div>'+gpu+'</div>') | |
// .find('strong').css({"margin-bottom": "10px", "margin-top": "-10px"}) | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Saman NetBank Session Prolonger | |
// @namespace Saman | |
// @include https://ib.sb24.com/* | |
// @exclude https://ib.sb24.com/login | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
setInterval(function() { | |
jQuery.ajax("/"); | |
jQuery.ajax("/resources/js/home.js"); | |
jQuery.ajax("/client/config.js"); | |
jQuery.ajax("/currentUserName?_dc="+(new Date()).getTime()); | |
jQuery.ajax("/rest/homeFavoriteDeposits?_dc="+(new Date()).getTime()); | |
}, 60*1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Trello 2020 Persian Fixes | |
// @namespace http://tampermonkey.net/ | |
// @version 2020 | |
// @author unicornist | |
// @match https://trello.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
if(navigator.platform.toLowerCase().includes("win")){ | |
GM_addStyle(` | |
body, button, html, input, select, textarea { | |
font-family: MyHybridFont !important; | |
} | |
@font-face { | |
font-family: "MyHybridFont"; | |
src: local("Segoe UI"); | |
} | |
@font-face { | |
font-family: "MyHybridFont"; | |
unicode-range: U+0600-06FF; | |
src: local('IRANSansWeb'), local('IRANSans'), local('IRAN Sans'), | |
local('IRANYekanWeb'), local('IRANYekan'), local('IRAN Yekan'), local('Yekan'), local('B Yekan'), local('BYekan'), | |
local('Tahoma'); | |
} | |
`); | |
} | |
setTimeout(function(){ | |
(function ($, document) { | |
var toFixDir = [ | |
'.js-open-move-from-header', | |
'.js-description-draft.description.card-description', | |
'.js-new-checklist-item-input.checklist-new-item-text', | |
'.js-checkitem-name.checklist-item-details-text' | |
]; | |
function fix() { | |
toFixDir.forEach(s => $(s).attr("dir", "auto")); | |
setTimeout(function(){ | |
toFixDir.forEach(s => $(s).attr("dir", "auto")); | |
}, 10) | |
} | |
fix(); | |
$(document).ajaxComplete(fix); | |
$(document).ready(fix); | |
$(document).on('click input blur focus', fix); | |
})(jQuery, document); | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GSMArena Card Extender Demo:
After:
Before: