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
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 | |
""" |
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/* |
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
for (i = 2; i <= 14; i++) { | |
$.get("https://www.ayrintiyayinlari.com.tr/ucuzlatilmis-kitaplar/s/" + i, function(data) { | |
var html = $.parseHTML(data); | |
$(html).find(".span9 .editor .box").appendTo(".span9 .editor>div:eq(0)"); | |
}); | |
} | |
//--------------------------------------------------------------------------------------------------------------------------- | |
var arr = $(".box").get(); |
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
//MODULE TRANSFER | |
var result = []; | |
jQuery("#system-modules fieldset").each(function() { | |
jQuery(this).find(".form-checkbox").each(function() { | |
result.push([jQuery(this).attr("id"), jQuery(this).attr("checked")]); | |
}); | |
}); | |
console.log(JSON.stringify(result)) | |
values = []; |
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
import urllib2, json, sqlite3 | |
from peewee import * | |
def getSummonerId(name, api_key): | |
url = "https://euw.api.pvp.net/api/lol/euw/v1.4/summoner/by-name/" + name + "?api_key=" + api_key | |
data = urllib2.urlopen(url).read() | |
jsonData = json.loads(data) | |
return jsonData[name.lower()]["id"] | |
def getMatches(s_id, region, api_key): |