Skip to content

Instantly share code, notes, and snippets.

@TheAMM
TheAMM / twitter_media_source.user.js
Last active October 8, 2025 14:19
Twitter Media Source userscript
// ==UserScript==
// @name Twitter Media Source
// @namespace https://gist.github.com/TheAMM
// @downloadURL https://gist.github.com/TheAMM/de48c152076fec4c0ba530ad09081f40/raw/twitter_media_source.user.js
// @updateURL https://gist.github.com/TheAMM/de48c152076fec4c0ba530ad09081f40/raw/twitter_media_source.user.js
// @version 2.1.6
// @description Allows copying direct full-size image/video links on Twitter (with a #tweetid source suffix), downloading media, and navigating back to a Tweet from a media URL.
// @author AMM
// @match https://twitter.com/*
// @match https://x.com/*
@jinjier
jinjier / javdb-top250.md
Last active October 26, 2025 06:00
JavDB top 250 movies list. [Updated on 2025/10]
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@paulirish
paulirish / data-markdown.user.js
Last active September 12, 2025 10:57
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active July 29, 2025 11:23
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version