新华网“查看评论”重定向的greasemonkey脚本
来源:互联网 发布:黑色沙漠巫师捏脸数据 编辑:程序博客网 时间:2024/05/01 10:36
firefox3.0在新华网,查看评论不能正常进入评论页面,解决此问题的方法:
安装greasemonkey,然后加入下面脚本即可正常查看评论:
脚本名称:talkurl2.user.js
// ==UserScript==
// @name talkurl2
// @description have look comment of xinhuanet
// @include http://news.xinhuanet.com/*
// @exclude
// ==/UserScript==
function getPage1()
{
var cUrl = document.location.href;
var p=cUrl.lastIndexOf("_");
if(p <=0 ) return cUrl;
if(cUrl.charAt(p-1) != 't')
cUrl = cUrl.substring(0,p)+".htm";
return cUrl;
}
var g_PageUrl1 = getPage1();
var docnObj=document.getElementsByName("talkurl2");
docnObj[0].href="http://comments.xinhuanet.com/comment?url="+g_PageUrl1;
安装greasemonkey,然后加入下面脚本即可正常查看评论:
脚本名称:talkurl2.user.js
// ==UserScript==
// @name talkurl2
// @description have look comment of xinhuanet
// @include http://news.xinhuanet.com/*
// @exclude
// ==/UserScript==
function getPage1()
{
var cUrl = document.location.href;
var p=cUrl.lastIndexOf("_");
if(p <=0 ) return cUrl;
if(cUrl.charAt(p-1) != 't')
cUrl = cUrl.substring(0,p)+".htm";
return cUrl;
}
var g_PageUrl1 = getPage1();
var docnObj=document.getElementsByName("talkurl2");
docnObj[0].href="http://comments.xinhuanet.com/comment?url="+g_PageUrl1;
- 新华网“查看评论”重定向的greasemonkey脚本
- 8 个值得推荐的 GreaseMonkey 脚本
- Greasemonkey 脚本应用在本地文件的办法
- LinuxShell脚本的输出重定向
- shell 脚本重定向
- Linux脚本重定向
- 脚本输入输出重定向
- Firefox 的用户脚本管理器 greasemonkey 的使用一例
- 社会媒体玩家的50个Greasemonkey 脚本
- DB2 重定向恢复脚本
- linux脚本重定向问题
- JavaScript重定向脚本编写者
- shell脚本下所有的重定向操作
- shell脚本的学习4-函数和重定向
- 如何编写Greasemonkey用户脚本
- 电信防抽Greasemonkey脚本
- GreaseMonkey过的Google
- 新华网的好文
- 国人开发的Javascript框架 Ucren
- Anark Studio 简介
- 用Setup Factory 7.0制作安装程序(收集)
- provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接
- 汇编中参数的传递和堆栈修正
- 新华网“查看评论”重定向的greasemonkey脚本
- java中JTable单元格中放复选框
- squid.conf典型配置范例
- perl中调用ole 处理excel文件
- 3D技術
- Introducing Ajax
- C# 调用Win32的Dll,参数对应描述
- struts处理中文乱码问题
- 浙江大学2005年计算机考研上机复试