Skip to content

Instantly share code, notes, and snippets.

View dorukcan's full-sized avatar

Dorukcan Kişin dorukcan

View GitHub Profile
// ==UserScript==
// @name YouSpotify
// @author doruk
// @description Adds a play on spotify button
// @include http://*.youtube.com/watch?*v=*
// @include http://*.youtube.com/watch#!*v=*
// @include http://youtube.com/watch?*v=*
// @include http://youtube.com/watch?v=*
// @include http://youtube.com/watch#!*v=*
// @include http://www.youtube.com/user/*
var style = document.createElement('style');
style.innerHTML = ".ys-tabs .panel-body .tab { display: inline-block !important; }";
document.body.appendChild(style);
// ==UserScript==
// @name Dizipub Video Downloader
// @match http://dizipub.com/*
// @grant none
// ==/UserScript==
if($("#embed-wrapper").length === 0){
return;
}
#include <AutoItConstants.au3>
While(1)
;~ yazdır butonu
MouseClick($MOUSE_CLICK_LEFT, 469, 98, 1)
Sleep(1000)
;~ kaydet butonu
MouseClick($MOUSE_CLICK_LEFT, 249, 149, 1)
Sleep(1000)
@dorukcan
dorukcan / gist:9e570892156b65ed9015
Created October 4, 2014 09:58
episodecalendar.com to trakt.tv
import requests
import hashlib
import json
def markaswatched():
"""
marks episodes which are marked on episodecalendar as seen on trakt. because episodecalendar forced me to buy premium version. fuck you episodecalendar.
http://trakt.tv/api-docs/show-episode-seen
"""
var subs = $(".subreddits a").map(function(){
return $.trim($(this).text());
}).get();
var colors = ["#f3e5f5", "#e8eaf6", "#e3f2fd", "#e0f2f1", "#f1f8e9", "#fff8e1"];
$(".subreddits li").each(function(i, e){
var color = colors[i];
$(this).css("background-color", color);
var arr = d.aNodes;
document.write('<ul>')
getNodes(-1);
document.write('</ul>')
function getNodes(parentId) {
for (var i = 0; i < arr.length; i++) {
if (arr[i].parentid == parentId) {
if (arr[i].url == undefined) {
@dorukcan
dorukcan / sqldmp_windows.bat
Created August 11, 2017 14:58
sql dump scripts
powershell -noexit -executionpolicy bypass -File C:\wamp64\www\url\sqldmp_windows.ps1
var alphabet = "ABCDEFGHIJKLMONPQRSTUVWXYZ ",
target = "METHINKS IT IS LIKE A WEASEL",
i, score = 0, copies, gen = 0, child = "";
String.prototype.replaceAt = function(index, character) {
return this.substr(0, index) + character + this.substr(index+1);
}
String.prototype.shuffle = function() {
var i = this.length, j, temp = this;
var COURSES = [
["EC", "101", "09", "N", null],
["TK", "221", "51", "C", null],
["LIT", "211", "02", "N", null],
["MATH", "102", "01", "N", "MATH102 F"],
["PHYS", "102", "01", "N", "PHYS102 F"],
["FA", "48P", "01", "N", "PHYS125 F"],
];
for (i = 0; i < COURSES.length; i++) {