Skip to content

Instantly share code, notes, and snippets.

View OnkarRuikar's full-sized avatar
:octocat:
Need a strong coffee ☕

Onkar Ruikar OnkarRuikar

:octocat:
Need a strong coffee ☕
  • India
View GitHub Profile
@OnkarRuikar
OnkarRuikar / SortedBrokenFrags.md
Last active March 17, 2023 14:09
517 BrokenFrags in mdn/content, unique and sorted
  • Addons/Add-on_Manager/Addon#getResourceURI%28%29
  • CSS/CSS3#conditional_rules
  • Chrome_Registration#contentaccessible
  • Chrome_Registration#manifest
  • Chrome_Registration#manifest_flags
  • Chrome_Registration#platformversion
  • Code_snippets/Tabbed_browser#Notification_when_a_tab%27s_attributes_change
  • Code_snippets/Tabbed_browser#detecting_page_load
  • Code_snippets/Toolbar#adding_button_by_default
  • Displaying_Places_information_using_views#menu_view
@OnkarRuikar
OnkarRuikar / BrokenFragments.md
Created March 17, 2023 13:51
Broken fragments in mdn/content
  • content/files/en-us/glossary/script-supporting_element/index.md Web/HTML/Kinds_of_HTML_content#script-supporting_elements

  • content/files/en-us/glossary/slug/index.md MDN/Guidelines/Writing_style_guide#slugs

  • content/files/en-us/learn/accessibility/html/index.md Web/Accessibility/Understanding_WCAG/Operable#guideline_2.4_%e2%80%94_navigable_provide_ways_to_help_users_navigate_find_content_and_determine_where_they_are

  • content/files/en-us/learn/css/building_blocks/cascade_layers/index.md

@OnkarRuikar
OnkarRuikar / sync_bcd.mjs
Last active March 27, 2024 03:39
Simple script for updating BCD info
#!/usr/bin/env node
import fs from"node:fs";import path from"node:path";import process from"node:process";import fm from"front-matter";import jty from"json-to-pretty-yaml";const EXPERIMENTAL="experimental",DEPRECATED="deprecated",NON_STANDARD="non-standard";let bcd=null,bcd_json=null,source=null;console.debug=()=>{};const state={processed:0,modified:0};function before(){String.prototype.includesO=String.prototype.includes,String.prototype.includes=function(e,n){const t=this.includesO(e,n);if(!t)try{return new RegExp(e,"i").test(this)}catch(e){return t}return t}}function after(){String.prototype.includes=String.prototype.includesO}function getUpdatedFrontMatter(e,n){const{title:t,"short-title":r,slug:l,"page-type":s,"browser-compat":a,"spec-urls":i}=e,c={title:t};if(r&&(c["short-title"]=r),c.slug=l,s&&(c["page-type"]=s),n&&n?.length){const e=[];n.includes(EXPERIMENTAL)&&e.push(EXPERIMENTAL),n.includes(DEPRECATED)&&e.push(DEPRECATED),n.includes(NON_STANDARD)&&e.push(NON_STANDARD),c.status=e}a&&a?.length&&(Array
@OnkarRuikar
OnkarRuikar / minimizeGitHubBotComments.js
Created May 2, 2022 04:42
A Tampermonkey script to make bot comments on GitHub minimizable.
// ==UserScript==
// @name Minimize bot comments in PR
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Script to make bot comments on GitHub minimizable.
// @author Onkar Ruikar
// @match https://github.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
// This is a Javascript object definition
// The object properties are insertion ordered
// solution for https://stackoverflow.com/q/69946683/15273968
(function () {
//original functions
let _keys = Object.keys;
let _getOwnPropertyNames = Object.getOwnPropertyNames;
let _defineProperty = Object.defineProperty;
let _stringify = JSON.stringify;
{
"options": {
"icon": "[Circular Reference]this",
"pane": "markerPane"
},
"_latlng": {
"lat": 49.72907695,
"lng": 11.112628699999998
},
"_group": {
@OnkarRuikar
OnkarRuikar / guide.md
Created December 21, 2021 09:09
Docsify demo guide.md

Guide1

Chapter 1

Section 1

Chapter 2

@OnkarRuikar
OnkarRuikar / _sidebar.md
Last active December 21, 2021 09:09
Docsify demo sidebar.md
@OnkarRuikar
OnkarRuikar / readme.md
Last active December 21, 2021 09:08
For docsify

Home

Chapter a

Section a

Section b

Chapter b