Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created November 2, 2018 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apple502j/96883db1edcb24ac1f34506875d971ad to your computer and use it in GitHub Desktop.
Save apple502j/96883db1edcb24ac1f34506875d971ad to your computer and use it in GitHub Desktop.
QiitaのTwitter共有がバグってるのでさっそく分析してみる ref: https://qiita.com/apple502j/items/fea853587dd9caccd7b9
// ==UserScript==
// @name Twitter fix
// @version 1.0
// @description Fix twitter link
// @author apple502j
// @match https://qiita.com/advent-calendar/*
// ==/UserScript==
window.addEventListener("load", function(){
for (const item of document.querySelectorAll("a.twitter-share-button")) item.href += "?url=" + item.dataset.url;
});
@Korb
Copy link

Korb commented Jul 27, 2022

What exactly does this script do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment