您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
List view!
当前为
// ==UserScript== // @name TradeMe List View Enforcer // @namespace http://www.girlza.com/ // @include http://www.trademe.co.nz/* // @description List view! // @version 0.1 // @grant metadata // ==/UserScript== function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } if (document.getElementById("listingLayout")!=null){ var x = document.getElementById("listingLayout").value if (x.toUpperCase()=="GALLERY"){ if (document.getElementById("listViewTab")!=null){ document.getElementById("listViewTab").click() } } } else if (document.getElementById("ListingsTitle_galleryViewTab_icon_a")!=null){ var v = getParameterByName('v'); var w = document.location.toString().substring(document.location.toString().length-9) if (v.toUpperCase()!="GALLERY" && w.toUpperCase()!="V-GALLERY" && document.getElementById("ListingsTitle_galleryViewTab_icon_a").classList.contains('btn-checked')) { window.location.href = document.getElementById("ListingsTitle_listViewTab_icon_a").href } }