mitpod

Rotates and inverts the video element on the page.

当前为 2024-06-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name mitpod
  3. // @namespace https://www.twitch.tv/mitpod
  4. // @version 0.1
  5. // @description Rotates and inverts the video element on the page.
  6. // @author Your Name
  7. // @match https://www.twitch.tv/mitpod
  8. // @match https://www.twitch.tv/lightbaytv
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. setTimeout(function() {
  17. (s => {
  18. s.transform = s.transform ? '' : 'rotate(180deg)';
  19. s.filter = s.filter ? '' : 'invert(1)';
  20. })(document.querySelector('video').style);
  21. }, 900); // 5000 milliseconds = 5 seconds
  22. })();