Skip to content

Instantly share code, notes, and snippets.

:shipit:

Jane Manchun Wong wongmjane

:shipit:
Block or report user

Report or block wongmjane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wongmjane
wongmjane / bookmarklet.js
Last active Dec 4, 2019
Guesstimate the original tweet of a shared video on Twitter
View bookmarklet.js
javascript:(()=>{const match=document.title.match(/(\bhttps?:\/\/t\.co\/[a-zA-Z0-9\-\.as]+)/g);if(match!==null){window.location=match.slice(-1)[0]}})()
@wongmjane
wongmjane / medium-unclap.js
Last active Jan 14, 2019
Unclap everything on Medium
View medium-unclap.js
/**
* Unclaps everything on Medium
* @author Jane Manchun Wong
*/
(async () => {
if ( window.location.host !== 'medium.com' ) {
console.error(`This script won't work unless you go to Medium:\nhttps://medium.com/me`)
return
}
/**
View keybase.md

Keybase proof

I hereby claim:

  • I am wongmjane on github.
  • I am wongmjane (https://keybase.io/wongmjane) on keybase.
  • I have a public key ASD-26PxNdPWYUdhiehbPlPaTzQpSdN8cX1fm0uho8-M8wo

To claim this, I am signing this object:

@wongmjane
wongmjane / hide_some_fb_ads.js
Last active Dec 18, 2018
Hide Ad Interests and Past Advertisers from FB
View hide_some_fb_ads.js
// this will not remove your data from them, but it will help reducing the bits of info from making your ads personalized
// it can be manually done on https://facebook.com/ads/preferences but they guessed like 300 interests and i am too lazy to hide each of them one by one
//
// run this on https://www.facebook.com on a web browser
// this hides your ad interests
new AsyncRequest('/ads/profile/interests').setHandler(({
payload: {
interests
@wongmjane
wongmjane / Stylefile.yml
Created Jul 29, 2018 — forked from loopyz/Stylefile.yml
Customizations for jmw.fyi via StyleURL.
View Stylefile.yml
---
version: 1.0
domains:
- jmw.fyi
url_patterns:
- jmw.fyi/*
timestamp: '2018-07-29T17:35:31Z'
id: kCd7
redirect_url: https://jmw.fyi/
shared_via: 'StyleURL – import and export CSS changes from Chrome Inspector to a Gist
@wongmjane
wongmjane / fb-oc-only-feed-filter.txt
Created Apr 23, 2018
uBlock rule for hiding shared posts on Facebook
View fb-oc-only-feed-filter.txt
www.facebook.com##.userContentWrapper:has(.fwb:not(.fcg))
@wongmjane
wongmjane / hide_all_newsfeed_pages.js
Created Apr 8, 2018
Hide all Pages from newsfeed
View hide_all_newsfeed_pages.js
// I wrote this because I'm fed up with all the spam memes and cheesy quotes people share on Facebook.
// 1. Automate clicking the story action buttons to gather the URIs to hide those pages
Array.prototype.map.call(document.querySelectorAll(`[data-testid='post_chevron_button']`),a=>a.click())
// 2. Hide it.
Array.prototype.filter.call(document.querySelectorAll(`a[data-feed-option-name='UNSUBSCRIBE_ATTACHED_STORY_ACTOR']`),a=>/Hide all from/.test(a.querySelector('._2ezu').title)).map(a=>new AsyncRequest(a.getAttribute('ajaxify')).send())
You can’t perform that action at this time.