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
// JavaScript function for converting simple XPath to CSS selector. | |
// Ported by Dither from [cssify](https://github.com/santiycr/cssify) | |
// Example: `cssify('//div[@id="girl"][2]/span[@class="body"]//a[contains(@class, "sexy")]//img[1]')` | |
var sub_regexes = { | |
"tag": "([a-zA-Z][a-zA-Z0-9]{0,10}|\\*)", | |
"attribute": "[.a-zA-Z_:][-\\w:.]*(\\(\\))?)", | |
"value": "\\s*[\\w/:][-/\\w\\s,:;.]*" | |
}; |
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 chroma-hash | |
// @author Parashuram (mod by Dither) | |
// @namespace https://gist.github.com/gists/1971243 | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
document.addEventListener('DOMContentLoaded', function(){ |
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== | |
// @include http://www.google.*/search*&tbm=vid* | |
// @include https://www.google.*/search*&tbm=vid* | |
// @include https://encrypted.google.com/search*&tbm=vid* | |
// @description AutoPatchWork Mod 1.9.6+ support script for google video search | |
// ==/UserScript== | |
var index = 1, scripts = ''; | |
function handleNewPageLoad(event) { |
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== | |
// @include https://www.youtube.com/results* | |
// @description AutoPatchWork Mod 1.9.6+ support script for youtube video search | |
// ==/UserScript== | |
(function() { | |
function handleNewPage () { | |
var clip = document.querySelectorAll('img[data-thumb][alt="Thumbnail"]'); | |
[].forEach.call(clip, function (img) { |
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
<?php | |
class ImageCaching { | |
const UPPER_LIMIT = 256000; | |
const UPPER_MAX = 3145728; | |
const LOWER_LIMIT = 512; | |
const LOWER_MIN = 48; | |
public $lower_limit_setting = null; | |
public $upper_limit_setting = null; |
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
#!/usr/bin/env python | |
# Small .dif patcher for Python 3+ | |
# File format of .dif file (description and filename should be on the 1st and 3rd lines exactly): | |
# File description | |
# | |
# filename.ext | |
# 0000000a: 00 01 | |
# 0000000b: 00 02 |
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
# Script for applying fc /b or .dif kind of binary diffs to files. | |
# Run using this command: | |
# powershell -executionpolicy bypass -File "fc2bin.ps1" | |
# Difference file should have the following format: | |
# Description line | |
# | |
# myold.fil | |
# 0000100A: 00 10 | |
# 0000100B: 00 30 |
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 Link alert | |
// @description Link type alerter (onhover) (changed TarquinWJ version) | |
// @namespace http://www.howtocreate.co.uk/operaStuff/userJavaScript.html | |
// @exclude http://acid3.acidtests.org/* | |
// @version 1.1.12 | |
// ==/UserScript== | |
opera.addEventListener('AfterEvent.DOMContentLoaded',function (e) { |
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== | |
// @description Batoto reader service script for AutoPatchWork mod. | |
// @include http://bato.to/* | |
// @include https://bato.to/* | |
// ==/UserScript== | |
(function(){ | |
var on, off, trigger; | |
function getURL(id, page) { |
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== | |
// @description read.egscans.com reader service script for AutoPatchWork mod. | |
// @include http://read.egscans.com/* | |
// ==/UserScript== | |
(function(){ | |
var on, off, trigger; | |
var base_url = 'http://read.egscans.com/', | |
current_index = 0, | |
current_chapter = null, |
OlderNewer