Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xerosanyam/3139875b34b29628b2cc to your computer and use it in GitHub Desktop.
Save xerosanyam/3139875b34b29628b2cc to your computer and use it in GitHub Desktop.
GeeksForGeeks Bullets to Numbers
// ==UserScript==
// @name Xerosanyam's script to convert UL to OL
// @description This script converts all ul tags to ol on GeeksforGeeks.org Domain.
// @namespace http://www.geeksforgeeks.org/ul-to-ol
// @include http://www.geeksforgeeks.org/*
// @grant None
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// ==/UserScript==
$($('.wrapper').find('ul').get().reverse()).each(function(){
$(this).replaceWith($('<ol>'+$(this).html()+'</ol>'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment