Skip to content

Instantly share code, notes, and snippets.

View afifsohaili's full-sized avatar

Afif Sohaili afifsohaili

View GitHub Profile
@afifsohaili
afifsohaili / observe-tweet.js
Created February 24, 2021 18:03
Observe added and removed tweets on Twitter timeline
// Paste the following code in your dev console.
// Don't worry. It's a safe code and won't send any of your Twitter data to me.
const targetNode = document.querySelector('[aria-label="Timeline: Your Home Timeline"]')
const config = { childList: true, subtree: true };
const callback = function(mutationsList, observer) {
// Use traditional 'for loops' for IE 11
for(const mutation of mutationsList) {
@afifsohaili
afifsohaili / composer.lock
Created December 9, 2014 16:37
Working Laravel 5 composer.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "b200235a93a73fcb828571296156d231",
"packages": [
{
"name": "classpreloader/classpreloader",