UserScript未作为Chrome扩展程序运行

时间:2015-05-25 23:24:30

标签: javascript jquery google-chrome

这是我的代码:

// ==UserScript==
// @name       Javascript  
// @version    0.1
// @match      *://*/*
// @include    *://*/*
$('*').contents().filter(function() {return this.nodeType == Node.TEXT_NODE && this.nodeValue.trim() != '';}).each(function() {this.nodeValue = (atob('TWljaGFlbCBpcyBiYWUh '));});

在javascript控制台中运行时,该脚本确实有效。我希望它能在所有页面上运行。我通过将包含此文件的.user.js文件拖到chrome:// extensions中来使用它。

0 个答案:

没有答案
相关问题