Skip to content

Instantly share code, notes, and snippets.

View monoblaine's full-sized avatar

Serhan Apaydın monoblaine

View GitHub Profile
@monoblaine
monoblaine / tc-kimlik-no-dogrulayici.cs
Created June 21, 2018 12:28
T.C. kimlik numarası doğrulayıcı
using System;
using System.Linq;
using System.Text.RegularExpressions;
public static class Util {
public static Boolean TCKimlikNumarasıGeçerliMi (String tcKimlikNo) {
// Toplam 11 basamaklı olmalı, ilk basamak 0 olmamalı.
if (!Regex.IsMatch(tcKimlikNo, @"^[1-9]\d{10}$")) {
return false;
}
// ==UserScript==
// @name Traverse visible and clickable elements (shift + up or down arrows)
// @description Spatial navigation similar to good old Presto-based Opera
// @version 1.4.7
// @match *://*/*
// @grant none
// ==/UserScript==
(function () {
const placeToReplace = window.EventTarget && EventTarget.prototype.addEventListener ? EventTarget : Element;
@monoblaine
monoblaine / S3.Google Translator.txt
Created April 12, 2017 20:32
S3.Google Translator settings
show_tooltip_animation=disabled
font_size_preference_tabbox=
reverse_lang_value=reverse
context_menu_translate_forget=false
show_tooltip_animation_speed=20
learning_border_color=#006600
translate_selection_middle_click_translate=true
view_reverse_translate_tooltip=false
tooltip_theme_custom_path=
save_last_lang_reverse=false
@monoblaine
monoblaine / all.user.js
Last active April 21, 2022 22:48
Tüm siteler için erişilebilirlik iyileştirmeleri
// ==UserScript==
// @name Tüm siteler için erişilebilirlik iyileştirmeleri
// @description tabindex ile ilgili saçmalıkları ve href'i olmayan anchor element'ları düzeltir.
// @namespace yarak
// @match *://*/*
// @exclude *.local/*
// @version 3.0.3
// @grant none
// ==/UserScript==
@monoblaine
monoblaine / twitter.user.js
Last active August 9, 2018 09:46
Open image or link embedded within a tweet
// ==UserScript==
// @name Open image or link embedded within a tweet
// @namespace https://twitter.com/
// @version 1
// @include https://twitter.com/*
// @grant none
// ==/UserScript==
(function () {
document.addEventListener('keydown', function (e) {
@monoblaine
monoblaine / gitlab.user.js
Last active February 7, 2018 07:38
Gitlab accessibility improvement tool
// ==UserScript==
// @name Gitlab accessibility improvement tool
// @namespace https://gitlab.com/
// @description Makes gitlab more accessible.
// @include https://gitlab.com/*
// @version 1
// @grant none
// ==/UserScript==
(function () {
@monoblaine
monoblaine / eksi.user.js
Last active August 9, 2018 09:48
Ekşi sözlük için erişilebilirlik iyileştirmeleri
// ==UserScript==
// @name Ekşi sözlük için erişilebilirlik iyileştirmeleri
// @namespace https://eksisozluk.com/
// @include https://eksisozluk.com/*
// @version 1.1.1
// @grant none
// ==/UserScript==
(function () {
setTimeout(() => window.wrappedJSObject.jQuery($ => $(document).off('keypress')), 1);
@monoblaine
monoblaine / validate.js
Last active March 28, 2016 09:17 — forked from ssg/validate.js
Turkish ID Validator in a Tweet Attempt
tc=n=>{if(n=n.split('').map(Number),o=n[e=i=0],c=n[9],t=10,o)for(;++i<9;)eval((i%2?'e':'o')+'+=n[i]');return!((7*o-e+t)%t-c|(o+e+c)%t-n[t])}
@monoblaine
monoblaine / jquery.ractivable.js
Created October 6, 2015 18:39
Ractive JS - Progressive Enhancement (sort of)
(function ($) { "use strict";
var templates = {};
// cfg.consumerName {String} (if undefined, templateId is used instead)
// cfg.templateId {String} (required)
function makeItRactive (el, cfg) {
var $el = $(el),
options = $.extend(true, {}, $el.data(), typeof cfg === "object" && cfg),
data = {},
templateId = options.templateId,