JSFiddle - React, Tailwind, and code Playground
by kuonyuu
HTML
<div class="quantity" id="quantity" zoompage-fontsize="55">1</div>
JavaScript
javascript: (function() {
var temp = $(".pop-window-frame").contents().find('#quantity').text();
var coin = prompt("輸入噗幣數", ""+temp);
$(".pop-window-frame").contents().find('#quantity').text(coin;
})()
javascript: var e = document.createElement('script');
e.setAttribute('language', 'javascript');
var code = '(function () {$("#quantity").innerHTML = "12";var n = $("#quantity").innerHTML; console.log(n)})()';
var t = document.createTextNode(code);
e.appendChild(t);
document.body.appendChild(e);
void(0);
javascript: (function() {
var iframe = document.getElementById('exampleForm');
var iframedoc = iframe.contentDocument ? iframe.contentDocument : iframe.contentWindow.document;
var id = 'name';
var val = 'John Smith';
if (iframedoc.getElementById(id)) {
iframedoc.getElementById(id).value = val;
}
var id = 'email';
var val = '[email protected]';
if (iframedoc.getElementById(id)) {
iframedoc.getElementById(id).value = val;
}
})();