1

Funny Inspect Element!

xenolovegood's Avatar xenolovegood8/26/14 11:36 am
1 emeralds 2.6k 33
9/29/2014 10:05 pm
craftykids's Avatar craftykids
Put your funny inspect element pictures here!
Posted by xenolovegood's Avatar
xenolovegood
Level 31 : Artisan Narwhal
37

Create an account or sign in to comment.

33

1
09/29/2014 10:05 pm
Level 52 : Grandmaster Pixel Painter
craftykids
craftykids's Avatar
This is sort of complicated, but I made this and wanted to share it:

1. Right-click on some text and select "Inspect element"
2. Find the highlighted line of code, and then...
If you're using Chrome: Right-click that line of code and select "Add attribute"
If you're using Firefox: Double-click the first "greater than" symbol in that line of code

3. Type class="gradient" and press enter
4. Switch to the "Console" tab
5. Paste this in: [code]var blackRed = ["#000000","#ff0000"]; var gold = ["#685510","#997E21","#CDB64B","#EEE26A","#E5D760","#C3A93D","#AB912C","#D1BB4C","#D1BC4A","#A78929"]; var rainbow = ["#FF0000", "#FFFF00", "#00FF00", "#00FFFF", "#0000FF", "#FF00FF"]; function rotate(array) { array.splice(0,0,array[array.length-1]); array.pop(); } var interval; function gradient(colors, time, length) { if (colors == undefined) { colors = rainbow; } if (time == undefined) { time = 100; } if (length == undefined) { length = 18; } var gap = colors.length/length; var newColors = []; for (i = 0; i < length; i++) { var indexA = Math.floor(i*gap); var indexB = Math.ceil(i*gap); point = i*gap - indexA; function colorToArray(color) { return [parseInt(color.substr(1,2), 16), parseInt(color.substr(3,2), 16), parseInt(color.substr(5,2), 16)]; } function arrayToColor(array) { array = array.map(function(value){ if (value.toString(16).length == 1) {return "0" + value.toString(16)} else {return value.toString(16)}}); return "#" + array[0] + array[1] + array[2]; } var colorA = colorToArray(colors[indexA]); var colorB = colorToArray(colors[indexB%colors.length]); function segment(value, index) { return Math.round(value + point*(colorB[index] - value)); } newColors.push(arrayToColor(colorA.map(segment))); } colors = newColors; function gradientUpdate() { var gradients = document.getElementsByClassName("gradient"); for (i = 0; i < gradients.length; i++) { var nodes = gradients[i].childNodes; for (x = 0; x < nodes.length; x++) { if (nodes[x].nodeType == 3) { var nodeText = nodes[x].nodeValue; var newNode = document.createElement("div"); newNode.class = "gradientChars"; for (a = 0; a < nodeText.length; a++) { newNode.innerHTML += "<div style='display:inline; color:" + colors[(x+a)%colors.length] + ";'>" + nodeText.charAt(a) + "</div>"; } gradients[i].replaceChild(newNode, nodes[x]); } else if (nodes[x].class == "gradientChars") { for (k = 0; k < nodes[x].childNodes.length; k++) { nodes[x].childNodes[k].style.color = colors[k%colors.length]; } } } } rotate(colors); } stopGradient(); interval = setInterval(gradientUpdate,time); } function stopGradient() { clearInterval(interval); }[/code] and press enter
6. Type [code]gradient()[/code] and press enter
7. Watch the fancy colors
1
08/27/2014 12:41 pm
Level 17 : Journeyman Zombie
planetminecrafter52342
planetminecrafter52342's Avatar
I recommend viewing image in new tab.
1
08/26/2014 10:11 pm
Level 7 : Apprentice Explorer
Latouth
Latouth's Avatar
Woody239Best "Inspect Element" Ever:

