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 Remove watched programs for TVer | |
// @namespace https://kdmsnr.com | |
// @version 0.1.3 | |
// @description Remove watched programs from the mypage of TVer | |
// @author kdmsnr | |
// @match https://tver.jp/mypage/fav | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// @run-at document-end |
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
data:text/html;utf-8,<!DOCTYPE html><body><script>setTimeout(function(){const now = new Date();const year = now.getFullYear();const month = (now.getMonth() + 1).toString().padStart(2, "0");const date = now.getDate().toString().padStart(2, "0");const url = `https://artscape.jp/exhibition/schedule/exhi_schedule_result.php?pref=東京都&Year=${year}&Month=${month}&Day=${date}&period=1&selorder=1&chk_pic=1&f_submit=on`;window.location.replace(url) }, 1);</script></body> |
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
;; Markdown で [[WikiLink]] を開きたい | |
(defun open-wiki-link (link-name) | |
(let ((directories '("." "books")) | |
(file-found nil)) | |
(dolist (dir directories) | |
(let ((path (concat dir "/" link-name ".md"))) | |
(when (and (not file-found) (file-exists-p path)) | |
(setq file-found t) | |
(find-file path)))) | |
(unless file-found |
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 { App, Plugin, Notice } from 'obsidian'; | |
export default class MySidebarPlugin extends Plugin { | |
async onload() { | |
this.addRibbonIcon('checkmark', 'Open TODO Page', async () => { | |
const file = this.app.vault.getAbstractFileByPath('TODO.md'); | |
if (file) { | |
this.app.workspace.getLeaf().openFile(file); | |
} else { | |
new Notice('File not found'); |
OlderNewer