Skip to content

Instantly share code, notes, and snippets.

@pacochi
Last active April 17, 2025 02:24
Show Gist options
  • Save pacochi/8712dd3bdfe9ace58db89dffe3f9a212 to your computer and use it in GitHub Desktop.
Save pacochi/8712dd3bdfe9ace58db89dffe3f9a212 to your computer and use it in GitHub Desktop.
posfie に togetter 時代のブクマを追加
// ==UserScript==
// @name togetter 時代のブックマーク
// @namespace hen.acho.co
// @version 2025-04-17
// @description 暫定
// @author pacochi
// @match https://posfie.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=posfie.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const a = document.createElement('a');
a.setAttribute('data-hatena-bookmark-url', 'https://togetter.com/li/' + document.querySelector('.info_box').id.split('_').pop());
a.className = 'hatena-bookmark-button';
document.querySelector('.hatena-bookmark-button-frame,.hatena-bookmark-button').after(a);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment