Skip to content

Instantly share code, notes, and snippets.

View TakashiSasaki's full-sized avatar

Takashi SASAKI TakashiSasaki

View GitHub Profile
// ==UserScript==
// @name Battery Recycle Station
// @namespace http://tampermonkey.net/
// @version 0.1.20220824.2
// @description try to take over the world!
// @author Takashi SASAKI
// @website https://twitter.com/TakashiSasaki
// @match https://www.jbrc-sys.com/brsp/a2A/*
// @match https://www.jbrc-sys.com/brsp/a2A
// @icon https://www.google.com/s2/favicons?sz=64&domain=jbrc.com
// ==UserScript==
// @name Copy CPU benchmark table of Passmark
// @namespace https://gist.github.com/TakashiSasaki/45afd852232e4a2a9fa39b5f5f32a6ce
// @version 0.5.20220819
// @description This user script adds a button to copy CPU benchmark results at Passmark website. It will be stored in the clipboard as TSV which can be pasted to a spreadsheet.
// @author Takashi SASAKI
// @homepage https://twitter.com/TakashiSasaki
// @match https://www.cpubenchmark.net/cpu_list.php
// @icon https://www.google.com/s2/favicons?sz=64&domain=www.cpubenchmark.net
// @grant GM_setClipboard
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:schema="http://schema.org/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:dcterms="http://purl.org/dc/terms/"
>
<rdf:Property rdf:about="http://schema.org/additionalVariable">
@TakashiSasaki
TakashiSasaki / foaf-vocabulary-specification.rdf
Created March 30, 2022 08:38
FOAF Vocabulary Specification 0.99 Namespace Document 14 January 2014 - Paddington Edition
<!-- This is the FOAF formal vocabulary description, expressed using W3C RDFS and OWL markup. foaf/spec version -->
<!-- For more information about FOAF: -->
<!-- see the FOAF project homepage, http://www.foaf-project.org/ -->
<!-- FOAF specification, http://xmlns.com/foaf/spec/ -->
<!-- -->
<!-- first we introduce a number of RDF namespaces we will be using... -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
@TakashiSasaki
TakashiSasaki / getCountry.js
Last active March 10, 2022 03:24
COUNTRY is a custom function for Google Sheets written in Google Apps Script.
/**
* Returns the country name corresponding to the specified IP address.
* @param {ipaddress} IP address
* @return country name
* @customfunction
*/
// https://gist.github.com/TakashiSasaki/920fd2b73124519349cb456e7e0313df
function COUNTRY(ipaddress){
@TakashiSasaki
TakashiSasaki / HelloLocalHtmlFiles.user.js
Last active February 9, 2022 23:57
A UserScript to add contentEditable to the body element.
// ==UserScript==
// @name Hello local HTML files
// @namespace http://userscript.moukaeritai.work/
// @version 0.0.3
// @description Add contentEditable to body element.
// @author Takashi SASAKI https://twitter.com/TakashiSasaki
// @match file:///*.html
// @icon https://www.google.com/s2/favicons?domain=example.com
// @updateURL https://gist.github.com/TakashiSasaki/23a1bfbd1525fdd310e8011f244ce735/raw/HelloLocalHtmlFiles.user.js
// @downloadURL https://gist.github.com/TakashiSasaki/23a1bfbd1525fdd310e8011f244ce735/raw/HelloLocalHtmlFiles.user.js
@TakashiSasaki
TakashiSasaki / PocketTweaking.user.js
Last active May 20, 2022 11:51
Pocket Tweaking; Pocketの記事の表示幅を広げたり
// ==UserScript==
// @name Pocket Tweaker
// @namespace https://gist.github.com/TakashiSasaki/c9b96fc39fb4992aac2fab56db9592a0/raw/PocketTweaking.js
// @version 0.2.3
// @description This Userscript fixes the following problems in Pocket (https://getpocket.com/) articles. 1) <pre> tag background color is too dark. 2) The display area of <article> tag is too narrow.
// @author Takashi SASAKI (https://twitter.com/TakashiSasaki)
// @match https://getpocket.com/my-list/tags
// @match https://getpocket.com/read/*
// @icon https://www.google.com/s2/favicons?domain=getpocket.com
// @grant none
@TakashiSasaki
TakashiSasaki / STDモードが生成するMPGファイル
Created October 23, 2021 09:38
SONY HandyCam HDR-PJ760で撮影した動画ファイルに関する情報。
General
Complete name : C:\Users\takas\Videos\100PNV01\M2U00006.MPG
Format : MPEG-PS
File size : 73.3 MiB
Duration : 1mn 9s
Overall bit rate mode : Variable
Overall bit rate : 8 836 Kbps
Video
ID : 224 (0xE0)
@TakashiSasaki
TakashiSasaki / MineoGift.user.js
Last active October 23, 2023 00:04
Automatic Copy and Paste Mineo Gift Code
// ==UserScript==
// @name Mineo Gift Code Automatic Copy-and-Paste
// @namespace https://moukaeritai.work/mineo-gift
// @version 0.4.20220831.1
// @description Mineoのギフトコードを自動的にクリップボードにコピーします。Mineoのギフトコードを入力することができるページで前記のギフトコードをペーストします。Mineoのギフト容量として自動的に9999を入力します。パケットチャージの入力欄を非表示にします。ゆずるねを自動的に宣言します。
// @author Takashi SASAKI (@TakashiSasaki on Twitter)
// @match https://my.mineo.jp/mvno_cp/*.action
// @icon https://www.google.com/s2/favicons?domain=mineo.jp
// @grant GM_setClipboard
// @grant GM_notification
@TakashiSasaki
TakashiSasaki / TweetLater.user.js
Last active February 4, 2022 16:06
Schedule to tweet at 5 minutes later
// ==UserScript==
// @name Schedule to tweet at 5 minute later
// @namespace https://gist.github.com/TakashiSasaki/38e2a5332cb05cf7b6a8692244774015/raw/TweetLater.user.js
// @version 0.9.0
// @description Set the scheduled time to 5 minutes after the current time in the scheduled tweet dialog.
// @author Takashi SASAKI (@TakashiSasaki on Twitter)
// @match https://twitter.com/
// @match https://twitter.com/home
// @match https://twitter.com/compose/tweet
// @match https://twitter.com/compose/tweet/schedule