Step 1: Right click anywhere on the page.
Step 2: Select "Inspect Element"
Step 3: At the top right of the thing that pops up, go to the "Console" tab
Step 4: Paste this into the console, and press enter.
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}function E(e){var t=m(e);return t>=w&&t<=b+w}function S(){var e=document.createElement("audio");e.setAttribute("class",l);e.src=i;e.loop=false;e.addEventListener("canplay",function(){setTimeout(function(){x(k)},500);setTimeout(function(){N();p();for(var e=0;e<O.length;e++){T(O[e])}},15500)},true);e.addEventListener("ended",function(){N();h()},true);e.innerHTML=" <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";document.body.appendChild(e);e.play()}function x(e){e.className+=" "+s+" "+o}function T(e){e.className+=" "+s+" "+u[Math.floor(Math.random()*u.length)]}function N(){var e=document.getElementsByClassName(s);var t=new RegExp("\\b"+s+"\\b");for(var n=0;n<e.length;){e[n].className=e[n].className.replace(t,"")}}var e=30;var t=30;var n=350;var r=350;var i="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";var s="mw-harlem_shake_me";var o="im_first";var u=["im_drunk","im_baked","im_trippin","im_blown"];var a="mw-strobe_light";var f="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";var l="mw_added_css";var b=g();var w=y();var C=document.getElementsByTagName("*");var k=null;for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){if(E(A)){k=A;break}}}if(A===null){console.warn("Could not find a node of the right size. Please try a different page.");return}c();S();var O=[];for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){O.push(A)}}})()

Step 5: Close the "Inspect element" thing.
Step 6: Do it...
1
08/26/2014 9:52 pm
Level 52 : Grandmaster Pixel Painter
craftykids
craftykids's Avatar
This is my only one:

1
08/26/2014 7:13 pm
Level 31 : Artisan Narwhal
xenolovegood
xenolovegood's Avatar
Bumpity
1
08/26/2014 4:24 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar
Z645
Sir Cobalt
Click to reveal


View in another taaab

is there a way to make images fit?


Use simg tags instead of img.
[simg]http://i.imgur.com/iQsZVSd.png[/simg][simg]http://i.imgur.com/8PaDZMM.png[/simg]


Thanks
1
08/26/2014 4:06 pm
Level 30 : Artisan Geek
Z645
Z645's Avatar
Sir Cobalt
Click to reveal


View in another taaab

is there a way to make images fit?


Use simg tags instead of img.
[simg]http://i.imgur.com/iQsZVSd.png[/simg][simg]http://i.imgur.com/8PaDZMM.png[/simg]
1
08/26/2014 3:52 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar


is there a way to make images fit?
1
08/26/2014 3:46 pm
Level 7 : Apprentice Explorer
Latouth
Latouth's Avatar
1
08/26/2014 3:39 pm
Level 7 : Apprentice Explorer
Latouth
Latouth's Avatar
Really woody, Nice coding
1
08/26/2014 4:27 pm
Level 36 : Artisan Blockhead
Woodilicious
Woodilicious's Avatar
Which one? Lol, I made the Paril one, but I found the Harlem Shake one online quite a long time ago. I just saved it as a note, to use at the right time...
1
08/26/2014 9:36 pm
Level 7 : Apprentice Explorer
Latouth
Latouth's Avatar
Was talking about the
HARLEM SHAKE
1
08/26/2014 3:35 pm
Level 30 : Artisan Geek
Z645
Z645's Avatar
Woody239i.imgur.com/S1u9D7M.png

He's watching us....

"Became Parils slave" LOL
1
08/26/2014 3:32 pm
Level 7 : Apprentice Explorer
Latouth
Latouth's Avatar
Ill make one

Brb making one!
1
08/26/2014 3:30 pm
Level 5 : Apprentice Crafter
richlen99
richlen99's Avatar
omg woody, pls

LOL this was hilarious...my dad walks in and sees this and i just am staring at the screen with the harlem shake blaring...pls
1
08/26/2014 3:24 pm
Level 36 : Artisan Blockhead
Woodilicious
Woodilicious's Avatar
Best "Inspect Element" Ever:

Step 1: Right click anywhere on the page.
Step 2: Select "Inspect Element"
Step 3: At the top right of the thing that pops up, go to the "Console" tab
Step 4: Paste this into the console, and press enter.
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}function E(e){var t=m(e);return t>=w&&t<=b+w}function S(){var e=document.createElement("audio");e.setAttribute("class",l);e.src=i;e.loop=false;e.addEventListener("canplay",function(){setTimeout(function(){x(k)},500);setTimeout(function(){N();p();for(var e=0;e<O.length;e++){T(O[e])}},15500)},true);e.addEventListener("ended",function(){N();h()},true);e.innerHTML=" <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";document.body.appendChild(e);e.play()}function x(e){e.className+=" "+s+" "+o}function T(e){e.className+=" "+s+" "+u[Math.floor(Math.random()*u.length)]}function N(){var e=document.getElementsByClassName(s);var t=new RegExp("\\b"+s+"\\b");for(var n=0;n<e.length;){e[n].className=e[n].className.replace(t,"")}}var e=30;var t=30;var n=350;var r=350;var i="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";var s="mw-harlem_shake_me";var o="im_first";var u=["im_drunk","im_baked","im_trippin","im_blown"];var a="mw-strobe_light";var f="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";var l="mw_added_css";var b=g();var w=y();var C=document.getElementsByTagName("*");var k=null;for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){if(E(A)){k=A;break}}}if(A===null){console.warn("Could not find a node of the right size. Please try a different page.");return}c();S();var O=[];for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){O.push(A)}}})()

Step 5: Close the "Inspect element" thing.
Step 6: Do it...
1
08/26/2014 3:19 pm
Level 36 : Artisan Blockhead
Woodilicious
Woodilicious's Avatar
http://i.imgur.com/S1u9D7M.png

He's watching us....
1
08/26/2014 2:40 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar
Click to reveal


Better Beginnings Mod
(not making fun of it, actually I think it's a rather nice concept)
1
08/26/2014 2:07 pm
Level 31 : Artisan Dragonborn
kogan007
kogan007's Avatar
hey guys you can also use
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
1
08/26/2014 1:52 pm
Level 22 : Expert Network
1234560
1234560's Avatar
I didn't even know you could do this...


1
08/26/2014 1:43 pm
Level 12 : Journeyman Pig
Ender_
Ender_'s Avatar
Sir Cobalt
Ender_Armyhttp://prntscr.com/4gp0gn
and
http://prntscr.com/4gp0gn


They're the same thing

oh whoops lol, lemme fix that
*EDIT* Fixed. :3
1
08/26/2014 1:40 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar
Ender_Armyhttp://prntscr.com/4gp0gn
and
http://prntscr.com/4gp0gn


They're the same thing
1
08/26/2014 1:25 pm
Level 12 : Journeyman Pig
Ender_
Ender_'s Avatar
1
08/26/2014 1:12 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar
Click to reveal


Again, view in new tab
1
08/26/2014 1:07 pm
Level 3 : Apprentice Crafter
Wildboylee
Wildboylee's Avatar
Well, I got bored I was going to do the whole string of comments but cba.
http://imgur.com/WPwxUcS
http://imgur.com/dVPFiQc
1
08/26/2014 12:56 pm
Level 29 : Expert Artist
Narotiza
Narotiza's Avatar
Click to reveal


Best if viewed in another tab
1
08/26/2014 12:32 pm
Level 32 : Artisan Dragon
Malaionus
Malaionus's Avatar
1
08/26/2014 12:21 pm
Level 36 : Artisan Ranger
madmax3004
madmax3004's Avatar
Also, thanks for making me figure out how to mess things up with inspect element
1
08/26/2014 12:20 pm
Level 36 : Artisan Ranger
madmax3004
madmax3004's Avatar
1
08/26/2014 11:55 am
Level 31 : Artisan Narwhal
xenolovegood
xenolovegood's Avatar
bump
1
08/26/2014 11:38 am
Level 20 : Expert Skinner
xXTheArcherXx
xXTheArcherXx's Avatar
This was one Woody did of me:

1
08/26/2014 11:41 am
Level 32 : Artisan Dragon
Malaionus
Malaionus's Avatar
Yaaay. I'm there
1
08/26/2014 11:36 am
Level 31 : Artisan Narwhal
xenolovegood
xenolovegood's Avatar
here's mine
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome