Skip to content

Instantly share code, notes, and snippets.

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 MaySoMusician/49ec6bed0fe14e55819310132b72e24f to your computer and use it in GitHub Desktop.
Save MaySoMusician/49ec6bed0fe14e55819310132b72e24f to your computer and use it in GitHub Desktop.
The Supreme Court of Japan demanded in July 21, 2020, that the Twitter, Inc. disclose their users' e-mail addresses, who retweeted an copyright-violated image, because any image that are automatically trimmed by Twitter (by styling with HTML and/or CSS) are an infringement of the “right to maintain integrity” of the authors of the original image…
/*
** 1. Visit https://twitter.com/
** 2. Let $ be jQuery, that are loaded in some way
** 3. Run the following code in your browser's console
**
** I tested the code with jQuery Injector by attilathedud to load jQuery
** https://chrome.google.com/webstore/detail/jquery-injector/ekkjohcjbjcjjifokpingdbdlfekjcgi/related
** Of course you can use any tool to do this
**
** Note: this code doesn't automatically disable clipping the images you load after running the code
*/
$("a[href*='/photo/'] img").each(function(index) {
const b = $(this)
b.parent().css('height', '100%').css('width', '100%').css('margin', '0')
b.siblings('div').css('background-size', 'contain')
})
/*
** The Supreme Court of Japan demanded in July 21, 2020, that the Twitter, Inc.
** disclose their users' e-mail addresses, who retweeted an copyright-violated image,
** because any image that are automatically trimmed by Twitter (by styling with HTML
** and/or CSS) are an infringement of the “right to maintain integrity” of the authors
** of the original image, regardless of whether it is unauthorised-copied or not.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment