Skip to content

Instantly share code, notes, and snippets.

Avatar

AoDev AoDev

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am aodev on github.
  • I am aodev (https://keybase.io/aodev) on keybase.
  • I have a public key ASB-4AXwYb-FxnAd84VhuCe_fbfpmbqHotlGMjN5fdTbZgo

To claim this, I am signing this object:

@AoDev
AoDev / rem-facebook-ads.js
Created Jul 10, 2017
Remove facebook ads from timeline
View rem-facebook-ads.js
// Remove the ads in your Facebook timeline.
// Depending on the language you use in FB, you will need to update the keyWord.
// The keyWord is the title used in facebook ads. Everytime this title is found,
// the corresponding content will be removed from the timeline.
// You can also adjust the check interval, it depends on how fast you scroll
// the content usually.
// How to use:
// - You can use a browser extension that injects that script into the page.
@AoDev
AoDev / googleformscrapper.js
Last active Jan 25, 2017
Scrap and parse a Google form
View googleformscrapper.js
;(function () {
const QUESTION_WRAPPER_SELECTOR = '.freebirdFormeditorViewItemContent'
const QUESTION_INFO_SELECTOR = '.quantumWizTextinputPapertextareaInput.exportTextarea'
const QUESTION_ANSWER_SELECTOR = '.quantumWizTextinputSimpleinputInput.exportInput'
const SECTION_SELECTOR = '.freebirdFormeditorViewPagePageCard'
const SECTION_HEADER_SELECTOR = '.freebirdFormeditorViewPageTitleAndDescription'
function findElements (selector, element = window.document) {
return [].slice.call(element.querySelectorAll(selector))
}
You can’t perform that action at this time.