Skip to content

Instantly share code, notes, and snippets.

View lowteq's full-sized avatar

lowteq lowteq

View GitHub Profile
@lowteq
lowteq / hide_discordstatus.css
Created October 12, 2023 12:57
discordのステータスを非表示にするbetterdiscord用カスタムcss
li> div > a > div > div:first-child > div > svg > svg{
display: none;
}
li> div > a > div > div:first-child > div > svg > mask > rect{
display:none;
}
section[aria-label="チャンネルのヘッダー"] > div > div:first-child > div:nth-child(2) {
display:none;
}
@lowteq
lowteq / add_engagement_links_to_post_on_twitter_x.user.js
Last active October 9, 2023 09:56
エンゲージメントリンクをtwitter(X)のポスト上に表示する
// ==UserScript==
// @name Add Engagement Links to Post on Twitter (X)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add specific links to a Twitter tweet based on conditions
// @author lowteq
// @match https://twitter.com/*
// @grant GM_addStyle
// ==/UserScript==
@lowteq
lowteq / injection_tags.user.js
Last active January 22, 2023 10:57
tempermonkey script : Serialize and display Danbooru tags
// ==UserScript==
// @name injection tags
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Serialize and display Danbooru tags
// @author lowteq
// @match https://danbooru.donmai.us/posts/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=donmai.us
// @grant none
// ==/UserScript==
@lowteq
lowteq / auto_click_following_tab.user.js
Created January 20, 2023 04:31
tempermonkeyスクリプトでtwitter webのフォロー中タブをリロード時強制選択
// ==UserScript==
// @name auto click following tab
// @namespace http://tampermonkey.net/
// @version 0.1
// @description auto click following tab
// @author lowteq
// @match https://twitter.com/home
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
@lowteq
lowteq / get_eval_vertex_coordinate.py
Last active December 9, 2022 06:50
モディファイアを通した後の頂点座標取得
import bpy
import bmesh
obj = bpy.context.active_object
depsgraph = bpy.context.evaluated_depsgraph_get()
evalbm = bmesh.new()
evalbm.from_object( obj, depsgraph )
evalbm.verts.ensure_lookup_table()
@lowteq
lowteq / copy_weblio_for_clozemaster.user.js
Last active August 27, 2021 10:57
clozemasterのための文字列を簡単にコピーするボタンをweblioに追加するChrome Tampermonkey用UserScript
// ==UserScript==
// @name copy weblio for clozemaster
// @namespace http://tampermonkey.net/
// @version 0.1
// @description clozemasterのための文字列を簡単にコピーするボタンをweblioに追加します
// @author lowteq
// @match https://ejje.weblio.jp/sentence/content/*
// @icon https://www.google.com/s2/favicons?domain=weblio.jp
// @grant none
// ==/UserScript==
@lowteq
lowteq / pattern_to_cube.py
Last active April 28, 2021 15:59
pattern to cube on blender
import bpy
def parser(data):
data = data.splitlines()
print(len(data))
print(len(data[0]))
return [[data[j][i] == "■" for i in range(len(data[0]))] for j in range(len(data))]
Shader "Unlit/mosaic"
{
Properties
{
_DivideNum ( "Divide Num", Float ) = 1
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
Shader "Unlit/scaner"
{
Properties
{
_DepthTexture ("Depth", 2D) = "white" {}
_ColorTexture ("Color", 2D) = "white" {}
depthlength ("Depth Length",Float) = 5
}
import bpy
def pivotpointchange(pivotpoint):
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
area.spaces[0].pivot_point = pivotpoint
def currentpivotpoint():
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':