Skip to content

Instantly share code, notes, and snippets.

@aravindanve
aravindanve / bypass-disable-devtool.md
Last active March 9, 2026 19:38
Bypass disable-devtool

(Working as of 2025-02-09)

There are websites that use disable-devtool to prevent you from opening or using devtools. They typically prevent you from right clicking or using the keyboard shortcut to open devtools. Even if you successfully do so, they detect it and redirect you elsewhere. You can bypass this by using one of the following ways.

Opening devtools

If the shortcut F12 on Windows or Option + ⌘ + I on Mac do not work. Press the three vertically aligned dots in the top right corner of your Google Chrome or Microsoft Edge window. Under the section "More Tools", you'll see the option to select "Developer Tools" which opens the toolkit in your window.

@Piinks
Piinks / main.dart
Last active January 18, 2024 21:24
Two Dimensional Grid in Flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@roipeker
roipeker / main.dart
Created May 22, 2022 12:52
Flubber Shader
/// roipeker 2022.
///
/// Original Tweet:
/// https://twitter.com/roipekr/status/1527026419649454081
///
///
/// This code uses "shader" package to simplify testing.
/// Add it with: `flutter pub add shader`
///
/// If you want to compile locally, get "shaderc" for your platform [https://github.com/google/shaderc/blob/main/downloads.md]
# Firestore Security Rules - Examples
Default: Every resource is locked down by default, and its a redundant rule, but can be a good reminder in the start of rules file
service cloud.firestore {
match /databases/{database}/documents {
match /{document=\*\*} {
allow read, write: if false;
}
}
}
@fredgrott
fredgrott / app_theme_colors_snippet_two.dart
Created December 22, 2021 11:48
app theme colors snippet two
// I'm using
Color appColorSeed = const Color(0xff03A9F4);
CorePalette? corePalette = CorePalette.of(appColorSeed.value);
Scheme appMaterialLightScheme = Scheme(
primary: corePalette?.primary.get(40) as int,
onPrimary: corePalette?.primary.get(100) as int,
primaryContainer: corePalette?.primary.get(90) as int,
onPrimaryContainer: corePalette?.primary.get(10) as int,
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
void main() => runApp(
MyApp(),
);
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@n1sh1th
n1sh1th / cordova-enable-webview-debug.js
Created October 16, 2021 05:16
Cordova - Enable Webview Debugging
// Usage : frida -U -f bundle_id -l cordova-enable-webview-debug.js --no-pause
Java.perform(function() {
var Webview = Java.use("android.webkit.WebView")
Webview.loadUrl.overload("java.lang.String").implementation = function(url) {
console.log("[+]Loading URL from", url);
this.setWebContentsDebuggingEnabled(true);
this.loadUrl.overload("java.lang.String").call(this, url);
}
});
@zmtzawqlp
zmtzawqlp / ensureVisible.dart
Created August 13, 2021 03:08
ensureVisible 演示
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
@override
@zmtzawqlp
zmtzawqlp / hittest.dart
Created August 13, 2021 03:06
增大点击区域
import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
void main() {
runApp(ProviderScope(child: MyApp()));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {