Marquee 跑馬燈

var scrl='Test String';
function scrlsts() {
    scrl = scrl.substring(1, scrl.length) + scrl.substring(0, 1);
    document.title = scrl;
    setTimeout(scrlsts, 300);
}
scrlsts();

HTML Marquee

Shoudian Url Redirect

// ==UserScript==
// @name           shoudian URL Redirect
// @description    shoudian URL Redirect
// @include        http://www.shoudiancn.com/*
// @include        http://www.shoudian.org/*
// @include        http://shoudiancn.com/*
// ==/UserScript==
location.assign('http://www.shoudian.com' + location.pathname + location.search);

remove an inline onclick attribute

element.setAttribute ("onclick", null);
javascript - How can I remove an inline onclick attribute with a bookmarklet? - Stack Overflow

event.preventDefault

function stopDefAction(evt) {
  evt.preventDefault();
}

event.preventDefault - MDN Docs

event.target

function showTagName(e)
{
    alert(e.target.tagName);
    e.preventDefault();
}
window.addEventListener('click',showTagName,false);

event.target - MDN Docs