This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Facebook Mobile Cleaner | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Removes sponsored posts, reels, people you may know, and posts from people you don't follow on mobile Facebook. Inspired by F.B. Purity. | |
| // @run-at document-idle | |
| // @author You | |
| // @match https://m.facebook.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=facebook.com | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ! --- CLEAN REDDIT RECS --- | |
| ! Hide the infinite scroll main feed on the homepage | |
| www.reddit.com##.home-page | |
| sh.reddit.com##.home-page | |
| ! Hide the annoying left navigation bar and sidebar clutter entirely | |
| www.reddit.com###left-sidebar-container | |
| www.reddit.com###right-sidebar-container | |
| ! Block the intrusive search dropdown suggestions and "Trending Today" popups |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| 'use strict';var Tda=function(a,b){var c,d=$APP.pa(b);d=(c="array"==d||"object"==d&&"number"==typeof b.length)?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a},Uda=function(a,b){return $APP.ny(a,b)},IW=function(a,b){return $APP.Ny(a,b)},Vda=function(a,b){b=IW(a,$APP.Cl("(keys (ns-map '%s))","%s",b));b=$APP.Bj.h(function(c){return["`",$APP.t.g(c)].join("")},b);b=["[",$APP.Rr.h(" ",b),"]"].join("");a=$APP.Ny(a,b);return $APP.Zu.h(function(c){return $APP.Ml($APP.t.g(c),"nbb.internal")}, | |
| a)},Wda=function(a,b,c){c=$APP.Jl.h(c,/\//);$APP.C.j(c,0,null);var d=$APP.C.j(c,1,null),e=IW(a,$APP.Zj.l($APP.G([$APP.X.g($APP.x($APP.R.l(new $APP.J(null,$APP.ys,null,1,null),new $APP.J(null,$APP.oh($APP.X.g($APP.x($APP.R.h(new $APP.J(null,JW,null,1,null),new $APP.J(null,$APP.X.g($APP.x($APP.R.h(new $APP.J(null,$APP.ON,null,1,null),new $APP.J(null,$APP.X.g($APP.x($APP.R.h(new $APP.J(null,$APP.jl,null,1,null),new $APP.J(null,b,null,1,null)))),null,1,null)))),null,1,null))))),null,1,null),$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Joi=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| },{}],2:[function(require,module,exports){ | |
| // http://wiki.commonjs.org/wiki/Unit_Testing/1.0 | |
| // | |
| // THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8! | |
| // | |
| // Originally from narwhal.js (http://narwhaljs.org) | |
| // Copyright (c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |