JSFiddle - React, Tailwind, and code Playground
by dledle2
JavaScript
javascript:
try {
var js;
js = document.createElement("script");
js.addEventListener("load", confirmSuccess);
js.src = "//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js";
document.head.appendChild(js);
function confirmSuccess() {
console.log("jQuery loaded!");
$.get(window.location.href.replace(/gwh=.*/, ""), "", function (data) {
window.realpage = data;
$("#article").html($(data).find("#article"));
});
}
var all = document.getElementsByTagName("*");
for (var i = 0, max = all.length; i < max; i++) {
/* alert(all[i]); */
var test1 = $(all[i]);
if (i <= 2) {
alert(test1);
}
if (i <= 2) {
alert($(test1));
}
$(test1).off();
$(test1).unbind();
$(test1).undelegate();
$(window).unbind('scroll');
/*
$(all[i]).off();
$(all[i]).unbind(); */
/* all[i].off();
all[i].unbind(); */
}
$('body').off();
$('body').unbind('keydown');
$('body').unbind('click');
$('body').unbind();
$('body').unbind();
alert('unbind finished');
$('.comments-panel.panel-wide').css('top', '0px');
$('.comments-panel.panel-wide').css('width', '100%25');
/* alert('hi2'); */
} catch (e1) {
alert(e1);
}
/* thanks to http://stackoverflow.com/questions/11979542/change-value-of-css-subclass-in-javascript */
/* thanks to: http://toys.euri.ca/nyt.js */
/* thanks to: http://blog.coolaj86.com/articles/how-to-load-jquery-anywhere.html */