Created
November 2, 2018 03:03
-
-
Save apple502j/96883db1edcb24ac1f34506875d971ad to your computer and use it in GitHub Desktop.
QiitaのTwitter共有がバグってるのでさっそく分析してみる ref: https://qiita.com/apple502j/items/fea853587dd9caccd7b9
This file contains hidden or 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 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; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment