Created
July 12, 2015 07:23
-
-
Save xerosanyam/3139875b34b29628b2cc to your computer and use it in GitHub Desktop.
GeeksForGeeks Bullets to Numbers
This file contains 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 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