Skip to content

Instantly share code, notes, and snippets.

@azu azu/niconail.js
Created Mar 22, 2010

What would you like to do?
// ==UserScript==
// @name [ポップアップ] 情報を加工してクリップボードに格納
// @namespace
// @description MakeLinkみたいにページ情報を格納したり、クリップボードの中身を再加工するスクリプトです。
// ==/UserScript==
function copySting(str){
// XPCOMを呼び出す
var ss = Cc[";1"].getService(Ci.nsIClipboardHelper);
var title = content.document.title.replace("‐ニコニコ動画(9)", "");
var videoID = content.location.href.replace("","");
var templete = '<a target="_blank" href="'+ videoID +'"><img alt="'+title+'" src="'+ videoID +'"></a>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.