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 ruby | |
# require "headless" | |
require "capybara" | |
require "capybara-webkit" | |
class Capybara::Session | |
def wait_css(selector, timeout_sec = 5) | |
timeout_sec.times do | |
break if has_css?(selector) |
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 ruby | |
# frozen_string_literal: true | |
require "mechanize" | |
require "uri" | |
list_urls = [ | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=0&tsuka_conv=jpy", | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=60&tsuka_conv=jpy", | |
"https://www.plusalpha-glass.net/index.php?lang_id=ja&genre_id=&keyword=&sch_goods_tag=&act=&sortkey=&offset=120&tsuka_conv=jpy" |
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
--- | |
title: parrotparty | |
emojis: | |
- name: parrot | |
src: http://cultofthepartyparrot.com/parrots/parrot.gif | |
- name: middleparrot | |
src: http://cultofthepartyparrot.com/parrots/middleparrot.gif | |
- name: rightparrot | |
src: http://cultofthepartyparrot.com/parrots/rightparrot.gif | |
- name: aussieparrot |
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 ruby | |
require "optparse" | |
require "json" | |
require "open3" | |
params = ARGV.getopts("cu:") | |
c_opt = params["c"] ? "-c" : "" | |
u_opt = params["u"] ? "-u #{params['u']}" : "" |
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 ruby | |
require "optparse" | |
opts = ARGV.getopts("", "minutes:5", "load:", "help", "version") | |
if opts["help"] | |
puts <<EOS | |
loadsleep |
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
rand(0x10000000000000000000000000000).to_s(32).tr('0-9a-z', 'A-Z2-7').rjust(23, 'A') |
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 Auto Accept △ Complex | |
// @namespace https://github.com/tatzyr/ | |
// @version 0.1.0 | |
// @description Auto Accept △ Complex | |
// @include https://www.sankakucomplex.com/mature-content-disclaimer/* | |
// @match https://www.sankakucomplex.com/mature-content-disclaimer/* | |
// @run-at document-end | |
// @copyright 2018, Tatzyr | |
// ==/UserScript== |
OlderNewer