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
function eachWithIdx(iterable, f) { | |
var i = iterable.iterator(); | |
var idx = 0; | |
while (i.hasNext()) f(i.next(), idx++); | |
} | |
function mapEach(iterable, f) { | |
var vs = []; | |
eachWithIdx(iterable, function (i) { | |
vs.push(f(i)); |
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
if (!String.prototype.format) { | |
String.prototype.format = function () { | |
var args = arguments; | |
if (typeof arguments[0] === "object" && arguments.length === 1) { | |
args = arguments[0]; | |
} | |
return this.replace(/{(\d+)}/g, function (match, index) { | |
return typeof args[index] !== 'undefined' |
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
powershell -noexit -executionpolicy bypass -File C:\wamp64\www\url\sqldmp_windows.ps1 |
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
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); |
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
var container = document.querySelector('#gwt-debug-logGroupTable tbody'); | |
var items = Array.from(container.querySelectorAll("tr")); | |
var sortable = (item) => { | |
var sortKey = new Date(item.querySelector("td:last-child").textContent); | |
return sortKey.getTime(); | |
}; | |
items = items.sort((a, b) => {return sortable(a) == sortable(b) ? 0 : (sortable(a) < sortable(b) ? 1 : -1)}); | |
container.innerHTML = items.map(item => item.outerHTML).join(""); |
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
#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) |
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 Dizipub Video Downloader | |
// @match http://dizipub.com/* | |
// @grant none | |
// ==/UserScript== | |
if($("#embed-wrapper").length === 0){ | |
return; | |
} |
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
var style = document.createElement('style'); | |
style.innerHTML = ".ys-tabs .panel-body .tab { display: inline-block !important; }"; | |
document.body.appendChild(style); |
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 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/* |