Skip to content

Instantly share code, notes, and snippets.

@oktak
oktak / appletv_subtitle.js
Created September 17, 2020 16:31
Apple Tv+ subtitle offsets downward
/**
* Paste it in the console of a browser tab which is playing the video with subtitle turned on.
* The JavaScript code access to `shadowRoot` of the DOM elements and inject inline CSS by <style> tag.
* And print the subtitle to the console panel.
* It aims to help people do not want to be distracted by subtitle, but sometimes want to read it.
* Good for language learners! (I guess ;-)
*
* Note: CSS selectors are subject to change by Apple without any notices.
*
* @domain: https://tv.apple.com/hk/show/
@oktak
oktak / invite.js
Last active November 2, 2020 11:43
Facebook Page Invite Like (new layout) 2020-08
/**
* Paste it in the console of a browser tab which is opening the inviting panel.
* You may adjust the BATCHSIZE. It will wait for ~10 seconds for the next batch.
* It will auto load the infinite scroll after ~5 seconds of finishing current batch of invite.
* The 24-hour limitation of inviting per user per page is around 1000 inivte.
*
* Note: CSS selectors are subject to change by Facebook without any notices.
*
* @author: oktak
* @date: 2020-08-17