您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
从搜索引擎搜索到discuz的页面,有时默认是一个简化版本(见Description部分的栗子表)。使用这个js之后,左上方悬浮一个‘完整版本’链接。可以通过设置var autoload=1,打开页面时自动打开完整版本(支持phpwind和discuz)
// ==UserScript== // @name bbs archiver to thread // @namespace http://userscripts.org/users/tumuyan // @include http://*archiver/tid* // @include http:*/simple/* // @version 2.3 // @description 从搜索引擎搜索到discuz的页面,有时默认是一个简化版本(见Description部分的栗子表)。使用这个js之后,左上方悬浮一个‘完整版本’链接。可以通过设置var autoload=1,打开页面时自动打开完整版本(支持phpwind和discuz) // ==/UserScript== var autoload=0 if (document.getElementById("end")){ var endbot=document.getElementById("end").getElementsByTagName("a") if (endbot[0].href.match(/thread.{0,30}html/)) add(endbot[0]) } else if(document.getElementsByTagName("center")) { var elepb85=document.getElementsByTagName("center") for (var i=elepb85.length-1;i>-1;i--) { var titlebot=elepb85[i].getElementsByTagName("b") if ( titlebot[0].innerHTML.match(/^\s*查看完整版本.*/) ) { var endbot=titlebot[0].getElementsByTagName("a") add(endbot[0]) exit } } } function add(endbot) { endbot.id="fulltextbot" endbot.innerHTML="完整版本" if (autoload) endbot.click() var cssbot = document.createElement("style"); cssbot.type="text/css"; cssbot.innerHTML = ' a#fulltextbot {color:#336 !important; position:fixed !important;display:block !important; padding:4px !important;border-radius:0px 12px 12px 0px; width:16px !important;max-height:120px !important;overflow:hidden !important; top:40px;left:-2px;font-size: 12px !important;line-height: 30px !important; background:#eed !important;box-shadow:5px 3px 6px #bbb ;-o-transition: .3s ease-in;-moz-transition: .3s ease-in;-webkit-transition: .3s ease-in;} a#fulltextbot:hover {background:#fdd !important;box-shadow:4px 4px 5px #bcd; -o-transition: .3s ease-in;-moz-transition: .3s ease-in;-webkit-transition: .3s ease-in;} '; document.head.appendChild(cssbot); }